There was an error while loading. Please reload this page.
1 parent f167270 commit f533daeCopy full SHA for f533dae
1 file changed
setup.py
@@ -39,6 +39,9 @@ def define_extensions(**kwargs):
39
if platform.system() != 'Darwin':
40
extra_link_args.append('-fopenmp')
41
extra_compile_args.append('-fopenmp')
42
+ elif 'CXX' in os.environ.keys() and os.environ['CXX'].split('/')[-1] == 'icpc':
43
+ extra_link_args.append('-fopenmp')
44
+ extra_compile_args.append('-fopenmp')
45
46
sources = ['./src/base.cc', './src/distance.cc', './src/heuristic.cc',
47
'./src/hnsw.cc', './src/hnsw_node.cc', './src/mmap.cc',
0 commit comments