adding support to disable lazy loading, HIP_ENABLE_LAZY_KERNEL_LOADING

Change-Id: Iafe0f396570ee2bccf642b537cbf9aad967e1370


[ROCm/hip commit: 56509b0ffd]
Цей коміт міститься в:
Payam committed 2020-05-13 17:18:48 -04:00
1 джерело 19449c03f8
коміт 514b242275
1 file changed
+7
+7
Переглянути файл
@@ -191,6 +191,13 @@ void PlatformState::init()
for (auto& it : vars_) {
it.second.rvars.resize(g_devices.size());
}
if (!HIP_ENABLE_LAZY_KERNEL_LOADING) {
for (size_t i = 0; i < g_devices.size(); ++i) {
for (auto& it: functions_) {
getFunc(it.first, i);
}
}
}
}
bool PlatformState::unregisterFunc(hipModule_t hmod) {