File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ def run(
73
73
"--target-cuda can not be an empty string. "
74
74
"Use --target-cuda=<arch> or --target-cuda"
75
75
)
76
+ if any (opt .startswith ("-DDPCTL_TARGET_CUDA=" ) for opt in cmake_args ):
77
+ raise ValueError (
78
+ "Both --target-cuda and -DDPCTL_TARGET_CUDA in --cmake-opts "
79
+ "were specified. Please use only one method "
80
+ "to avoid ambiguity"
81
+ )
76
82
cmake_args += [
77
83
f"-DDPCTL_TARGET_CUDA={ target_cuda } " ,
78
84
]
@@ -81,6 +87,12 @@ def run(
81
87
raise ValueError (
82
88
"--target-hip requires an architecture (e.g., gfx90a)"
83
89
)
90
+ if any (opt .startswith ("-DDPCTL_TARGET_HIP=" ) for opt in cmake_args ):
91
+ raise ValueError (
92
+ "Both --target-hip and -DDPCTL_TARGET_HIP in --cmake-opts "
93
+ "were specified. Please use only one method "
94
+ "to avoid ambiguity"
95
+ )
84
96
cmake_args += [
85
97
f"-DDPCTL_TARGET_HIP={ target_hip } " ,
86
98
]
You can’t perform that action at this time.
0 commit comments