Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,12 @@ def find_nvidia_hpc_sdk():
# target missing), causing the link to fail with "cannot find
# -lcublasmp" etc. SBD's GPU path only needs the CUDA runtime, so
# explicitly link -lcudart instead.
extra_link_args=extra_link_args + ['-mp', '-cuda', '-lcudart'],
#
# -gpu= is repeated at link because the device-link step generates the
# final SASS: without it nvc++ silently targets its own default instead
# of the requested arch(es).
extra_link_args=extra_link_args + ['-mp', '-cuda', f'-gpu={gpu_arch}',
'-lcudart'],
)
ext_modules.append(gpu_thrust_ext)

Expand Down