From ff4b9ab9bc255a6344d79c634eae5f1f2a73a160 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Wed, 27 Jan 2021 18:14:49 -0500 Subject: [PATCH] SWDEV-1 - Fix Windows build Change-Id: I20c727a8718941694da6dc024efdfd1eb6af828b --- rocclr/hip_event.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rocclr/hip_event.cpp b/rocclr/hip_event.cpp index ecbac6ae94..9f2a394e52 100755 --- a/rocclr/hip_event.cpp +++ b/rocclr/hip_event.cpp @@ -280,6 +280,7 @@ hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop) { // ================================================================================================ bool createIpcEventShmemIfNeeded(hip::Event::ihipIpcEvent_t& ipc_evt) { +#if !defined(_MSC_VER) char name_template[] = "/tmp/eventXXXXXX"; int temp_fd = mkstemp(name_template); ipc_evt.ipc_name_ = name_template; @@ -295,6 +296,9 @@ bool createIpcEventShmemIfNeeded(hip::Event::ihipIpcEvent_t& ipc_evt) { ipc_evt.ipc_shmem_->signal[sig_idx] = 0; } return true; +#else + return false; +#endif } hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream) {