Add more check to ensure the startup loader only be enabled with the env var set to 1
This commit is contained in:
1 parent
3a68ab4919
commit
30dfa6f129
1 file changed
+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() {
|
||||
|
||||
Reference in new issue
Block a user