SWDEV-464648 - code and comment cleanups

Change-Id: I10b462078fa9eed73372d81dff92d7278731f736
This commit is contained in:
Ioannis Assiouras authored and Maneesh Gupta committed 2024-06-12 00:34:10 -04:00
1 parent aee4042e09
commit 38f67d4a0b
14 files changed
+39 -59

No files matched your search

+6 -26
View File
@@ -1,25 +1,5 @@
#define COMMON
#if defined gfx906
#define VEGA20
#endif
#if defined gfx908
#define MI100
#endif
#if defined gfx90a || defined gfx940 || defined gfx941 || defined gfx942
#define MI2XX
#endif
#if defined gfx1030
#define NAVI21
#endif
#if defined gfx1100 || defined gfx1102
#define NAVI3X
#endif
{
"Info": [
"File generated for commit on below mentioned date and time",
@@ -1310,7 +1290,7 @@
"Unit_atomicCAS_system_Positive_Host_And_Peer_GPUs - int",
"Unit_atomicCAS_system_Positive_Host_And_Peer_GPUs - unsigned int",
"Unit_atomicCAS_system_Positive_Host_And_Peer_GPUs - unsigned long long",
"SWDEV-447384, SWDEV-447932: These tests fail in Navi31, Navi32 & Navi33",
"SWDEV-447384, SWDEV-447932: These tests fail in gfx1100, gfx1101 & gfx1102",
"Unit_hipFreeAsync_Negative_Parameters",
"Unit_hipMallocMipmappedArray_DiffSizes",
"Unit_hipMallocMipmappedArray_MultiThread",
@@ -1368,11 +1348,11 @@
"Unit_hipGraphAddMemAllocNode_Positive_FreeSeparateGraph",
"Unit_hipGraphAddMemFreeNode_Negative_NotSupported",
#endif
#if defined VEGA20
#if defined gfx906
"=== SWDEV-419112 Below tests fail in stress test on 29/08/23 ===",
"Unit_deviceAllocation_Malloc_ComplexDataType",
#endif
#if defined MI100
#if defined gfx908
"=== Below test soft hang in stress test on 29/08/23 ===",
"Unit_hipMultiThreadStreams2",
"=== SWDEV-425248:Below tests failed in stress test on 11/10/23 ===",
@@ -1413,7 +1393,7 @@
"=== SWDEV-443630 - Below tests failed in stress test on 19/01/23 ===",
"Unit_hipGetSetDevice_MultiThreaded",
#endif
#if defined MI2XX
#if defined gfx90a || defined gfx940 || defined gfx941 || defined gfx942
"Unit_hipStreamPerThread_DeviceReset_1",
"Unit_hipDeviceGetPCIBusId_Negative_PartialFill",
"Unit_hipInit_Negative",
@@ -1542,11 +1522,11 @@
"Unit_Warp_Vote_Any_Positive_Basic",
"Unit_Warp_Vote_All_Positive_Basic",
#endif
#if defined NAVI21
#if defined gfx1030
"=== SWDEV-445961: These tests hang in PSDB stress test on 09/02/2024 ===",
"Unit_hipStreamBeginCapture_hipStreamPerThread",
#endif
#if defined NAVI3X
#if defined gfx1100 || defined gfx1102
"=== Below tests soft hang in stress test on 13/09/23 ===",
"Unit_hipMemsetFunctional_ZeroValue_hipMemsetD16",
"Unit_hipIpcMemAccess_Semaphores",
+3 -3
View File
@@ -330,16 +330,16 @@
"Unit_hipExtLaunchKernelGGL_Functional",
"SWDEV-413997: VMM test still failing in windows",
"Unit_hipMemSetAccess_ChangeAccessProp",
"SWDEV-444041: These tests fail randomly in Navi21 MGU",
"SWDEV-444041: These tests fail randomly in gfx1030 MGU",
"Unit_hipMemMap_SameMemoryReuse",
"Unit_hipMemMap_negative",
"Unit_hipMemSetAccess_Vmm2PeerDevMemCpy",
"SWDEV-444041: These tests fail in Navi31 MGPU",
"SWDEV-444041: These tests fail in gfx1100 MGPU",
"Unit_hipMemMap_PhysicalMemoryReuse_SingleGPU",
"Unit_hipMemMap_PhysicalMemory_Map2MultVMMs",
"Unit_hipMemMap_PhysicalMemoryReuse_MultiDev",
"Unit_hipMemSetAccess_Vmm2VMMMemCpy",
"SWDEV-444031: This test fails in Navi32 MGPU",
"SWDEV-444031: This test fails in gfx1101 MGPU",
"Unit_hipMemSetAccess_Multithreaded",
"=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/274 ===",
"Unit_Printf_flags_Sanity_Positive",
+1 -1
View File
@@ -594,7 +594,7 @@
"Unit_hipGraphicsUnmapResources_Negative_Parameters",
"Unit_hipGraphicsUnregisterResource_Negative_Parameters",
"Unit_hipGraphExecMemcpyNodeSetParams1D_Negative",
"Note: NAVI3X",
"Note: gfx1100, gfx1101, gfx1102",
"=== Below tests soft hang in stress test on 13/09/23 ===",
"Unit_hipMemsetFunctional_ZeroValue_hipMemsetD16",
"Unit_hipIpcMemAccess_Semaphores",
+7 -7
View File
@@ -57,19 +57,19 @@ if(HIP_PLATFORM MATCHES "amd")
__hip_atomic_exchange.cc
)
#atomicInc & atomicDec tests are disabled on MI300X due to SWDEV-440688
set(NOT_FOR_MI300X_TEST
#atomicInc & atomicDec tests are disabled on gfx941 due to SWDEV-440688
set(NOT_FOR_GFX941_TEST
atomicInc.cc
atomicDec.cc
)
set(MI300X_TARGET gfx941)
set(GFX941_TARGET gfx941)
function(CheckRejectedArchs OFFLOAD_ARCH_STR_LOCAL)
set(ARCH_CHECK -1 PARENT_SCOPE)
string(REGEX MATCHALL "--offload-arch=gfx[0-9a-z]+" OFFLOAD_ARCH_LIST ${OFFLOAD_ARCH_STR_LOCAL})
foreach(OFFLOAD_ARCH IN LISTS OFFLOAD_ARCH_LIST)
string(REGEX MATCHALL "--offload-arch=(gfx[0-9a-z]+)" matches ${OFFLOAD_ARCH})
if (CMAKE_MATCH_COUNT EQUAL 1)
if (CMAKE_MATCH_1 IN_LIST MI300X_TARGET)
if (CMAKE_MATCH_1 IN_LIST GFX941_TARGET)
set(ARCH_CHECK 1 PARENT_SCOPE)
endif() # CMAKE_MATCH_1
endif() # CMAKE_MATCH_COUNT
@@ -84,10 +84,10 @@ if(HIP_PLATFORM MATCHES "amd")
set(ARCH_CHECK -1)
endif()
if(${ARCH_CHECK} EQUAL -1)
message(STATUS "Adding test: ${NOT_FOR_MI300X_TEST}")
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_MI300X_TEST})
message(STATUS "Adding test: ${NOT_FOR_GFX941_TEST}")
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_GFX941_TEST})
else()
message(STATUS "Removing test: ${NOT_FOR_MI300X_TEST}")
message(STATUS "Removing test: ${NOT_FOR_GFX941_TEST}")
endif()
+1 -1
View File
@@ -61,7 +61,7 @@ std::vector<T> cpu_cvt_float_fp8_float(const std::vector<T>& nums) {
return ret;
}
// This test only makes sense on MI300 where device side convert will use the builtins to convert
// This test only makes sense on gfx94x where device side convert will use the builtins to convert
// floats to fp8
TEMPLATE_TEST_CASE("Unit_fp8_compare_host_device", "", float, double) {
std::vector<TestType> numbers = {0.0f, 1.0f, 1.1f, 2.0f, 2.1f, 3.0f, 3.2f,
+6 -6
View File
@@ -178,15 +178,15 @@ if(HIP_PLATFORM MATCHES "amd")
hipArray3DGetDescriptor.cc)
endif()
set(NOT_FOR_MI200_AND_ABOVE_TEST hipMallocArray.cc hipArrayCreate.cc) # tests not for MI200+
set(MI200_AND_ABOVE_TARGETS gfx90a gfx940 gfx941 gfx942)
set(NOT_FOR_gfx90a_AND_ABOVE_TEST hipMallocArray.cc hipArrayCreate.cc) # tests not for gfx90a+
set(gfx90a_AND_ABOVE_TARGETS gfx90a gfx940 gfx941 gfx942)
function(CheckRejectedArchs OFFLOAD_ARCH_STR_LOCAL)
set(ARCH_CHECK -1 PARENT_SCOPE)
string(REGEX MATCHALL "--offload-arch=gfx[0-9a-z]+" OFFLOAD_ARCH_LIST ${OFFLOAD_ARCH_STR_LOCAL})
foreach(OFFLOAD_ARCH IN LISTS OFFLOAD_ARCH_LIST)
string(REGEX MATCHALL "--offload-arch=(gfx[0-9a-z]+)" matches ${OFFLOAD_ARCH})
if (CMAKE_MATCH_COUNT EQUAL 1)
if (CMAKE_MATCH_1 IN_LIST MI200_AND_ABOVE_TARGETS)
if (CMAKE_MATCH_1 IN_LIST gfx90a_AND_ABOVE_TARGETS)
set(ARCH_CHECK 1 PARENT_SCOPE)
endif() # CMAKE_MATCH_1
endif() # CMAKE_MATCH_COUNT
@@ -201,11 +201,11 @@ if(HIP_PLATFORM MATCHES "amd")
set(ARCH_CHECK -1)
endif()
if(${ARCH_CHECK} EQUAL -1)
message(STATUS "Adding test: ${NOT_FOR_MI200_AND_ABOVE_TEST}")
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_MI200_AND_ABOVE_TEST})
message(STATUS "Adding test: ${NOT_FOR_gfx90a_AND_ABOVE_TEST}")
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST})
endif()
else()
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_MI200_AND_ABOVE_TEST})
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST})
endif()
hip_add_exe_to_target(NAME MemoryTest2
+8 -8
View File
@@ -53,8 +53,8 @@ set(TEST_SRC
hipMipmappedArrayGetLevel.cc
)
# tests not for MI200+
set(NOT_FOR_MI200_AND_ABOVE_TEST
# tests not for gfx90a+
set(NOT_FOR_gfx90a_AND_ABOVE_TEST
tex1Dfetch.cc
tex1D.cc
tex1DLayered.cc
@@ -82,14 +82,14 @@ set(NOT_FOR_MI200_AND_ABOVE_TEST
tex3DLod.cc
tex3DGrad.cc
)
set(MI200_AND_ABOVE_TARGETS gfx90a gfx940 gfx941 gfx942)
set(gfx90a_AND_ABOVE_TARGETS gfx90a gfx940 gfx941 gfx942)
function(CheckRejectedArchs OFFLOAD_ARCH_STR_LOCAL)
set(ARCH_CHECK -1 PARENT_SCOPE)
string(REGEX MATCHALL "--offload-arch=gfx[0-9a-z]+" OFFLOAD_ARCH_LIST ${OFFLOAD_ARCH_STR_LOCAL})
foreach(OFFLOAD_ARCH IN LISTS OFFLOAD_ARCH_LIST)
string(REGEX MATCHALL "--offload-arch=(gfx[0-9a-z]+)" matches ${OFFLOAD_ARCH})
if (CMAKE_MATCH_COUNT EQUAL 1)
if (CMAKE_MATCH_1 IN_LIST MI200_AND_ABOVE_TARGETS)
if (CMAKE_MATCH_1 IN_LIST gfx90a_AND_ABOVE_TARGETS)
set(ARCH_CHECK 1 PARENT_SCOPE)
endif() # CMAKE_MATCH_1
endif() # CMAKE_MATCH_COUNT
@@ -105,13 +105,13 @@ if(HIP_PLATFORM MATCHES "amd")
set(ARCH_CHECK -1)
endif()
if(${ARCH_CHECK} EQUAL -1)
message(STATUS "Adding test: ${NOT_FOR_MI200_AND_ABOVE_TEST}")
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_MI200_AND_ABOVE_TEST})
message(STATUS "Adding test: ${NOT_FOR_gfx90a_AND_ABOVE_TEST}")
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST})
else()
message(STATUS "Removing test: ${NOT_FOR_MI200_AND_ABOVE_TEST}")
message(STATUS "Removing test: ${NOT_FOR_gfx90a_AND_ABOVE_TEST}")
endif()
else()
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_MI200_AND_ABOVE_TEST})
set(TEST_SRC ${TEST_SRC} ${NOT_FOR_gfx90a_AND_ABOVE_TEST})
endif()
if(WIN32)