Skip to content

Commit 3c38a7c

Browse files
author
Leily Rabbani
committed
Added multithreading to the setup.py
1 parent 1ce4848 commit 3c38a7c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ def get_include(): #TODO
2121
# Path to eigen3 headers
2222
get_include(),
2323
],
24-
extra_compile_args=['-fopenmp'],
25-
language='c++'
26-
),
24+
language='c++',
25+
extra_compile_args=["-fopenmp"],
26+
extra_link_args=["-fopenmp"]
27+
)
2728
]
2829

2930

@@ -70,7 +71,7 @@ def build_extensions(self):
7071
ct = self.compiler.compiler_type
7172
opts = self.c_opts.get(ct, [])
7273
if ct == 'unix':
73-
opts.append('-DVERSION_INFO="%s" -fopenmp' % self.distribution.get_version())
74+
opts.append('-DVERSION_INFO="%s" ' % self.distribution.get_version())
7475
opts.append(cpp_flag(self.compiler))
7576
if has_flag(self.compiler, '-fvisibility=hidden'):
7677
opts.append('-fvisibility=hidden')

0 commit comments

Comments
 (0)