Skip to content

Commit 42c1017

Browse files
authored
Fix PyTorch version comparison logic (#78)
1 parent a80f1ef commit 42c1017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manywheel/build_rocm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ do_heavyweight_build() {
332332

333333
ver() {
334334
# Convert dotted version string "x.y.z" into zero-padded numeric for comparison
335-
printf "%03d%03d%03d%03d" $(echo "$1" | tr '.' ' ')
335+
printf '%d%03d%03d%03d' $(echo "$1" | tr '.' ' ')
336336
}
337337

338338
# Add triton install dependency

0 commit comments

Comments
 (0)