Skip to content

Commit

Permalink
[Metal] Remove matching Metal to OpenCL in tophub (apache#8211)
Browse files Browse the repository at this point in the history
  • Loading branch information
echuraev authored Jun 9, 2021
1 parent 55459e7 commit 5dc9627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tvm/autotvm/tophub.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def _alias(name):
"""convert alias for some packages"""
table = {
"vtacpu": "vta",
"metal": "opencl",
"webgpu": "opencl",
"vulkan": "opencl",
"nvptx": "cuda",
Expand Down Expand Up @@ -201,6 +200,8 @@ def load_reference_log(backend, model, workload_name):
"""

backend = _alias(backend)
if backend not in PACKAGE_VERSION:
return []
version = PACKAGE_VERSION[backend]
package_name = "%s_%s.log" % (backend, version)
filename = Path(AUTOTVM_TOPHUB_ROOT_PATH, package_name)
Expand Down

0 comments on commit 5dc9627

Please sign in to comment.