Skip to content

Commit

Permalink
SWDEV-398541/SWDEV-390170 - skip building failing texture tests for C…
Browse files Browse the repository at this point in the history
…UDA 12.0

Change-Id: I109b2c2b67d489d13a2117f53a8e77eca7315b46
  • Loading branch information
agunashe authored and zhang2amd committed May 9, 2023
1 parent 15d0fb7 commit c84c7df
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions catch/unit/texture/hipBindTex2DPitch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip_test_checkers.hh>

#if CUDA_VERSION < CUDA_12000

#define SIZE_H 8
#define SIZE_W 12
#define TYPE_t float
Expand Down Expand Up @@ -77,3 +79,5 @@ TEST_CASE("Unit_hipBindTexture2D_Pitch") {
HIP_CHECK(hipFree(devPtrA));
HIP_CHECK(hipFree(devPtrB));
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipBindTexRef1DFetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ THE SOFTWARE.

#include <hip_test_common.hh>

#if CUDA_VERSION < CUDA_12000

#define N 512

texture<float, 1, hipReadModeElementType> tex;
Expand Down Expand Up @@ -79,3 +81,5 @@ TEST_CASE("Unit_hipBindTexture_tex1DfetchVerification") {
HIP_CHECK(hipFree(texBuf));
HIP_CHECK(hipFree(devBuf));
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipNormalizedFloatValueTex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ THE SOFTWARE.

#include <hip_test_common.hh>

#if CUDA_VERSION < CUDA_12000

#define SIZE 10
#define EPSILON 0.00001
#define THRESH_HOLD 0.01 // For filter mode
Expand Down Expand Up @@ -159,3 +161,5 @@ TEST_CASE("Unit_hipNormalizedFloatValueTex_CheckModes") {
runTest_hipTextureFilterMode<hipFilterModeLinear>();
}
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipSimpleTexture2DLayered.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip_test_checkers.hh>

#if CUDA_VERSION < CUDA_12000

typedef float T;

// Texture reference for 2D Layered texture
Expand Down Expand Up @@ -107,3 +109,5 @@ TEST_CASE("Unit_hipSimpleTexture2DLayered_Check") {
free(hData);
free(hOutputData);
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipSimpleTexture3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip_test_checkers.hh>

#if CUDA_VERSION < CUDA_12000

// Texture reference for 3D texture
texture<float, hipTextureType3D, hipReadModeElementType> texf;
texture<int, hipTextureType3D, hipReadModeElementType> texi;
Expand Down Expand Up @@ -119,3 +121,5 @@ TEST_CASE("Unit_hipSimpleTexture3D_Check_DataTypes") {
runSimpleTexture3D_Check<char>(i, i+1, i, &texc);
}
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipTextureRef2D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ THE SOFTWARE.

#include <hip_test_common.hh>

#if CUDA_VERSION < CUDA_12000

texture<float, 2, hipReadModeElementType> tex;

__global__ void tex2DKernel(float* outputData, int width) {
Expand Down Expand Up @@ -90,3 +92,5 @@ TEST_CASE("Unit_hipTextureRef2D_Check") {
HIP_CHECK(hipFree(dData));
HIP_CHECK(hipFreeArray(hipArray));
}

#endif // CUDA_VERSION < CUDA_12000

0 comments on commit c84c7df

Please sign in to comment.