Ensure that static structures are populated

[ROCm/hip commit: 0b57f50855]
Tá an tiomantas seo le fáil i:
Alex Voicu údaraithe agus GitHub tiomanta 2019-01-09 17:21:53 +00:00
1 tuismitheoir ea0ed81ca7
tiomantas e2911291dd
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -650,7 +650,7 @@ extern "C" void __attribute__((constructor)) __startup_kernel_loader_init() {
int hip_startup_loader=0;
if (std::getenv("HIP_STARTUP_LOADER"))
hip_startup_loader = atoi(std::getenv("HIP_STARTUP_LOADER"));
if (hip_startup_loader) functions();
if (hip_startup_loader) functions(true);
}
extern "C" void __attribute__((destructor)) __startup_kernel_loader_fini() {