From 4987cc705245166607832d150ec9e638e052e3cb 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 [ROCm/clr commit: f174d98893b52830009aeb7544bf2b4b4404faf3] --- projects/clr/hipamd/rocclr/hip_event.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/hipamd/rocclr/hip_event.cpp b/projects/clr/hipamd/rocclr/hip_event.cpp index ecbac6ae94..9f2a394e52 100755 --- a/projects/clr/hipamd/rocclr/hip_event.cpp +++ b/projects/clr/hipamd/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) {