Initialize hip when single kernel is called

Этот коммит содержится в:
Aditya Atluri committed 2016-03-02 08:08:45 -06:00
1 родитель 831fa31eea
Коммит 5efc4ce08a
2 files changed
+9

No files matched your search

+1
Просмотреть файл
@@ -1090,6 +1090,7 @@ inline hipStream_t ihipSyncAndResolveStream(hipStream_t stream)
// Allows runtime to track some information about the stream.
hipStream_t ihipPreLaunchKernel(hipStream_t stream, hc::accelerator_view **av)
{
std::call_once(hip_initialized, ihipInit);
stream = ihipSyncAndResolveStream(stream);
stream->preKernelCommand();