mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
cuda13.0, implement changes to CCCL (#6751)
This commit is contained in:
@@ -368,6 +368,12 @@ elif paddle.is_compiled_with_cuda():
|
||||
|
||||
nvcc_version = get_nvcc_version()
|
||||
print(f"nvcc_version = {nvcc_version}")
|
||||
|
||||
# CUDA 13.0+ (CCCL 3.0) changes the default -static-global-template-stub behavior
|
||||
# Restore old linking behavior to allow kernel symbols to be visible in shared libraries
|
||||
if nvcc_version >= 13.0:
|
||||
nvcc_compile_args += ["-static-global-template-stub=false"]
|
||||
|
||||
if nvcc_version >= 12.0:
|
||||
sources += ["gpu_ops/sample_kernels/air_top_p_sampling.cu"]
|
||||
cc = max(get_sm_version(archs))
|
||||
|
||||
Reference in New Issue
Block a user