Initialize all undef symbols with a magic poison (#1962)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3e363047d5
Коммит
8fefda2bb9
@@ -355,8 +355,11 @@ public:
|
|||||||
|
|
||||||
const auto it1 = get_symbol_addresses().find(x);
|
const auto it1 = get_symbol_addresses().find(x);
|
||||||
if (it1 == get_symbol_addresses().cend()) {
|
if (it1 == get_symbol_addresses().cend()) {
|
||||||
hip_throw(std::runtime_error{
|
// For a unknown symbol, initialize it with a magic poison
|
||||||
"Global symbol: " + x + " is undefined."});
|
hsa_executable_agent_global_variable_define(
|
||||||
|
executable, agent, x.c_str(),
|
||||||
|
reinterpret_cast<void*>(0xDEADBEEFDEADBEEFull));
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
hsa_status_t status;
|
hsa_status_t status;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user