Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeolson committed Oct 27, 2023
1 parent d355c8a commit b495766
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,6 @@
openmp_flags = get_openmp_flags()
openmpworks = check_openmp_support(openmp_flags=openmp_flags)
if openmpworks:
compile_flags = openmp_flags.get('compiler_flags')
link_flags = openmp_flags.get('linker_flags')

print(f'\n\nUsing openmp flag {extra_compile_args}\n\n')
# 2. try replacing -fopenmp with mac specific flags
if not openmpworks:
compile_flags = openmp_flags.get('compiler_flags')
link_flags = openmp_flags.get('linker_flags')
for i, flag in enumerate(compile_flags):
if flag == '-fopenmp':
compile_flags[i] = '-Xpreprocessor -fopenmp'
for i, flag in enumerate(link_flags):
if flag == '-fopenmp':
link_flags[i] = '-lomp'
openmpworks = check_openmp_support(openmp_flags=openmp_flags)

if openmpworks:
extra_compile_args = compile_flags
extra_link_args = link_flags
extra_compile_args = openmp_flags.get('compiler_flags')
extra_link_args = openmp_flags.get('linker_flags')

Expand Down

0 comments on commit b495766

Please sign in to comment.