Skip to content

Commit a5d3c18

Browse files
committed
export USE_CXX11_ABI=1 for cuda12.6
1 parent 78d72b6 commit a5d3c18

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packaging/env_vars.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export CI_BUILD="1"
22
export RELEASE="1"
3-
export CXX11_ABI="1"
3+
export USE_CXX11_ABI="1"

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ def load_dep_info():
141141
CXX11_ABI = True
142142

143143
if (cxx11_abi_env_var := os.environ.get("USE_CXX11_ABI")) is not None:
144-
if cxx11_abi_env_var == "1":
144+
if (
145+
cxx11_abi_env_var == "1" and __cuda_version__ == "12.6"
146+
): # Only use CXX11_ABI for CUDA 12.6
145147
CXX11_ABI = True
146148

147149
if platform.uname().processor == "aarch64":

0 commit comments

Comments
 (0)