Add more check to ensure the startup loader only be enabled with the env var set to 1

这个提交包含在:
sunway513 于 2018-08-04 01:52:27 +00:00 提交
1 父节点 3a68ab4919
当前提交 30dfa6f129
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -525,7 +525,7 @@ class startup_kernel_loader {
};
extern "C" void __attribute__((constructor)) __startup_kernel_loader_init() {
if (atoi(std::getenv("HIP_STARTUP_LOADER"))) functions();
if (atoi(std::getenv("HIP_STARTUP_LOADER")) == 1) functions();
}
extern "C" void __attribute__((destructor)) __startup_kernel_loader_fini() {