Made openmp switch in only dependent on potion in rbf.py and linear.py

This commit is contained in:
Neil Lawrence 2014-05-13 05:23:36 +01:00
parent 169e81702d
commit 2256127130
7 changed files with 122 additions and 48 deletions

View file

@ -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>'],