Initialize hip when single kernel is called

이 커밋은 다음에 포함됨:
Aditya Atluri가 2016-03-02 08:08:45 -06:00를 커밋했습니다
1 부모 34e81c57ff
커밋 ce7ae41d42
2 파일이 변경됨
+9

검색과 일치하는 파일 없음

+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();