Skip to content

Commit

Permalink
fix: update linker flag for OpenMP support in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyolicoris committed Jan 29, 2025
1 parent d372cee commit 4d6e280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# check if openmp is available
if torch.backends.openmp.is_available():
extra_compile_args["cxx"] = ["-fopenmp"]
extra_link_args.append("-lgomp")
extra_link_args.append("-fopenmp")

setuptools.setup(
name=NAME,
Expand Down

0 comments on commit 4d6e280

Please sign in to comment.