Skip to content

Commit f533dae

Browse files
committed
update setup.py to make it work w/ icpc
1 parent f167270 commit f533dae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def define_extensions(**kwargs):
3939
if platform.system() != 'Darwin':
4040
extra_link_args.append('-fopenmp')
4141
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')
4245

4346
sources = ['./src/base.cc', './src/distance.cc', './src/heuristic.cc',
4447
'./src/hnsw.cc', './src/hnsw_node.cc', './src/mmap.cc',

0 commit comments

Comments
 (0)