mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[ROCM] Core Functionality for AMD (#1983)
* this pr adds a third party backend for triton that works on AMD * this expose a lot of the work that has been done in our [fork](https://github.com/ROCmSoftwarePlatform/triton) * most unit tests on `test_core.py` pass * it skips some unit tests for various reasons * we plan to follow up with more prs improving Functionality and Performance in the future --------- Co-authored-by: Philippe Tillet <phil@openai.com>
This commit is contained in:
@@ -46,7 +46,7 @@ inline std::string getenv(const char *name) {
|
||||
|
||||
inline bool getBoolEnv(const std::string &env) {
|
||||
std::string msg = "Environment variable " + env + " is not recognized";
|
||||
assert(triton::ENV_VARS.find(env.c_str()) != triton::ENV_VARS.end() &&
|
||||
assert(::triton::ENV_VARS.find(env.c_str()) != ::triton::ENV_VARS.end() &&
|
||||
msg.c_str());
|
||||
const char *s = std::getenv(env.c_str());
|
||||
std::string str(s ? s : "");
|
||||
|
||||
Reference in New Issue
Block a user