Skip to content

Commit b6a0789

Browse files
authored
add cuda version to arm nightly wheel (#1838)
* add cuda version to arm nightly wheel * fix lint line too long
1 parent 87feb22 commit b6a0789

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aarch64_linux/aarch64_wheel_ci_build.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ def parse_arguments():
180180
version = (
181181
check_output(["cat", "version.txt"], cwd="/pytorch").decode().strip()[:-2]
182182
)
183-
build_vars += f"BUILD_TEST=0 PYTORCH_BUILD_VERSION={version}.dev{build_date} PYTORCH_BUILD_NUMBER=1 "
183+
if enable_cuda:
184+
desired_cuda = os.getenv("DESIRED_CUDA")
185+
build_vars += (
186+
f"BUILD_TEST=0 PYTORCH_BUILD_VERSION={version}.dev{build_date}+{desired_cuda} PYTORCH_BUILD_NUMBER=1 "
187+
)
188+
else:
189+
build_vars += f"BUILD_TEST=0 PYTORCH_BUILD_VERSION={version}.dev{build_date} PYTORCH_BUILD_NUMBER=1 "
184190
elif branch.startswith(("v1.", "v2.")):
185191
build_vars += f"BUILD_TEST=0 PYTORCH_BUILD_VERSION={branch[1:branch.find('-')]} PYTORCH_BUILD_NUMBER=1 "
186192

0 commit comments

Comments
 (0)