[ROCm/hip commit: 49ef24c042]
Этот коммит содержится в:
Alex Voicu
2018-02-22 12:08:52 +00:00
родитель 64fc905d32 e3d7a36046
Коммит 7f9c1eab10
4 изменённых файлов: 57 добавлений и 7 удалений
+12
Просмотреть файл
@@ -472,4 +472,16 @@ namespace hip_impl
return executable;
}
// To force HIP to load the kernels and to setup the function
// symbol map on program startup
class startup_kernel_loader {
private:
startup_kernel_loader() { functions(); }
startup_kernel_loader(const startup_kernel_loader&) = delete;
startup_kernel_loader& operator= (const startup_kernel_loader&) = delete;
static startup_kernel_loader skl;
};
startup_kernel_loader startup_kernel_loader::skl;
} // Namespace hip_impl.