mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-28 22:36:24 +02:00
Made openmp switch in only dependent on potion in rbf.py and linear.py
This commit is contained in:
parent
169e81702d
commit
2256127130
7 changed files with 122 additions and 48 deletions
|
|
@ -130,14 +130,14 @@ def fast_array_equal(A, B):
|
|||
""" % pragma_string
|
||||
|
||||
if config.getboolean('parallel', 'openmp'):
|
||||
pragma_string = '#include <omp.h>'
|
||||
header_string = '#include <omp.h>'
|
||||
else:
|
||||
pragma_string = ''
|
||||
header_string = ''
|
||||
|
||||
support_code = """
|
||||
%s
|
||||
#include <math.h>
|
||||
""" % pragma_string
|
||||
""" % header_string
|
||||
|
||||
|
||||
weave_options_openmp = {'headers' : ['<omp.h>'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue