Changes to eliminate the need for the MI_GPU_ARCH environment variable.

The AMDGPU arch is now parsed out of the rocminfo dump.
This commit is contained in:
Rohit Santhanam
2022-11-18 12:58:51 +00:00
parent 9a9fabbba9
commit 8cc448d92e
4 changed files with 29 additions and 17 deletions

View File

@@ -300,7 +300,7 @@ namespace triton
std::string triple = "amdgcn-amd-amdhsa";
std::string layout = "";
std::string features = "+sramecc,-xnack";
std::string proc = STRINGIFY(MI_GPU_ARCH);
std::string proc = _proc;
// name kernel
auto in_time_t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
std::stringstream cur_time;