From b910a7ff263a052165a643fa99f82cecd78d4dde Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Mon, 2 Mar 2020 14:58:33 -0500 Subject: [PATCH] SWDEV-219799 Add missing __hip_pinned_shadow__ attribute to the hipModuleTexture2dDrv test. Change-Id: I2c213a4108611c1af691388f268cac429b81a313 --- tests/src/runtimeApi/module/hipModuleTexture2dDrv.cpp | 5 ++++- tests/src/runtimeApi/module/tex2d_kernel.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/src/runtimeApi/module/hipModuleTexture2dDrv.cpp b/tests/src/runtimeApi/module/hipModuleTexture2dDrv.cpp index 3903acd125..d4c5c31283 100644 --- a/tests/src/runtimeApi/module/hipModuleTexture2dDrv.cpp +++ b/tests/src/runtimeApi/module/hipModuleTexture2dDrv.cpp @@ -21,7 +21,7 @@ THE SOFTWARE. */ /* HIT_START - * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc vdi + * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc * TEST: %t * HIT_END */ @@ -33,6 +33,9 @@ THE SOFTWARE. #define fileName "tex2d_kernel.code" +#if __HIP__ +__hip_pinned_shadow__ +#endif texture tex; bool testResult = false; diff --git a/tests/src/runtimeApi/module/tex2d_kernel.cpp b/tests/src/runtimeApi/module/tex2d_kernel.cpp index e66d690907..9a22ed25ed 100644 --- a/tests/src/runtimeApi/module/tex2d_kernel.cpp +++ b/tests/src/runtimeApi/module/tex2d_kernel.cpp @@ -21,7 +21,7 @@ THE SOFTWARE. */ /* HIT_START - * BUILD_CMD: tex2d_kernel.code %hc --genco %S/tex2d_kernel.cpp -o tex2d_kernel.code EXCLUDE_HIP_PLATFORM vdi + * BUILD_CMD: tex2d_kernel.code %hc --genco %S/tex2d_kernel.cpp -o directed_tests/runtimeApi/module/tex2d_kernel.code * HIT_END */