Merge pull request #857 from ROCm-Developer-Tools/feature_ensure_lazy_init_initialises

Ensure that static structures are populated

[ROCm/hip commit: 5826ed04c1]
이 커밋은 다음에 포함됨:
Maneesh Gupta
2019-01-11 12:35:52 +05:30
커밋한 사람 GitHub
+1 -1
파일 보기
@@ -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() {