File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,13 @@ def parse_arguments():
180
180
version = (
181
181
check_output (["cat" , "version.txt" ], cwd = "/pytorch" ).decode ().strip ()[:- 2 ]
182
182
)
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 "
184
190
elif branch .startswith (("v1." , "v2." )):
185
191
build_vars += f"BUILD_TEST=0 PYTORCH_BUILD_VERSION={ branch [1 :branch .find ('-' )]} PYTORCH_BUILD_NUMBER=1 "
186
192
You can’t perform that action at this time.
0 commit comments