reimplement HIP_INIT as hip_impl::hip_init(), add hip_init() to some of the inlined API (#966)

* reimplement HIP_INIT as a function, expose it as hip_impl::hip_init()
so that it could be called from hipLaunchKernelGGL and other inlined
HIP functions

* Don't call hip_init from ihipPreLaunchKernel


[ROCm/hip commit: 24d08beef8]
Tento commit je obsažen v:
Siu Chi Chan
2019-03-20 01:11:15 -04:00
odevzdal Maneesh Gupta
rodič 98dcdae4f0
revize 99c4f43a6c
6 změnil soubory, kde provedl 22 přidání a 22 odebrání
+1 -1
Zobrazit soubor
@@ -43,7 +43,7 @@ void __hipDumpCodeObject(const std::string& image) {
const void* __hipExtractCodeObjectFromFatBinary(const void* data,
const char* agent_name)
{
HIP_INIT();
hip_impl::hip_init();
tprintf(DB_FB, "Enter __hipExtractCodeObjectFromFatBinary(%p, \"%s\")\n",
data, agent_name);