diff --git a/projects/hip/rocclr/hip_platform.cpp b/projects/hip/rocclr/hip_platform.cpp index e23b136cc0..8759ef47f1 100755 --- a/projects/hip/rocclr/hip_platform.cpp +++ b/projects/hip/rocclr/hip_platform.cpp @@ -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) {