@@ -21,7 +21,6 @@ class OperatingSystem(Enum):
21
21
LINUX : str = "linux"
22
22
WINDOWS : str = "windows"
23
23
MACOS : str = "macos"
24
- MACOS_ARM64 : str = "macos_arm64"
25
24
26
25
PRE_CXX11_ABI = "pre-cxx11"
27
26
CXX11_ABI = "cxx11-abi"
@@ -31,21 +30,20 @@ class OperatingSystem(Enum):
31
30
ENABLE = "enable"
32
31
DISABLE = "disable"
33
32
MACOS = "macos"
34
- MACOS_ARM64 = "macos-arm64"
35
33
36
34
# Mapping json to release matrix default values
37
35
acc_arch_ver_default = {
38
36
"nightly" : {
39
37
"accnone" : ("cpu" , "" ),
40
38
"cuda.x" : ("cuda" , "11.8" ),
41
39
"cuda.y" : ("cuda" , "12.1" ),
42
- "rocm5.x" : ("rocm" , "5.7 " )
40
+ "rocm5.x" : ("rocm" , "6.0 " )
43
41
},
44
42
"release" : {
45
43
"accnone" : ("cpu" , "" ),
46
44
"cuda.x" : ("cuda" , "11.8" ),
47
45
"cuda.y" : ("cuda" , "12.1" ),
48
- "rocm5.x" : ("rocm" , "5.7 " )
46
+ "rocm5.x" : ("rocm" , "6.0 " )
49
47
}
50
48
}
51
49
@@ -59,8 +57,7 @@ class OperatingSystem(Enum):
59
57
CXX11_ABI : "Download here (cxx11 ABI):" ,
60
58
RELEASE : "Download here (Release version):" ,
61
59
DEBUG : "Download here (Debug version):" ,
62
- MACOS : "Download x86 libtorch here (ROCm and CUDA are not supported):" ,
63
- MACOS_ARM64 : "Download arm64 libtorch here (ROCm and CUDA are not supported):" ,
60
+ MACOS : "Download arm64 libtorch here (ROCm and CUDA are not supported):" ,
64
61
}
65
62
66
63
def load_json_from_basedir (filename : str ):
@@ -124,16 +121,6 @@ def update_versions(versions, release_matrix, release_version):
124
121
if (x ["package_type" ], x ["gpu_arch_type" ], x ["gpu_arch_version" ]) ==
125
122
(package_type , gpu_arch_type , gpu_arch_version )
126
123
]
127
- # MACOS and MACOS_ARM64 release matrices are reduced to
128
- # one single matrix in get started page. This is the only
129
- # OS that this logic applies to. Hence this logic is needed.
130
- pkg_arch_matrix_arm64 = []
131
- if os_key == OperatingSystem .MACOS .value and package_type == "libtorch" :
132
- pkg_arch_matrix_arm64 = [
133
- x for x in release_matrix [OperatingSystem .MACOS_ARM64 .value ]
134
- if (x ["package_type" ], x ["gpu_arch_type" ], x ["gpu_arch_version" ]) ==
135
- (package_type , gpu_arch_type , gpu_arch_version )
136
- ]
137
124
138
125
if pkg_arch_matrix :
139
126
if package_type != "libtorch" :
@@ -155,10 +142,6 @@ def update_versions(versions, release_matrix, release_version):
155
142
elif os_key == OperatingSystem .MACOS .value :
156
143
if instr ["versions" ] is not None :
157
144
instr ["versions" ][LIBTORCH_DWNL_INSTR [MACOS ]] = pkg_arch_matrix [0 ]["installation" ]
158
- if len (pkg_arch_matrix_arm64 ) > 0 :
159
- instr ["versions" ][LIBTORCH_DWNL_INSTR [MACOS_ARM64 ]] = pkg_arch_matrix_arm64 [0 ]["installation" ]
160
- else :
161
- instr ["versions" ].pop (LIBTORCH_DWNL_INSTR [MACOS_ARM64 ], None )
162
145
163
146
# This method is used for generating new quick-start-module.js
164
147
# from the versions json object
@@ -232,7 +215,7 @@ def main():
232
215
versions_str = json .dumps (gen_install_matrix (versions ))
233
216
template = template .replace ("{{ installMatrix }}" , versions_str )
234
217
template = template .replace ("{{ VERSION }}" , f"\" Stable ({ versions ['latest_stable' ]} )\" " )
235
- print (template .replace ("{{ ACC ARCH MAP }}" , json .dumps (acc_arch_ver_map )))
218
+ # print(template.replace("{{ ACC ARCH MAP }}", json.dumps(acc_arch_ver_map)))
236
219
237
220
if __name__ == "__main__" :
238
221
main ()
0 commit comments