adding support to disable lazy loading, HIP_ENABLE_LAZY_KERNEL_LOADING

Change-Id: Iafe0f396570ee2bccf642b537cbf9aad967e1370


[ROCm/hip commit: 56509b0ffd]
此提交包含在:
Payam
2020-05-13 17:17:48 -04:00
父節點 19449c03f8
當前提交 514b242275
+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) {