mlc-ai / relax

Apache License 2.0
137 stars 69 forks source link

[Bug] ‘DeviceName’ was not declared in this scope #286

Closed njuhang closed 10 months ago

njuhang commented 10 months ago

Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first :smile_cat:

Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.

Expected behavior

build successfully

Actual behavior

/home/mlc-relax/relax/src/runtime/contrib/papi/papi.cc: In function ‘int tvm::runtime::profiling::component_for_device(tvm::Device)’: /home/mlc-relax/relax/src/runtime/contrib/papi/papi.cc:76:58: error: ‘DeviceName’ was not declared in this scope; did you mean ‘kDeviceName’? 76 | LOG(WARNING) << "PAPI does not support device " << DeviceName(dev.device_type);

Environment

ubuntu20.04, relax version latest

Steps to reproduce

mkdir build cd build cmake .. make -j8

Triage

Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).