Skip to content

Commit febc6c4

Browse files
committed
fix can't find nv/target bug
1 parent 8e39d3b commit febc6c4

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

python/setup.py.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,22 @@ def get_paddle_extra_install_requirements():
656656
"nvidia-cufile-cu12==1.14.0.30; platform_system == 'Linux' and platform_machine == 'x86_64'"
657657
),
658658
}
659+
if '@WITH_CINN@' == 'ON':
660+
PADDLE_CUDA_INSTALL_REQUIREMENTS["12.3"] += (
661+
" | nvidia-cuda-cccl-cu12==12.3.52;platform_system == 'Linux' and platform_machine == 'x86_64' "
662+
)
663+
PADDLE_CUDA_INSTALL_REQUIREMENTS["12.4"] += (
664+
" | nvidia-cuda-cccl-cu12==12.4.99;platform_system == 'Linux' and platform_machine == 'x86_64' "
665+
)
666+
PADDLE_CUDA_INSTALL_REQUIREMENTS["12.6"] += (
667+
" | nvidia-cuda-cccl-cu12==12.6.77;platform_system == 'Linux' and platform_machine == 'x86_64' "
668+
)
669+
PADDLE_CUDA_INSTALL_REQUIREMENTS["12.8"] += (
670+
" | nvidia-cuda-cccl-cu12==12.8.90;platform_system == 'Linux' and platform_machine == 'x86_64' "
671+
)
672+
PADDLE_CUDA_INSTALL_REQUIREMENTS["12.9"] += (
673+
" | nvidia-cuda-cccl-cu12==12.9.27;platform_system == 'Linux' and platform_machine == 'x86_64' "
674+
)
659675
elif platform.system() == 'Windows':
660676
PADDLE_CUDA_INSTALL_REQUIREMENTS = {
661677
"11.8": (

setup.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,23 @@ def get_paddle_extra_install_requirements():
11641164
"nvidia-cufile-cu12==1.14.0.30; platform_system == 'Linux' and platform_machine == 'x86_64'"
11651165
),
11661166
}
1167+
if env_dict.get("WITH_CINN") == "ON":
1168+
PADDLE_CUDA_INSTALL_REQUIREMENTS[
1169+
"12.3"
1170+
] += " | nvidia-cuda-cccl-cu12==12.3.52;platform_system == 'Linux' and platform_machine == 'x86_64' "
1171+
PADDLE_CUDA_INSTALL_REQUIREMENTS[
1172+
"12.4"
1173+
] += " | nvidia-cuda-cccl-cu12==12.4.99;platform_system == 'Linux' and platform_machine == 'x86_64' "
1174+
PADDLE_CUDA_INSTALL_REQUIREMENTS[
1175+
"12.6"
1176+
] += " | nvidia-cuda-cccl-cu12==12.6.77;platform_system == 'Linux' and platform_machine == 'x86_64' "
1177+
PADDLE_CUDA_INSTALL_REQUIREMENTS[
1178+
"12.8"
1179+
] += " | nvidia-cuda-cccl-cu12==12.8.90;platform_system == 'Linux' and platform_machine == 'x86_64' "
1180+
PADDLE_CUDA_INSTALL_REQUIREMENTS[
1181+
"12.9"
1182+
] += " | nvidia-cuda-cccl-cu12==12.9.27;platform_system == 'Linux' and platform_machine == 'x86_64' "
1183+
11671184
elif platform.system() == 'Windows':
11681185
PADDLE_CUDA_INSTALL_REQUIREMENTS = {
11691186
"11.8": (

0 commit comments

Comments
 (0)