adding support to disable lazy loading, HIP_ENABLE_LAZY_KERNEL_LOADING
Change-Id: Iafe0f396570ee2bccf642b537cbf9aad967e1370
[ROCm/clr commit: 6152b200cb]
This commit is contained in:
@@ -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) {
|
||||
|
||||
مرجع در شماره جدید
Block a user