Dear I am using this branch TVM:
And I want to auto tune my tir using meta_schedule.tune_tir but I got below error
Traceback (most recent call last):
File "/mnt/e/ubuntu_code/relax/apps/relax_examples/my_test.py", line 154, in <module>
database = ms.tune_tir(
File "/mnt/e/ubuntu_code/relax/python/tvm/meta_schedule/tir_integration.py", line 134, in tune_tir
TuneContext(
File "/mnt/e/ubuntu_code/relax/python/tvm/meta_schedule/tune_context.py", line 149, in __init__
_ffi_api.TuneContextInitialize(self) # type: ignore # pylint: disable=no-member
File "/mnt/e/ubuntu_code/relax/python/tvm/_ffi/_ctypes/packed_func.py", line 238, in __call__
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
5: TVMFuncCall
4: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::TypedPackedFunc<void (tvm::meta_schedule::TuneContext)>::AssignTypedLambda<tvm::runtime::Registry::set_body_method<tvm::meta_schedule::TuneContext, tvm::meta_schedule::TuneContextNode, void, , void>(void (tvm::meta_schedule::TuneContextNode::*)())::{lambda(tvm::meta_schedule::TuneContext)#1}>(tvm::runtime::Registry::set_body_method<tvm::meta_schedule::TuneContext, tvm::meta_schedule::TuneContextNode, void, , void>(void (tvm::meta_schedule::TuneContextNode::*)())::{lambda(tvm::meta_schedule::TuneContext)#1}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}> >::Call(tvm::runtime::PackedFuncObj const*, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
3: tvm::meta_schedule::TuneContextNode::Initialize()
2: tvm::meta_schedule::PostOrderApplyNode::InitializeWithTuneContext(tvm::meta_schedule::TuneContext const&)
1: tvm::meta_schedule::SpaceGeneratorNode::InitializeWithTuneContext(tvm::meta_schedule::TuneContext const&)
0: tvm::meta_schedule::GetRuleKindFromTarget(tvm::Target const&)
File "/mnt/e/ubuntu_code/relax/src/meta_schedule/space_generator/space_generator.cc", line 82
TVMError: Unsupported target: opencl -keys=opencl,gpu -max_num_threads=256 -max_shared_memory_per_block=16384 -max_threads_per_block=256 -texture_spatial_limit=16384 -thread_warp_size=1
I checked the file “https://github.com/mlc-ai/relax/blob/mlc/src/meta_schedule/space_generator/space_generator.cc” Seems relax auto tune does not support OpenCL
Anyone knows how to tune opencl with relax branch? thanks