diff --git a/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc b/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc index 4bd671af00..26e073ed83 100644 --- a/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc +++ b/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc @@ -20,6 +20,9 @@ THE SOFTWARE. #include #include + +#if CUDA_VERSION < CUDA_12000 + #define SIZE_H 8 #define SIZE_W 12 #define TYPE_t float @@ -77,3 +80,6 @@ TEST_CASE("Unit_hipBindTexture2D_Pitch") { HIP_CHECK(hipFree(devPtrA)); HIP_CHECK(hipFree(devPtrB)); } + +#endif // CUDA_VERSION < CUDA_12000 + diff --git a/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc b/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc index 7291b786bb..a223d27711 100644 --- a/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc +++ b/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc @@ -19,6 +19,8 @@ THE SOFTWARE. #include +#if CUDA_VERSION < CUDA_12000 + #define N 512 texture tex; @@ -79,3 +81,7 @@ TEST_CASE("Unit_hipBindTexture_tex1DfetchVerification") { HIP_CHECK(hipFree(texBuf)); HIP_CHECK(hipFree(devBuf)); } + + +#endif // CUDA_VERSION < CUDA_12000 + diff --git a/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc b/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc index 8e660c41cf..3bc1d8ca7d 100644 --- a/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc +++ b/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc @@ -19,6 +19,9 @@ THE SOFTWARE. #include + +#if CUDA_VERSION < CUDA_12000 + #define SIZE 10 #define EPSILON 0.00001 #define THRESH_HOLD 0.01 // For filter mode @@ -159,3 +162,5 @@ TEST_CASE("Unit_hipNormalizedFloatValueTex_CheckModes") { runTest_hipTextureFilterMode(); } } + +#endif // CUDA_VERSION < CUDA_12000 diff --git a/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc b/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc index 1bf6ea3af7..73d2167d5c 100644 --- a/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc +++ b/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc @@ -20,6 +20,8 @@ THE SOFTWARE. #include #include +#if CUDA_VERSION < CUDA_12000 + typedef float T; // Texture reference for 2D Layered texture @@ -107,3 +109,6 @@ TEST_CASE("Unit_hipSimpleTexture2DLayered_Check") { free(hData); free(hOutputData); } + +#endif // CUDA_VERSION < CUDA_12000 + diff --git a/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc b/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc index 0de3aec096..c17d218a53 100644 --- a/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc +++ b/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc @@ -20,6 +20,8 @@ THE SOFTWARE. #include #include +#if CUDA_VERSION < CUDA_12000 + // Texture reference for 3D texture texture texf; texture texi; @@ -119,3 +121,7 @@ TEST_CASE("Unit_hipSimpleTexture3D_Check_DataTypes") { runSimpleTexture3D_Check(i, i+1, i, &texc); } } + + + +#endif // CUDA_VERSION < CUDA_12000 diff --git a/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc b/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc index d0a31644be..9ecaab9365 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc @@ -19,6 +19,9 @@ THE SOFTWARE. #include + +#if CUDA_VERSION < CUDA_12000 + texture tex; __global__ void tex2DKernel(float* outputData, int width) { @@ -90,3 +93,7 @@ TEST_CASE("Unit_hipTextureRef2D_Check") { HIP_CHECK(hipFree(dData)); HIP_CHECK(hipFreeArray(hipArray)); } + + +#endif // CUDA_VERSION < CUDA_12000 +