masahi commented on a change in pull request #7038:
URL: https://github.com/apache/tvm/pull/7038#discussion_r536515597
##########
File path: src/auto_scheduler/feature.cc
##########
@@ -1296,7 +1296,8 @@ void GetPerStoreFeaturesWorkerFunc(const SearchTask&
task, const State& state, i
}
auto mod = IRModule(Map<GlobalVar, BaseFunc>({{global_var, f}}));
- if (task->target->kind->device_type == kDLGPU) {
+ auto device_type = task->target->kind->device_type;
+ if (device_type == kDLGPU || device_type == kDLROCM) {
Review comment:
Nice, replaced with this function to support other GPU targets.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]