Skip to content

Commit

Permalink
Corrected TVM autotuning on GPU (apache#5432)
Browse files Browse the repository at this point in the history
Added missing "tir" in tvm.tir.analysis.verify_gpu_code(f, kwargs)
  • Loading branch information
JishinMaster authored and Trevor Morris committed Jun 8, 2020
1 parent 5b73599 commit a69ec9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/autotvm/measure/measure_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def gpu_verify_pass(**kwargs):
This pass will check memory usage and number of threads per block.
"""
def verify_pass(f, *_):
valid = tvm.analysis.verify_gpu_code(f, kwargs)
valid = tvm.tir.analysis.verify_gpu_code(f, kwargs)
if not valid:
raise InstantiationError("Skipped because of invalid gpu kernel")
return f
Expand Down

0 comments on commit a69ec9f

Please sign in to comment.