adding support to disable lazy loading, HIP_ENABLE_LAZY_KERNEL_LOADING

Change-Id: Iafe0f396570ee2bccf642b537cbf9aad967e1370
이 커밋은 다음에 포함됨:
Payam가 2020-05-13 17:18:48 -04:00를 커밋했습니다
1 부모 9726cb85d4
커밋 6152b200cb
1 파일이 변경됨
+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) {