make HIP to load the GPU objects and to setup the function symbol map on startup
Ta zmiana jest zawarta w:
%! (template.HTML=
Siu Chi Chan)złożyło 2018-02-18 14:26:44 -05:00
1 rodzic
60bda80014
złożenie
0ca9591e55
Plik 1 zmieniony
+12
@@ -490,4 +490,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.
|
||||
Reference in new issue
Zablokuj użytkownika