From 45652a1fba777737a06ad9b314ef2944cda98552 Mon Sep 17 00:00:00 2001 From: amd-lthakur <46560939+amd-lthakur@users.noreply.github.com> Date: Fri, 9 Aug 2019 17:22:46 +0530 Subject: [PATCH] [dtests] Fix build issue with hipMemcpy_simple.cpp on windows (#1306) Compilation error being observed on windows due to aligned_alloc() call. Mapped the call to _aligned_malloc() for windows. [ROCm/hip commit: 9abae7114c09822da8281bf8025e189100993c75] --- projects/hip/tests/src/runtimeApi/memory/hipMemcpy_simple.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/hip/tests/src/runtimeApi/memory/hipMemcpy_simple.cpp b/projects/hip/tests/src/runtimeApi/memory/hipMemcpy_simple.cpp index 8ce02d6164..dcec1fd834 100644 --- a/projects/hip/tests/src/runtimeApi/memory/hipMemcpy_simple.cpp +++ b/projects/hip/tests/src/runtimeApi/memory/hipMemcpy_simple.cpp @@ -29,6 +29,9 @@ THE SOFTWARE. #include "hip/hip_runtime.h" #include "test_common.h" +#ifdef _WIN64 +#define aligned_alloc _aligned_malloc +#endif bool p_async = false;