diff --git a/projects/hip-tests/catch/CMakeLists.txt b/projects/hip-tests/catch/CMakeLists.txt index 8f7aa92624..7d9b20496c 100644 --- a/projects/hip-tests/catch/CMakeLists.txt +++ b/projects/hip-tests/catch/CMakeLists.txt @@ -41,13 +41,19 @@ if(WIN32) endif() if(NOT DEFINED HIP_PATH) - if(DEFINED ROCM_PATH) - set(HIP_PATH ${ROCM_PATH}) - else() - set(HIP_PATH "/opt/rocm") - endif() + if(DEFINED ROCM_PATH) + set(HIP_PATH ${ROCM_PATH}) + else() + set(HIP_PATH "/opt/rocm") + endif() endif() + +if(NOT DEFINED ROCM_PATH) + set(ROCM_PATH "/opt/rocm") +endif() + message(STATUS "HIP_PATH: ${HIP_PATH}") +message(STATUS "ROCM_PATH: ${ROCM_PATH}") set(CMAKE_CXX_COMPILER "${HIP_PATH}/bin/hipcc${EXT}") set(CMAKE_C_COMPILER "${HIP_PATH}/bin/hipcc${EXT}") @@ -65,6 +71,7 @@ list(GET VERSION_LIST 1 HIP_VERSION_MINOR) list(GET VERSION_LIST 2 HIP_VERSION_PATCH_GITHASH) string(REPLACE "-" ";" VERSION_LIST ${HIP_VERSION_PATCH_GITHASH}) list(GET VERSION_LIST 0 HIP_VERSION_PATCH) +list(GET VERSION_LIST 1 HIP_VERSION_GITHASH) if(DEFINED ENV{ROCM_LIBPATCH_VERSION}) set(HIP_PACKAGING_VERSION_PATCH ${HIP_VERSION_PATCH}.$ENV{ROCM_LIBPATCH_VERSION}) @@ -118,7 +125,13 @@ endif() add_definitions(-DKERNELS_PATH="${CMAKE_CURRENT_SOURCE_DIR}/kernels/") set(CATCH_BUILD_DIR catch_tests) -file(COPY ./hipTestMain/config DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/hipTestMain) +execute_process(COMMAND ${CMAKE_COMMAND} -E + make_directory ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/hipTestMain/config) +file(GLOB JSON_FILES "./hipTestMain/config/*.json") +foreach(json IN LISTS JSON_FILES) + file(COPY ${json} + DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/hipTestMain/config/) +endforeach() file(COPY ./external/Catch2/cmake/Catch2/CatchAddTests.cmake DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/script) file(COPY ./external/Catch2/cmake/Catch2/catch_include.cmake @@ -172,23 +185,22 @@ message(STATUS "CMAKE HIP ARCHITECTURES: ${CMAKE_HIP_ARCHITECTURES}") if(NOT DEFINED OFFLOAD_ARCH_STR AND EXISTS "${ROCM_PATH}/bin/rocm_agent_enumerator" AND HIP_PLATFORM STREQUAL "amd" AND UNIX) - execute_process(COMMAND ${ROCM_PATH}/bin/rocm_agent_enumerator + execute_process(COMMAND "${ROCM_PATH}/bin/rocm_agent_enumerator" OUTPUT_VARIABLE HIP_GPU_ARCH - RESULT_VARIABLE ROCM_AGENT_ENUM_RESULT) + RESULT_VARIABLE ROCM_AGENT_ENUM_RESULT + OUTPUT_STRIP_TRAILING_WHITESPACE) # Trim out gfx000 string(REPLACE "gfx000\n" "" HIP_GPU_ARCH ${HIP_GPU_ARCH}) if (NOT HIP_GPU_ARCH STREQUAL "") - string(LENGTH ${HIP_GPU_ARCH} HIP_GPU_ARCH_LEN) - # If string has more gfx target except gfx000 - if(${HIP_GPU_ARCH_LEN} GREATER_EQUAL 1) - string(REGEX REPLACE "\n" ";" HIP_GPU_ARCH_LIST "${HIP_GPU_ARCH}") - set(OFFLOAD_ARCH_STR "") - foreach(_hip_gpu_arch ${HIP_GPU_ARCH_LIST}) - set(OFFLOAD_ARCH_STR "--offload-arch=${_hip_gpu_arch} ${OFFLOAD_ARCH_STR}") - endforeach() - endif() + string(REGEX REPLACE "\n" ";" HIP_GPU_ARCH_LIST "${HIP_GPU_ARCH}") + list(REMOVE_DUPLICATES HIP_GPU_ARCH_LIST) + list(LENGTH HIP_GPU_ARCH_LIST HIP_GPU_ARCH_LEN) + set(OFFLOAD_ARCH_STR "") + foreach(_hip_gpu_arch ${HIP_GPU_ARCH_LIST}) + set(OFFLOAD_ARCH_STR "--offload-arch=${_hip_gpu_arch} ${OFFLOAD_ARCH_STR}") + endforeach() else() - message(STATUS "ROCm Agent Enumurator found no valid architectures") + message(STATUS "ROCm Agent Enumerator found no valid architectures") endif() elseif(DEFINED OFFLOAD_ARCH_STR) string(REPLACE "--offload-arch=" "" HIP_GPU_ARCH_LIST ${OFFLOAD_ARCH_STR}) @@ -210,7 +222,44 @@ if(git_result EQUAL 0) set(HIP_TESTS_GITHASH ${git_output}) endif() +set(OFFLOAD_ARCH_LIST ${OFFLOAD_ARCH_STR}) +separate_arguments(OFFLOAD_ARCH_LIST) +list(REMOVE_DUPLICATES OFFLOAD_ARCH_LIST) +set(hip_gpu_arch_list "") +foreach(__offload_arch ${OFFLOAD_ARCH_LIST}) + string(REPLACE "--offload-arch=" "" targetid ${__offload_arch}) + string(REPLACE ":" ";" target_id_list ${targetid}) + list(GET target_id_list 0 arch) + string(APPEND hip_gpu_arch_list "${arch};") + list(REMOVE_DUPLICATES hip_gpu_arch_list) +endforeach() +file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/hipTestMain/config) +set(config_gen_path ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/hipTestMain/config) +if(WIN32) + set(configToUse "config_amd_windows") + set(config_file ${CMAKE_SOURCE_DIR}/hipTestMain/config/${configToUse}) + set(json_file ${config_gen_path}/${configToUse}.json) + set(CLANG_CPP "${HIP_PATH}/../lc/bin/clang-cpp.exe") + + set(cmd "${CLANG_CPP} -P -DGITHASH=\"${HIP_VERSION_GITHASH}\" ${config_file}>${json_file}") + message(${cmd}) + execute_process(COMMAND cmd.exe /C ${cmd} + RESULT_VARIABLE json_result) + message(STATUS "${configToUse}.json file generation result: ${json_result}") +else() + set(configToUse "config_amd_linux") + foreach(arch ${hip_gpu_arch_list}) + set(config_file ${CMAKE_SOURCE_DIR}/hipTestMain/config/${configToUse}) + set(config_gen_path ${CMAKE_CURRENT_BINARY_DIR}/${CATCH_BUILD_DIR}/hipTestMain/config) + set(json_file ${config_gen_path}/${configToUse}_${arch}.json) + set(cmd "${ROCM_PATH}/llvm/bin/clang-cpp -P -D${arch} -DGITHASH=\\\"${HIP_VERSION_GITHASH}\\\" ${config_file}>${json_file}") + message(${cmd}) + execute_process(COMMAND bash -c ${cmd} + RESULT_VARIABLE json_result) + message(STATUS "${configToUse}_${arch}.json file generation result: ${json_result}") + endforeach() +endif() # prints the catch info to a file string(TIMESTAMP _timestamp UTC) set(_autogen "# Auto-generated by cmake on ${_timestamp} UTC\n") diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux new file mode 100644 index 0000000000..aded65f0d6 --- /dev/null +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux @@ -0,0 +1,179 @@ +#define COMMON +#if defined gfx90a || defined gfx940 + #define MI2XX +#endif + +{ + "Info": [ + "File generated for commit on below mentioned date and time", + __DATE__, + __TIME__, + GITHASH + ], + "DisabledTests": [ + #if defined COMMON + "Unit_hipStreamPerThread_DeviceReset_1", + "Unit_hipMallocManaged_OverSubscription", + "Unit_hipDeviceGetSharedMemConfig_Positive_Basic", + "Unit_hipDeviceGetSharedMemConfig_Positive_Threaded", + "Unit_hipDeviceGetCacheConfig_Positive_Basic", + "Unit_hipDeviceGetCacheConfig_Positive_Threaded", + "Unit_hipGetDeviceFlags_Positive_Context", + "Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process", + "Unit_hipIpcOpenMemHandle_Negative_Open_In_Creating_Process", + "Unit_hipInit_Negative", + "Unit_hipDeviceReset_Positive_Basic", + "Unit_hipDeviceReset_Positive_Threaded", + "Unit_hipFuncSetCacheConfig_Positive_Basic", + "Unit_hipFuncSetCacheConfig_Negative_Parameters", + "Unit_hipFuncSetSharedMemConfig_Positive_Basic", + "Unit_hipFuncSetSharedMemConfig_Negative_Parameters", + "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize", + "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout", + "Unit_hipFuncSetAttribute_Positive_Parameters", + "Unit_hipFuncSetAttribute_Negative_Parameters", + "NOTE: The following 4 tests are disabled due to defect - EXSWHTEC-240", + "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", + "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", + "Unit_hipOccupancyMaxActiveBlocksPerMultiprocessor_Negative_Parameters", + "Unit_hipGraphMemcpyNodeSetParamsToSymbol_Positive_Basic", + "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Positive_Basic", + "Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Positive_Basic", + "Unit_hipKernelNameRef_Negative_Parameters", + "Unit_hipMemAdvise_AccessedBy_All_Devices", + "Unit_hipMemAdvise_No_Flag_Interference", + "Unit_hipMemGetAddressRange_Negative", + "NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238", + "Unit_hipDrvMemcpy3D_Positive_Array", + "Unit_hipDrvMemcpy3DAsync_Positive_Array", + "Unit_hipMemRangeGetAttribute_Positive_AccessedBy_Basic", + "Unit_hipMemRangeGetAttribute_Positive_AccessedBy_Partial_Range", + "Unit_hipMemGetAddressRange_Positive", + "Unit_hipGraphAddMemcpyNode1D_Negative_Basic", + "intermittent issue: corrupted double-linked list", + "Unit_hipGraphRetainUserObject_Functional_2", + "Unit_ChannelDescriptor_Positive_16BitFloatingPoint", + "intermittent issue: failure expected but sucess returned", + "Unit_hipMemAdvise_NegtveTsts", + "Note: Following four tests disabled due to defect - EXSWHTEC-203", + "Unit_hipGraphAddMemsetNode_Positive_Basic - uint16_t", + "Unit_hipGraphAddMemsetNode_Positive_Basic - uint32_t", + "Unit_hipStreamSetCaptureDependencies_Positive_Functional", + "Note: Test disabled due to defect - EXSWHTEC-207", + "Unit_hipIpcGetMemHandle_Positive_Unique_Handles_Separate_Allocations", + "Unit_hipStreamCreateWithFlags_DefaultStreamInteraction", + "Unit_hipStreamWaitEvent_UninitializedStream_Negative", + "Unit_hipMemset3DSync", + "Unit_hipStreamAddCallback_StrmSyncTiming", + "Disabling test tracked SWDEV-394199", + "Unit_hipStreamCreateWithPriority_MulthreadNonblockingflag", + "Disabling test tracked SWDEV-395683", + "Unit_hipStreamPerThread_MultiThread", + "SWDEV-396963", + "Unit_hipMemcpy2DFromArrayAsync_Positive_Synchronization_Behavior", + "Disabling tests tracked with SWDEV-389647..", + "Unit_hipMemcpy2DToArrayAsync_Positive_Synchronization_Behavior", + "Disabling test tracked SWDEV-391555", + "Unit_hipMemcpyPeer_Positive_ZeroSize", + "Unit_hipMemcpyPeerAsync_Positive_ZeroSize", + "Disabling test tracked SWDEV-391718", + "Unit_hipMemRangeGetAttribute_TstCountParam", + "Fails in Stress test SWDEV-398971", + "SWDEV-398975 Seg faults in stress test", + "Unit_hipMemcpyWithStream_MultiThread", + "SWDEV-398977 fails in stress tests", + "Unit_hipMemset2DSync", + "SWDEV-398981 fails in stress test", + "Unit_hipStreamCreateWithPriority_MulthreadDefaultflag", + "SWDEV-402054 fails in external github build", + "Unit_hipEventDestroy_WithWaitingStream", + "=== Below tests fail in stress test on 23/06/23 ===", + "Unit_hipIpcMemAccess_ParameterValidation", + "Unit_hipMemcpy2DFromArrayAsync_Positive_Synchronization_Behavior", + "Unit_hipGraphClone_Test_hipGraphExecMemcpyNodeSetParams", + "Unit_hipGraphClone_Test_hipGraphMemcpyNodeSetParams1D_and_exec", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_And", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", + "=== Below tests fail in stress test on 30/06/23 ===", + "Unit_hipStreamValue_Wait32_Blocking_NoMask_Nor", + "Unit_hipStreamValue_Write - TestParams", + "Unit_hipMemcpyParam2DAsync_multiDevice-StreamOnDiffDevice", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/96 ===", + "Unit_hipHostGetDevicePointer_Negative", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", + "Unit_ChannelDescriptor_Positive_Basic_1D - long", + "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", + "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", + "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", + "Unit_ChannelDescriptor_Positive_Basic_1D - long1", + "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", + "Unit_ChannelDescriptor_Positive_Basic_2D - long2", + "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", + "Unit_ChannelDescriptor_Positive_Basic_4D - long4", + "Unit_hipExtModuleLaunchKernel_NonUniformWorkGroup", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/18 ===", + "Unit_hipMemcpyAsync_Negative_Parameters", + "Unit_hipMemcpyDtoHAsync_Negative_Parameters", + "Unit_hipMemcpyHtoDAsync_Negative_Parameters", + "Unit_hipMemcpyDtoDAsync_Negative_Parameters", + "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_1", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/327 ===", + "Unit_hiprtcGpuRdcComplrOptnTst", + "Unit_hiprtcDisabledSlpVectorizeComplrOptnTst", + "Unit_hiprtcRpassInlineComplrOptnTst", + "Unit_hiprtcCombiComplrOptnTst", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===", + "Unit_hipGetChannelDesc_Negative_Parameters", + "Unit_hipGraphAddChildGraphNode_CmplxNstGrph_UpdKerFun_Clone", + "=== Below tests fail in stress test on 24/07/23 ===", + "Unit_hipStreamCreateWithPriority_ValidateWithEvents", + "Unit_hipEventIpc", + "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", + "Unit_hiprtc_saxpy", + "Unit_hiprtc_warpsize", + "Unit_hiprtc_functional", + "Unit_hipStreamCaptureRtc", + "Unit_hiprtc_cpp17", + "Unit_hiprtc_namehandling", + "Unit_hiprtc_getloweredname", + "Unit_hiprtc_test_hip_bfloat16", + "Unit_RTC_LinkerAPI", + "Unit_hiprtc_half_shuffle", + "Unit_hiprtc_includepath", + #endif + #if defined MI2XX + "Unit_hipStreamPerThread_DeviceReset_1", + "Unit_hipMallocManaged_OverSubscription", + "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", + "Unit_hipInit_Negative", + "Unit_hipMemGetAddressRange_Negative", + "Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write", + "Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters", + "Unit_hipImportExternalMemory_Vulkan_Negative_Parameters", + "Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore", + "Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores", + "Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters", + "Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore", + "Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores", + "Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters", + "Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters", + "Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters", + "Unit_Grid_Group_Sync_Positive_Basic", + "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", + "Unit_hiprtc_saxpy", + "Unit_hiprtc_warpsize", + "Unit_hiprtc_functional", + "Unit_hipStreamCaptureRtc", + "Unit_hiprtc_cpp17", + "Unit_hiprtc_namehandling", + "Unit_hiprtc_getloweredname", + "Unit_hiprtc_test_hip_bfloat16", + "Unit_RTC_LinkerAPI", + "Unit_hiprtc_half_shuffle", + "Unit_hiprtc_includepath", + #endif + "End of json" + ] +} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux_MI2xx.json b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux_MI2xx.json deleted file mode 100644 index 20da9c8d66..0000000000 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux_MI2xx.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "DisabledTests": - [ - "Unit_hipStreamPerThread_DeviceReset_1", - "Unit_hipMallocManaged_OverSubscription", - "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", - "Unit_hipInit_Negative", - "Unit_hipMemGetAddressRange_Negative", - "Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write", - "Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters", - "Unit_hipImportExternalMemory_Vulkan_Negative_Parameters", - "Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore", - "Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores", - "Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters", - "Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore", - "Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores", - "Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters", - "Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters", - "Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters", - "Unit_Grid_Group_Sync_Positive_Basic", - "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", - "Unit_hiprtc_saxpy", - "Unit_hiprtc_warpsize", - "Unit_hiprtc_functional", - "Unit_hipStreamCaptureRtc", - "Unit_hiprtc_cpp17", - "Unit_hiprtc_namehandling", - "Unit_hiprtc_getloweredname", - "Unit_hiprtc_test_hip_bfloat16", - "Unit_RTC_LinkerAPI", - "Unit_hiprtc_half_shuffle", - "Unit_hiprtc_includepath" - ] - -} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux_common.json b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux_common.json deleted file mode 100644 index 7068f83d1e..0000000000 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux_common.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "DisabledTests": - [ - "Unit_hipStreamPerThread_DeviceReset_1", - "Unit_hipMallocManaged_OverSubscription", - "Unit_hipDeviceGetSharedMemConfig_Positive_Basic", - "Unit_hipDeviceGetSharedMemConfig_Positive_Threaded", - "Unit_hipDeviceGetCacheConfig_Positive_Basic", - "Unit_hipDeviceGetCacheConfig_Positive_Threaded", - "Unit_hipGetDeviceFlags_Positive_Context", - "Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process", - "Unit_hipIpcOpenMemHandle_Negative_Open_In_Creating_Process", - "Unit_hipInit_Negative", - "Unit_hipDeviceReset_Positive_Basic", - "Unit_hipDeviceReset_Positive_Threaded", - "Unit_hipFuncSetCacheConfig_Positive_Basic", - "Unit_hipFuncSetCacheConfig_Negative_Parameters", - "Unit_hipFuncSetSharedMemConfig_Positive_Basic", - "Unit_hipFuncSetSharedMemConfig_Negative_Parameters", - "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize", - "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout", - "Unit_hipFuncSetAttribute_Positive_Parameters", - "Unit_hipFuncSetAttribute_Negative_Parameters", - "NOTE: The following 4 tests are disabled due to defect - EXSWHTEC-240", - "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", - "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", - "Unit_hipOccupancyMaxActiveBlocksPerMultiprocessor_Negative_Parameters", - "Unit_hipGraphMemcpyNodeSetParamsToSymbol_Positive_Basic", - "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Positive_Basic", - "Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Positive_Basic", - "Unit_hipKernelNameRef_Negative_Parameters", - "Unit_hipMemAdvise_AccessedBy_All_Devices", - "Unit_hipMemAdvise_No_Flag_Interference", - "Unit_hipMemGetAddressRange_Negative", - "NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238", - "Unit_hipDrvMemcpy3D_Positive_Array", - "Unit_hipDrvMemcpy3DAsync_Positive_Array", - "Unit_hipMemRangeGetAttribute_Positive_AccessedBy_Basic", - "Unit_hipMemRangeGetAttribute_Positive_AccessedBy_Partial_Range", - "Unit_hipMemGetAddressRange_Positive", - "Unit_hipGraphAddMemcpyNode1D_Negative_Basic", - "intermittent issue: corrupted double-linked list", - "Unit_hipGraphRetainUserObject_Functional_2", - "Unit_ChannelDescriptor_Positive_16BitFloatingPoint", - "intermittent issue: failure expected but sucess returned", - "Unit_hipMemAdvise_NegtveTsts", - "Note: Following four tests disabled due to defect - EXSWHTEC-203", - "Unit_hipGraphAddMemsetNode_Positive_Basic - uint16_t", - "Unit_hipGraphAddMemsetNode_Positive_Basic - uint32_t", - "Unit_hipStreamSetCaptureDependencies_Positive_Functional", - "Note: Test disabled due to defect - EXSWHTEC-207", - "Unit_hipIpcGetMemHandle_Positive_Unique_Handles_Separate_Allocations", - "Unit_hipStreamCreateWithFlags_DefaultStreamInteraction", - "Unit_hipStreamWaitEvent_UninitializedStream_Negative", - "Unit_hipMemset3DSync", - "Unit_hipStreamAddCallback_StrmSyncTiming", - "Disabling test tracked SWDEV-394199", - "Unit_hipStreamCreateWithPriority_MulthreadNonblockingflag", - "Disabling test tracked SWDEV-395683", - "Unit_hipStreamPerThread_MultiThread", - "SWDEV-396963", - "Unit_hipMemcpy2DFromArrayAsync_Positive_Synchronization_Behavior", - "Disabling tests tracked with SWDEV-389647..", - "Unit_hipMemcpy2DToArrayAsync_Positive_Synchronization_Behavior", - "Disabling test tracked SWDEV-391555", - "Unit_hipMemcpyPeer_Positive_ZeroSize", - "Unit_hipMemcpyPeerAsync_Positive_ZeroSize", - "Disabling test tracked SWDEV-391718", - "Unit_hipMemRangeGetAttribute_TstCountParam", - "Fails in Stress test SWDEV-398971", - "SWDEV-398975 Seg faults in stress test", - "Unit_hipMemcpyWithStream_MultiThread", - "SWDEV-398977 fails in stress tests", - "Unit_hipMemset2DSync", - "SWDEV-398981 fails in stress test", - "Unit_hipStreamCreateWithPriority_MulthreadDefaultflag", - "SWDEV-402054 fails in external github build", - "Unit_hipEventDestroy_WithWaitingStream", - "=== Below tests fail in stress test on 23/06/23 ===", - "Unit_hipIpcMemAccess_ParameterValidation", - "Unit_hipMemcpy2DFromArrayAsync_Positive_Synchronization_Behavior", - "Unit_hipGraphClone_Test_hipGraphExecMemcpyNodeSetParams", - "Unit_hipGraphClone_Test_hipGraphMemcpyNodeSetParams1D_and_exec", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_And", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", - "=== Below tests fail in stress test on 30/06/23 ===", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Nor", - "Unit_hipStreamValue_Write - TestParams", - "Unit_hipMemcpyParam2DAsync_multiDevice-StreamOnDiffDevice", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/96 ===", - "Unit_hipHostGetDevicePointer_Negative", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", - "Unit_ChannelDescriptor_Positive_Basic_1D - long", - "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", - "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", - "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", - "Unit_ChannelDescriptor_Positive_Basic_1D - long1", - "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", - "Unit_ChannelDescriptor_Positive_Basic_2D - long2", - "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", - "Unit_ChannelDescriptor_Positive_Basic_4D - long4", - "Unit_hipExtModuleLaunchKernel_NonUniformWorkGroup", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/18 ===", - "Unit_hipMemcpyAsync_Negative_Parameters", - "Unit_hipMemcpyDtoHAsync_Negative_Parameters", - "Unit_hipMemcpyHtoDAsync_Negative_Parameters", - "Unit_hipMemcpyDtoDAsync_Negative_Parameters", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_1", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/327 ===", - "Unit_hiprtcGpuRdcComplrOptnTst", - "Unit_hiprtcDisabledSlpVectorizeComplrOptnTst", - "Unit_hiprtcRpassInlineComplrOptnTst", - "Unit_hiprtcCombiComplrOptnTst", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===", - "Unit_hipGetChannelDesc_Negative_Parameters", - "Unit_hipGraphAddChildGraphNode_CmplxNstGrph_UpdKerFun_Clone", - "=== Below tests fail in stress test on 24/07/23 ===", - "Unit_hipStreamCreateWithPriority_ValidateWithEvents", - "Unit_hipEventIpc", - "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", - "Unit_hiprtc_saxpy", - "Unit_hiprtc_warpsize", - "Unit_hiprtc_functional", - "Unit_hipStreamCaptureRtc", - "Unit_hiprtc_cpp17", - "Unit_hiprtc_namehandling", - "Unit_hiprtc_getloweredname", - "Unit_hiprtc_test_hip_bfloat16", - "Unit_RTC_LinkerAPI", - "Unit_hiprtc_half_shuffle", - "Unit_hiprtc_includepath" - ] -} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows new file mode 100644 index 0000000000..cb95233c16 --- /dev/null +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows @@ -0,0 +1,250 @@ +#define COMMON +{ + "Info": [ + "File generated for commit on below mentioned date and time", + __DATE__, + __TIME__, + GITHASH + ], + "DisabledTests": [ + #if defined COMMON + "Unit_hipMalloc_CoherentTst", + "Unit_hipTextureMipmapObj2D_Check", + "Unit_hipGraphAddHostNode_ClonedGraphwithHostNode", + "Unit_hipEventIpc", + "Unit_hipMalloc3D_Negative", + "Unit_hipMemPoolApi_BasicAlloc", + "Unit_hipMemPoolApi_BasicTrim", + "Unit_hipMemPoolApi_BasicReuse", + "Unit_hipMemPoolApi_Opportunistic", + "Unit_hipMalloc3D_ValidatePitch", + "Unit_hipMemAllocPitch_ValidatePitch", + "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Functional", + "Unit_hipMallocManaged_OverSubscription", + "Unit_hipMallocManaged_CoherentTstWthAdvise", + "Unit_hipMallocManaged_Advanced", + "Unit_hipMemRangeGetAttribute_TstCountParam", + "Unit_hipMemRangeGetAttribute_NegativeTests", + "Unit_hipMemRangeGetAttribute_AccessedBy1", + "Unit_hipMemRangeGetAttribte_3", + "Unit_hipMemRangeGetAttribute_4", + "Unit_hipMemRangeGetAttribute_PrefetchAndGtAttr", + "Unit_hipMemAdvise_TstFlags", + "Unit_hipMemAdvise_PrefrdLoc", + "Unit_hipMemAdvise_ReadMostly", + "Unit_hipMemAdvise_TstFlgOverrideEffect", + "Unit_hipMemAdvise_TstAccessedByFlg", + "Unit_hipMemAdvise_TstAccessedByFlg4", + "Unit_hipMemAdvise_TstMemAdvisePrefrdLoc", + "Unit_hipMemAdvise_TstMemAdviseMultiFlag", + "Unit_hipMemAdvise_ReadMosltyMgpuTst", + "Unit_hipMemAdvise_TstSetUnsetPrfrdLoc", + "Unit_hipMallocManaged_DeviceContextChange - unsigned char", + "Unit_hipMallocManaged_DeviceContextChange - int", + "Unit_hipMallocManaged_DeviceContextChange - float", + "Unit_hipMallocManaged_DeviceContextChange - double", + "Unit_hipStreamCreateWithPriority_ValidateWithEvents", + "Unit_hipStreamPerThread_StrmWaitEvt", + "Unit_hipMemGetInfo_DifferentMallocSmall", + "Unit_hipMemGetInfo_MallocArray - int", + "Unit_hipMemGetInfo_MallocArray - int4", + "Unit_hipMemGetInfo_MallocArray - char", + "Unit_hipMemGetInfo_Malloc3D", + "Unit_hipMemGetInfo_Malloc3DArray - char", + "Unit_hipMemGetInfo_Malloc3DArray - int", + "Unit_hipMemGetInfo_Malloc3DArray - int4", + "Unit_hipMemGetInfo_ParaSmall", + "Unit_hipMemGetInfo_ParaMultiSmall", + "Unit_hipMultiThreadDevice_NearZero", + "Unit_hipStreamPerThread_DeviceReset_1", + "Unit_hipStreamCreateWithPriority_ValidateWithEvents", + "Unit_hipStreamPerThread_StrmWaitEvt", + "Unit_hipGraphMemcpyNodeSetParamsToSymbol_Functional", + "Unit_hipStreamWaitEvent_DifferentStreams", + "Unit_hipStreamQuery_WithFinishedWork", + "Unit_hipDeviceGetCacheConfig_Positive_Basic", + "Unit_hipDeviceGetCacheConfig_Positive_Basic", + "Unit_hipDeviceGetCacheConfig_Positive_Threaded", + "Unit_hipStreamValue_Wait32_Blocking_Mask_Gte", + "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_1", + "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_2", + "Unit_hipStreamValue_Wait32_Blocking_Mask_And", + "Unit_hipStreamValue_Wait32_Blocking_NoMask_Eq", + "Unit_hipStreamValue_Wait32_Blocking_NoMask_Gte", + "Unit_hipStreamValue_Wait32_Blocking_NoMask_And", + "Unit_hipStreamValue_Wait32_Blocking_NoMask_Nor", + "Unit_hipStreamValue_Wait64_Blocking_Mask_Gte_1", + "Unit_hipStreamValue_Wait64_Blocking_Mask_Gte_2", + "Unit_hipStreamValue_Wait64_Blocking_Mask_Eq_1", + "Unit_hipStreamValue_Wait64_Blocking_Mask_Eq_2", + "Unit_hipStreamValue_Wait64_Blocking_Mask_And", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_Gte", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_Eq", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_And", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", + "Unit_hipGetDeviceFlags_Positive_Context", + "Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process", + "Unit_hipIpcOpenMemHandle_Negative_Open_In_Creating_Process", + "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", + "Unit_hipDeviceGetSharedMemConfig_Positive_Basic", + "Unit_hipDeviceGetSharedMemConfig_Positive_Threaded", + "Unit_hipDeviceReset_Positive_Basic", + "Unit_hipDeviceReset_Positive_Threaded", + "Unit_hipInit_Negative", + "Unit_hipGraphMemcpyNodeSetParams_Functional", + "Unit_hipGraphNodeGetDependentNodes_Functional", + "Unit_hipGraphNodeGetDependencies_Functional", + "Unit_hipGraphExecChildGraphNodeSetParams_ChildTopology", + "Unit_hipGraphAddEventRecordNode_MultipleRun", + "Unit_hipGraphAddEventRecordNode_Functional_ElapsedTime", + "Unit_hipStreamBeginCapture_captureComplexGraph", + "Note: needs to be enabled when streamPerThread issues are fixed", + "Unit_hipStreamSynchronize_NullStreamAndStreamPerThread", + "Note: intermittent Seg fault failure ", + "Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags", + "Unit_hipGraphAddChildGraphNode_MultGraphsAsSingleGraph", + "Unit_hipFuncSetCacheConfig_Positive_Basic", + "Unit_hipFuncSetCacheConfig_Negative_Parameters", + "Unit_hipFuncSetSharedMemConfig_Positive_Basic", + "Unit_hipFuncSetSharedMemConfig_Negative_Parameters", + "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize", + "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout", + "Unit_hipFuncSetAttribute_Positive_Parameters", + "Unit_hipFuncSetAttribute_Negative_Parameters", + "Unit_hipEventCreateWithFlags_DisableSystemFence_HstVisMem", + "Unit_hipEventCreateWithFlags_DefaultFlg_HstVisMem", + "Unit_hipEventCreateWithFlags_DisableSystemFence_NonCohHstMem", + "Unit_hipEventCreateWithFlags_DefaultFlg_NonCohHstMem", + "Unit_hipEventCreateWithFlags_DisableSystemFence_CohHstMem", + "Unit_hipEventCreateWithFlags_DefaultFlg_CohHstMem", + "NOTE: The following 4 tests are disabled due to defect - EXSWHTEC-240", + "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", + "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", + "Unit_hipOccupancyMaxActiveBlocksPerMultiprocessor_Negative_Parameters", + "Unit_hipGraphMemcpyNodeSetParamsToSymbol_Positive_Basic", + "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Positive_Basic", + "Unit_hipGraphMemcpyNodeSetParamsFromSymbol_Positive_Basic", + "Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Positive_Basic", + "Unit_hipKernelNameRef_Negative_Parameters", + "Unit_hipKernelNameRef_Positive_Basic", + "Unit_hipMemAdvise_AccessedBy_All_Devices", + "Unit_hipMemAdvise_No_Flag_Interference", + "Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags", + "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep", + "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ClonedGrph", + "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ChldNode", + "Unit_hipMemGetAddressRange_Negative", + "NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238", + "Unit_hipDrvMemcpy3D_Positive_Array", + "Unit_hipDrvMemcpy3DAsync_Positive_Array", + "Unit_hipMemGetAddressRange_Positive", + "Note: devicelib hangs and failures", + "Unit_deviceAllocation_Malloc_PerThread_PrimitiveDataType", + "Unit_deviceAllocation_New_PerThread_PrimitiveDataType", + "Unit_deviceAllocation_Malloc_PerThread_StructDataType", + "Unit_deviceAllocation_New_PerThread_StructDataType", + "Unit_deviceAllocation_Malloc_AcrossKernels", + "Unit_deviceAllocation_New_AcrossKernels", + "Unit_deviceAllocation_Malloc_SingleCodeObj", + "Unit_deviceAllocation_New_SingleCodeObj", + "Unit_deviceAllocation_Malloc_PerThread_Graph", + "Unit_deviceAllocation_New_PerThread_Graph", + "Unit_deviceAllocation_Malloc_DeviceFunc", + "Unit_deviceAllocation_VirtualFunction", + "Unit_deviceAllocation_Malloc_MulKernels_MulThreads", + "Unit_deviceAllocation_New_MulKernels_MulThreads", + "Unit_deviceAllocation_Malloc_MulCodeObj", + "Unit_deviceAllocation_New_MulCodeObj", + "Unit_deviceAllocation_New_DeviceFunc", + "Unit_hipGraphAddEventRecordNode_MultipleRun", + "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", + "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", + "Unit_hipStreamQuery_WithFinishedWork", + "Unit_hipLaunchHostFunc_Graph", + "Unit_hipLaunchHostFunc_KernelHost", + "Unit_ChannelDescriptor_Positive_16BitFloatingPoint", + "Unit_hipStreamSetCaptureDependencies_Positive_Functional", + "Note: Following four tests disabled due to defect - EXSWHTEC-203", + "Unit_hipGraphAddMemsetNode_Positive_Basic - uint16_t", + "Unit_hipGraphAddMemsetNode_Positive_Basic - uint32_t", + "Unit_hipGraphMemsetNodeSetParams_Positive_Basic - uint16_t", + "Unit_hipGraphMemsetNodeSetParams_Positive_Basic - uint32_t", + "Note: Test disabled due to defect - EXSWHTEC-207", + "Unit_hipGraphExecMemsetNodeSetParams_Negative_Updating_Non1D_Node", + "Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic - uint8_t", + "Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic - uint16_t", + "Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic - uint32_t", + "Unit_hipGraphMemsetNodeSetParams_Positive_Basic - uint8_t", + "Unit_hipStreamWaitEvent_UninitializedStream_Negative", + "Unit_hipDeviceGetUuid_Positive", + "Disabling test tracked SWDEV-394199", + "Unit_hipStreamCreateWithPriority_MulthreadNonblockingflag", + "SWDEV-396618 hipEventElapsedTime returns sucess", + "Unit_hipEventElapsedTime_NotReady_Negative", + "SWDEV-396617 ExecMemcpyNodeSetParamsFromSymbol fails in direction", + "Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Negative_Parameters", + "SWDEV-396616 hipMemMap returns invalid error", + "Unit_hipMemVmm_Basic", + "SWDEV-396615 mGPUs not considered correctly", + "Unit_hipManagedKeyword_MultiGpu", + "Disabling test tracked SWDEV-391555", + "Unit_hipMemcpyPeer_Positive_ZeroSize", + "Unit_hipMemcpyPeerAsync_Positive_ZeroSize", + "Disabling test tracked SWDEV-391718", + "Unit_hipMemRangeGetAttribute_TstCountParam", + "SWDEV-400049 tdr intermittently", + "Unit_hipMemsetDSync – init16_t", + "Unit_hipStreamAddCallback_StrmSyncTiming", + "SWDEV-402082 - PAL Backend fails to reserve address on GPU except first one", + "Unit_hipGraphInstantiateWithFlags_FlagAutoFreeOnLaunch_check", + "SWDEV-398981 fails in stress test", + "Unit_hipStreamCreateWithPriority_MulthreadDefaultflag", + "Disabling below tests temporarily due to change in API behavior", + "Unit_hipMemPrefetchAsync_NonPageSz", + "Unit_hipStreamCreateWithFlags_DefaultStreamInteraction", + "SWDEV-402054 fails in external github build", + "Unit_hipEventDestroy_WithWaitingStream", + "Note: UUID returned empty on some windows nodes", + "Unit_hipDeviceGetUuid_Positive", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/96 ===", + "Unit_hipHostGetDevicePointer_Negative", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", + "Unit_ChannelDescriptor_Positive_Basic_1D - long", + "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", + "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", + "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", + "Unit_ChannelDescriptor_Positive_Basic_1D - long1", + "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", + "Unit_ChannelDescriptor_Positive_Basic_2D - long2", + "Unit_ChannelDescriptor_Positive_Basic_3D - ulong3", + "Unit_ChannelDescriptor_Positive_Basic_3D - long3", + "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", + "Unit_ChannelDescriptor_Positive_Basic_4D - long4", + "Unit_hipExtModuleLaunchKernel_NonUniformWorkGroup", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/18 ===", + "Unit_hipMemcpyAsync_Negative_Parameters", + "Unit_hipMemcpyDtoHAsync_Negative_Parameters", + "Unit_hipMemcpyHtoDAsync_Negative_Parameters", + "Unit_hipMemcpyDtoDAsync_Negative_Parameters", + "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===", + "Unit_hipGetChannelDesc_Negative_Parameters", + "Unit_hipTextureMipmapRef2D_Positive_Check", + "Unit_hipTextureMipmapRef2D_Negative_Parameters", + "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", + "Unit_hiprtc_saxpy", + "Unit_hiprtc_warpsize", + "Unit_hiprtc_functional", + "Unit_hipStreamCaptureRtc", + "Unit_hiprtc_cpp17", + "Unit_hiprtc_namehandling", + "Unit_hiprtc_getloweredname", + "Unit_hiprtc_test_hip_bfloat16", + "Unit_RTC_LinkerAPI", + "Unit_hiprtc_half_shuffle", + "Unit_hiprtc_includepath", + #endif + "End of json" + ] +} \ No newline at end of file diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows_MI2xx.json b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows_MI2xx.json deleted file mode 100644 index 8bb1400846..0000000000 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows_MI2xx.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "DisabledTests": - [ - "Unit_hipMalloc_CoherentTst", - "Unit_printf_flags", - "Unit_printf_specifier", - "Unit_hipTextureMipmapObj2D_Check", - "Unit_hipGraphAddHostNode_ClonedGraphwithHostNode", - "Unit_hipEventIpc", - "Unit_hipMalloc3D_Negative", - "Unit_hipPointerGetAttribute_MappedMem", - "Unit_hipStreamValue_Write", - "Unit_hipMemPoolApi_Basic", - "Unit_hipMemPoolApi_BasicAlloc", - "Unit_hipMemPoolApi_BasicTrim", - "Unit_hipMemPoolApi_BasicReuse", - "Unit_hipMemPoolApi_Opportunistic", - "Unit_hipMemPoolApi_Default", - "Unit_hipDeviceGetUuid", - "Unit_hipGraphMemcpyNodeSetParams_Functional", - "Unit_hipMalloc3D_ValidatePitch", - "Unit_hipArrayCreate_happy", - "Unit_hipHostRegister_Negative - int", - "Unit_hipHostRegister_Negative - float", - "Unit_hipHostRegister_Negative - double", - "Unit_hipMemAllocPitch_ValidatePitch", - "Unit_hipArrayCreate_happy - int", - "Unit_hipArrayCreate_happy - int4", - "Unit_hipArrayCreate_happy - short2", - "Unit_hipArrayCreate_happy - char", - "Unit_hipArrayCreate_happy - char4", - "Unit_hipArrayCreate_happy - float", - "Unit_hipArrayCreate_happy - float2", - "Unit_hipArrayCreate_happy - float4", - "Unit_hipMemVmm_Basic", - "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Functional", - "Unit_hipMallocManaged_MultiChunkMultiDevice", - "Unit_hipMallocManaged_TwoPointers - int", - "Unit_hipMallocManaged_TwoPointers - float", - "Unit_hipMallocManaged_TwoPointers - double", - "Unit_hipMallocManaged_DeviceContextChange - unsigned char", - "Unit_hipMallocManaged_DeviceContextChange - int", - "Unit_hipMallocManaged_DeviceContextChange - float", - "Unit_hipMallocManaged_DeviceContextChange - double", - "Unit_hipGraphNodeGetDependentNodes_Functional", - "Unit_hipGraphNodeGetDependentNodes_ParamValidation", - "Unit_hipGraphNodeGetDependencies_Functional", - "Unit_hipGraphNodeGetDependencies_ParamValidation", - "Unit_hipMemGetInfo_DifferentMallocSmall", - "Unit_hipMemGetInfo_MallocArray - int", - "Unit_hipMemGetInfo_MallocArray - int4", - "Unit_hipMemGetInfo_MallocArray - char", - "Unit_hipMemGetInfo_Malloc3D", - "Unit_hipMemGetInfo_Malloc3DArray - char", - "Unit_hipMemGetInfo_Malloc3DArray - int", - "Unit_hipMemGetInfo_Malloc3DArray - int4", - "Unit_hipMemGetInfo_ParaSmall", - "Unit_hipMemGetInfo_ParaMultiSmall", - "Unit_hipFreeMultiTDev - char", - "Unit_hipFreeMultiTDev - int", - "Unit_hipFreeMultiTDev - float2", - "Unit_hipFreeMultiTDev - float4", - "Unit_hipFreeMultiTHost - char", - "Unit_hipFreeMultiTHost - int", - "Unit_hipFreeMultiTHost - float2", - "Unit_hipFreeMultiTHost - float4", - "Unit_hipFreeMultiTArray - char", - "Unit_hipFreeMultiTArray - int", - "Unit_hipFreeMultiTArray - float2", - "Unit_hipFreeMultiTArray - float4", - "Unit_hipStreamSynchronize_FinishWork", - "Unit_hipStreamSynchronize_NullStreamAndStreamPerThread", - "Unit_hipMultiThreadDevice_NearZero", - "Unit_hipStreamPerThread_DeviceReset_1", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Gte", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_1", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_2", - "Unit_hipStreamValue_Wait32_Blocking_Mask_And", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Eq", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Gte", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_And", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Nor", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Gte_1", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Gte_2", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Eq_1", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Eq_2", - "Unit_hipStreamValue_Wait64_Blocking_Mask_And", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Gte", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Eq", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_And", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", - "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", - "Unit_hipInit_Negative", - "Unit_hipGraphAddEventRecordNode_Functional_ElapsedTime", - "Unit_hipStreamBeginCapture_captureComplexGraph", - "Unit_hipGraphAddChildGraphNode_MultGraphsAsSingleGraph", - "Unit_hipMemGetAddressRange_Negative", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", - "Unit_hipLaunchHostFunc_Graph", - "Unit_hipLaunchHostFunc_KernelHost", - "Unit_hipEventCreateWithFlags_DisableSystemFence_HstVisMem", - "Unit_hipEventCreateWithFlags_DefaultFlg_HstVisMem", - "Unit_hipEventCreateWithFlags_DisableSystemFence_NonCohHstMem", - "Unit_hipEventCreateWithFlags_DefaultFlg_NonCohHstMem", - "Unit_hipEventCreateWithFlags_DisableSystemFence_CohHstMem", - "Unit_hipEventCreateWithFlags_DefaultFlg_CohHstMem", - "Unit_hipStreamCreateWithPriority_MulthreadNonblockingflag", - "Unit_hipDeviceGetUuid_Positive", - "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", - "Unit_hiprtc_saxpy", - "Unit_hiprtc_warpsize", - "Unit_hiprtc_functional", - "Unit_hipStreamCaptureRtc", - "Unit_hiprtc_cpp17", - "Unit_hiprtc_namehandling", - "Unit_hiprtc_getloweredname", - "Unit_hiprtc_test_hip_bfloat16", - "Unit_RTC_LinkerAPI", - "Unit_hiprtc_half_shuffle", - "Unit_hiprtc_includepath" - ] -} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows_common.json b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows_common.json deleted file mode 100644 index be73937091..0000000000 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows_common.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "DisabledTests": - [ - "Unit_hipMalloc_CoherentTst", - "Unit_hipTextureMipmapObj2D_Check", - "Unit_hipGraphAddHostNode_ClonedGraphwithHostNode", - "Unit_hipEventIpc", - "Unit_hipMalloc3D_Negative", - "Unit_hipMemPoolApi_BasicAlloc", - "Unit_hipMemPoolApi_BasicTrim", - "Unit_hipMemPoolApi_BasicReuse", - "Unit_hipMemPoolApi_Opportunistic", - "Unit_hipMalloc3D_ValidatePitch", - "Unit_hipMemAllocPitch_ValidatePitch", - "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Functional", - "Unit_hipMallocManaged_OverSubscription", - "Unit_hipMallocManaged_CoherentTstWthAdvise", - "Unit_hipMallocManaged_Advanced", - "Unit_hipMemRangeGetAttribute_TstCountParam", - "Unit_hipMemRangeGetAttribute_NegativeTests", - "Unit_hipMemRangeGetAttribute_AccessedBy1", - "Unit_hipMemRangeGetAttribte_3", - "Unit_hipMemRangeGetAttribute_4", - "Unit_hipMemRangeGetAttribute_PrefetchAndGtAttr", - "Unit_hipMemAdvise_TstFlags", - "Unit_hipMemAdvise_PrefrdLoc", - "Unit_hipMemAdvise_ReadMostly", - "Unit_hipMemAdvise_TstFlgOverrideEffect", - "Unit_hipMemAdvise_TstAccessedByFlg", - "Unit_hipMemAdvise_TstAccessedByFlg4", - "Unit_hipMemAdvise_TstMemAdvisePrefrdLoc", - "Unit_hipMemAdvise_TstMemAdviseMultiFlag", - "Unit_hipMemAdvise_ReadMosltyMgpuTst", - "Unit_hipMemAdvise_TstSetUnsetPrfrdLoc", - "Unit_hipMallocManaged_DeviceContextChange - unsigned char", - "Unit_hipMallocManaged_DeviceContextChange - int", - "Unit_hipMallocManaged_DeviceContextChange - float", - "Unit_hipMallocManaged_DeviceContextChange - double", - "Unit_hipStreamCreateWithPriority_ValidateWithEvents", - "Unit_hipStreamPerThread_StrmWaitEvt", - "Unit_hipMemGetInfo_DifferentMallocSmall", - "Unit_hipMemGetInfo_MallocArray - int", - "Unit_hipMemGetInfo_MallocArray - int4", - "Unit_hipMemGetInfo_MallocArray - char", - "Unit_hipMemGetInfo_Malloc3D", - "Unit_hipMemGetInfo_Malloc3DArray - char", - "Unit_hipMemGetInfo_Malloc3DArray - int", - "Unit_hipMemGetInfo_Malloc3DArray - int4", - "Unit_hipMemGetInfo_ParaSmall", - "Unit_hipMemGetInfo_ParaMultiSmall", - "Unit_hipMultiThreadDevice_NearZero", - "Unit_hipStreamPerThread_DeviceReset_1", - "Unit_hipStreamCreateWithPriority_ValidateWithEvents", - "Unit_hipStreamPerThread_StrmWaitEvt", - "Unit_hipGraphMemcpyNodeSetParamsToSymbol_Functional", - "Unit_hipStreamWaitEvent_DifferentStreams", - "Unit_hipStreamQuery_WithFinishedWork", - "Unit_hipDeviceGetCacheConfig_Positive_Basic", - "Unit_hipDeviceGetCacheConfig_Positive_Basic", - "Unit_hipDeviceGetCacheConfig_Positive_Threaded", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Gte", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_1", - "Unit_hipStreamValue_Wait32_Blocking_Mask_Eq_2", - "Unit_hipStreamValue_Wait32_Blocking_Mask_And", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Eq", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Gte", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_And", - "Unit_hipStreamValue_Wait32_Blocking_NoMask_Nor", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Gte_1", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Gte_2", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Eq_1", - "Unit_hipStreamValue_Wait64_Blocking_Mask_Eq_2", - "Unit_hipStreamValue_Wait64_Blocking_Mask_And", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Gte", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Eq", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_And", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", - "Unit_hipGetDeviceFlags_Positive_Context", - "Unit_hipIpcCloseMemHandle_Negative_Close_In_Originating_Process", - "Unit_hipIpcOpenMemHandle_Negative_Open_In_Creating_Process", - "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", - "Unit_hipDeviceGetSharedMemConfig_Positive_Basic", - "Unit_hipDeviceGetSharedMemConfig_Positive_Threaded", - "Unit_hipDeviceReset_Positive_Basic", - "Unit_hipDeviceReset_Positive_Threaded", - "Unit_hipInit_Negative", - "Unit_hipGraphMemcpyNodeSetParams_Functional", - "Unit_hipGraphNodeGetDependentNodes_Functional", - "Unit_hipGraphNodeGetDependencies_Functional", - "Unit_hipGraphExecChildGraphNodeSetParams_ChildTopology", - "Unit_hipGraphAddEventRecordNode_MultipleRun", - "Unit_hipGraphAddEventRecordNode_Functional_ElapsedTime", - "Unit_hipStreamBeginCapture_captureComplexGraph", - "Note: needs to be enabled when streamPerThread issues are fixed", - "Unit_hipStreamSynchronize_NullStreamAndStreamPerThread", - "Note: intermittent Seg fault failure ", - "Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags", - "Unit_hipGraphAddChildGraphNode_MultGraphsAsSingleGraph", - "Unit_hipFuncSetCacheConfig_Positive_Basic", - "Unit_hipFuncSetCacheConfig_Negative_Parameters", - "Unit_hipFuncSetSharedMemConfig_Positive_Basic", - "Unit_hipFuncSetSharedMemConfig_Negative_Parameters", - "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize", - "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout", - "Unit_hipFuncSetAttribute_Positive_Parameters", - "Unit_hipFuncSetAttribute_Negative_Parameters", - "Unit_hipEventCreateWithFlags_DisableSystemFence_HstVisMem", - "Unit_hipEventCreateWithFlags_DefaultFlg_HstVisMem", - "Unit_hipEventCreateWithFlags_DisableSystemFence_NonCohHstMem", - "Unit_hipEventCreateWithFlags_DefaultFlg_NonCohHstMem", - "Unit_hipEventCreateWithFlags_DisableSystemFence_CohHstMem", - "Unit_hipEventCreateWithFlags_DefaultFlg_CohHstMem", - "NOTE: The following 4 tests are disabled due to defect - EXSWHTEC-240", - "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", - "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", - "Unit_hipOccupancyMaxActiveBlocksPerMultiprocessor_Negative_Parameters", - "Unit_hipGraphMemcpyNodeSetParamsToSymbol_Positive_Basic", - "Unit_hipGraphExecMemcpyNodeSetParamsToSymbol_Positive_Basic", - "Unit_hipGraphMemcpyNodeSetParamsFromSymbol_Positive_Basic", - "Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Positive_Basic", - "Unit_hipKernelNameRef_Negative_Parameters", - "Unit_hipKernelNameRef_Positive_Basic", - "Unit_hipMemAdvise_AccessedBy_All_Devices", - "Unit_hipMemAdvise_No_Flag_Interference", - "Unit_hipGraphAddEventRecordNode_Functional_WithoutFlags", - "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep", - "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ClonedGrph", - "Unit_hipGraphDestroyNode_Complx_ChkNumOfNodesNDep_ChldNode", - "Unit_hipMemGetAddressRange_Negative", - "NOTE: The following 2 tests are disabled due to defect - EXSWHTEC-238", - "Unit_hipDrvMemcpy3D_Positive_Array", - "Unit_hipDrvMemcpy3DAsync_Positive_Array", - "Unit_hipMemGetAddressRange_Positive", - "Note: devicelib hangs and failures", - "Unit_deviceAllocation_Malloc_PerThread_PrimitiveDataType", - "Unit_deviceAllocation_New_PerThread_PrimitiveDataType", - "Unit_deviceAllocation_Malloc_PerThread_StructDataType", - "Unit_deviceAllocation_New_PerThread_StructDataType", - "Unit_deviceAllocation_Malloc_AcrossKernels", - "Unit_deviceAllocation_New_AcrossKernels", - "Unit_deviceAllocation_Malloc_SingleCodeObj", - "Unit_deviceAllocation_New_SingleCodeObj", - "Unit_deviceAllocation_Malloc_PerThread_Graph", - "Unit_deviceAllocation_New_PerThread_Graph", - "Unit_deviceAllocation_Malloc_DeviceFunc", - "Unit_deviceAllocation_VirtualFunction", - "Unit_deviceAllocation_Malloc_MulKernels_MulThreads", - "Unit_deviceAllocation_New_MulKernels_MulThreads", - "Unit_deviceAllocation_Malloc_MulCodeObj", - "Unit_deviceAllocation_New_MulCodeObj", - "Unit_deviceAllocation_New_DeviceFunc", - "Unit_hipGraphAddEventRecordNode_MultipleRun", - "Unit_hipDeviceGetPCIBusId_Negative_PartialFill", - "Unit_hipStreamValue_Wait64_Blocking_NoMask_Nor", - "Unit_hipStreamQuery_WithFinishedWork", - "Unit_hipLaunchHostFunc_Graph", - "Unit_hipLaunchHostFunc_KernelHost", - "Unit_ChannelDescriptor_Positive_16BitFloatingPoint", - "Unit_hipStreamSetCaptureDependencies_Positive_Functional", - "Note: Following four tests disabled due to defect - EXSWHTEC-203", - "Unit_hipGraphAddMemsetNode_Positive_Basic - uint16_t", - "Unit_hipGraphAddMemsetNode_Positive_Basic - uint32_t", - "Unit_hipGraphMemsetNodeSetParams_Positive_Basic - uint16_t", - "Unit_hipGraphMemsetNodeSetParams_Positive_Basic - uint32_t", - "Note: Test disabled due to defect - EXSWHTEC-207", - "Unit_hipGraphExecMemsetNodeSetParams_Negative_Updating_Non1D_Node", - "Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic - uint8_t", - "Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic - uint16_t", - "Unit_hipGraphExecMemsetNodeSetParams_Positive_Basic - uint32_t", - "Unit_hipGraphMemsetNodeSetParams_Positive_Basic - uint8_t", - "Unit_hipStreamWaitEvent_UninitializedStream_Negative", - "Unit_hipDeviceGetUuid_Positive", - "Disabling test tracked SWDEV-394199", - "Unit_hipStreamCreateWithPriority_MulthreadNonblockingflag", - "SWDEV-396618 hipEventElapsedTime returns sucess", - "Unit_hipEventElapsedTime_NotReady_Negative", - "SWDEV-396617 ExecMemcpyNodeSetParamsFromSymbol fails in direction", - "Unit_hipGraphExecMemcpyNodeSetParamsFromSymbol_Negative_Parameters", - "SWDEV-396616 hipMemMap returns invalid error", - "Unit_hipMemVmm_Basic", - "SWDEV-396615 mGPUs not considered correctly", - "Unit_hipManagedKeyword_MultiGpu", - "Disabling test tracked SWDEV-391555", - "Unit_hipMemcpyPeer_Positive_ZeroSize", - "Unit_hipMemcpyPeerAsync_Positive_ZeroSize", - "Disabling test tracked SWDEV-391718", - "Unit_hipMemRangeGetAttribute_TstCountParam", - "SWDEV-400049 tdr intermittently", - "Unit_hipMemsetDSync – init16_t", - "Unit_hipStreamAddCallback_StrmSyncTiming", - "SWDEV-402082 - PAL Backend fails to reserve address on GPU except first one", - "Unit_hipGraphInstantiateWithFlags_FlagAutoFreeOnLaunch_check", - "SWDEV-398981 fails in stress test", - "Unit_hipStreamCreateWithPriority_MulthreadDefaultflag", - "Disabling below tests temporarily due to change in API behavior", - "Unit_hipMemPrefetchAsync_NonPageSz", - "Unit_hipStreamCreateWithFlags_DefaultStreamInteraction", - "SWDEV-402054 fails in external github build", - "Unit_hipEventDestroy_WithWaitingStream", - "Note: UUID returned empty on some windows nodes", - "Unit_hipDeviceGetUuid_Positive", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/96 ===", - "Unit_hipHostGetDevicePointer_Negative", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", - "Unit_ChannelDescriptor_Positive_Basic_1D - long", - "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", - "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", - "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", - "Unit_ChannelDescriptor_Positive_Basic_1D - long1", - "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", - "Unit_ChannelDescriptor_Positive_Basic_2D - long2", - "Unit_ChannelDescriptor_Positive_Basic_3D - ulong3", - "Unit_ChannelDescriptor_Positive_Basic_3D - long3", - "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", - "Unit_ChannelDescriptor_Positive_Basic_4D - long4", - "Unit_hipExtModuleLaunchKernel_NonUniformWorkGroup", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/18 ===", - "Unit_hipMemcpyAsync_Negative_Parameters", - "Unit_hipMemcpyDtoHAsync_Negative_Parameters", - "Unit_hipMemcpyHtoDAsync_Negative_Parameters", - "Unit_hipMemcpyDtoDAsync_Negative_Parameters", - "=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===", - "Unit_hipGetChannelDesc_Negative_Parameters", - "Unit_hipTextureMipmapRef2D_Positive_Check", - "Unit_hipTextureMipmapRef2D_Negative_Parameters", - "=== Below hiprtc tests are disabled temporarily, will be renabled once patches for SWDEV-395996 are merged ===", - "Unit_hiprtc_saxpy", - "Unit_hiprtc_warpsize", - "Unit_hiprtc_functional", - "Unit_hipStreamCaptureRtc", - "Unit_hiprtc_cpp17", - "Unit_hiprtc_namehandling", - "Unit_hiprtc_getloweredname", - "Unit_hiprtc_test_hip_bfloat16", - "Unit_RTC_LinkerAPI", - "Unit_hiprtc_half_shuffle", - "Unit_hiprtc_includepath" - ] -} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json new file mode 100644 index 0000000000..b0c78ee1cf --- /dev/null +++ b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json @@ -0,0 +1,35 @@ +{ + "DisabledTests": [ + "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", + "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", + "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/85 ===", + "Unit_hipFuncSetAttribute_Negative_Parameters", + "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", + "Unit_ChannelDescriptor_Positive_Basic_1D - long", + "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", + "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", + "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", + "Unit_ChannelDescriptor_Positive_Basic_1D - long1", + "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", + "Unit_ChannelDescriptor_Positive_Basic_2D - long2", + "Unit_ChannelDescriptor_Positive_Basic_3D - ulong3", + "Unit_ChannelDescriptor_Positive_Basic_3D - long3", + "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", + "Unit_ChannelDescriptor_Positive_Basic_4D - long4", + "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/38 ===", + "Unit_hipFreeAsync_negative", + "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/222 ===", + "Unit_hipStreamCreate_Performance", + "Unit_hipStreamCreate_WithPriorityPerformance_Nonblocking_high", + "Unit_hipStreamCreate_WithPriorityPerformance_Default_low", + "Unit_hipStreamCreate_WithPriorityPerformance_Nonblocking_low", + "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===", + "Unit_hipGetTexObjectResourceDesc_positive", + "Unit_hipGetTexObjectResourceDesc_Negative_Parameters", + "Unit_hipGetTexObjectTextureDesc_positive", + "Unit_hipGetTexObjectTextureDesc_Negative_Parameters", + "Unit_hipTexObjectDestroy_positive" + ] +} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux_common.json b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux_common.json deleted file mode 100644 index 07b62e9329..0000000000 --- a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux_common.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "DisabledTests": - [ - "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", - "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", - "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/85 ===", - "Unit_hipFuncSetAttribute_Negative_Parameters", - "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", - "Unit_ChannelDescriptor_Positive_Basic_1D - long", - "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", - "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", - "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", - "Unit_ChannelDescriptor_Positive_Basic_1D - long1", - "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", - "Unit_ChannelDescriptor_Positive_Basic_2D - long2", - "Unit_ChannelDescriptor_Positive_Basic_3D - ulong3", - "Unit_ChannelDescriptor_Positive_Basic_3D - long3", - "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", - "Unit_ChannelDescriptor_Positive_Basic_4D - long4", - "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/38 ===", - "Unit_hipFreeAsync_negative", - "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/222 ===", - "Unit_hipStreamCreate_Performance", - "Unit_hipStreamCreate_WithPriorityPerformance_Nonblocking_high", - "Unit_hipStreamCreate_WithPriorityPerformance_Default_low", - "Unit_hipStreamCreate_WithPriorityPerformance_Nonblocking_low", - "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/92 ===", - "Unit_hipGetTexObjectResourceDesc_positive", - "Unit_hipGetTexObjectResourceDesc_Negative_Parameters", - "Unit_hipGetTexObjectTextureDesc_positive", - "Unit_hipGetTexObjectTextureDesc_Negative_Parameters", - "Unit_hipTexObjectDestroy_positive" - ] -} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json new file mode 100644 index 0000000000..5f35a92780 --- /dev/null +++ b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json @@ -0,0 +1,20 @@ +{ + "DisabledTests": [ + "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", + "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", + "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", + "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", + "Unit_ChannelDescriptor_Positive_Basic_1D - long", + "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", + "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", + "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", + "Unit_ChannelDescriptor_Positive_Basic_1D - long1", + "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", + "Unit_ChannelDescriptor_Positive_Basic_2D - long2", + "Unit_ChannelDescriptor_Positive_Basic_3D - ulong3", + "Unit_ChannelDescriptor_Positive_Basic_3D - long3", + "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", + "Unit_ChannelDescriptor_Positive_Basic_4D - long4" + ] +} diff --git a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows_common.json b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows_common.json deleted file mode 100644 index 771113cc69..0000000000 --- a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows_common.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "DisabledTests": - [ - "Unit_hipFuncSetCacheConfig_Negative_Not_Supported", - "Unit_hipFuncSetSharedMemConfig_Negative_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_MaxDynamicSharedMemorySize_Not_Supported", - "Unit_hipFuncSetAttribute_Positive_PreferredSharedMemoryCarveout_Not_Supported", - "=== Below test fails in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215 ===", - "Unit_ChannelDescriptor_Positive_Basic_1D - long", - "Unit_ChannelDescriptor_Positive_Basic_1D - unsigned long", - "Unit_ChannelDescriptor_Positive_Basic_1D - ulong1", - "Unit_ChannelDescriptor_Positive_Basic_1D - signed long", - "Unit_ChannelDescriptor_Positive_Basic_1D - long1", - "Unit_ChannelDescriptor_Positive_Basic_2D - ulong2", - "Unit_ChannelDescriptor_Positive_Basic_2D - long2", - "Unit_ChannelDescriptor_Positive_Basic_3D - ulong3", - "Unit_ChannelDescriptor_Positive_Basic_3D - long3", - "Unit_ChannelDescriptor_Positive_Basic_4D - ulong4", - "Unit_ChannelDescriptor_Positive_Basic_4D - long4" - ] -} diff --git a/projects/hip-tests/catch/hipTestMain/hip_test_context.cc b/projects/hip-tests/catch/hipTestMain/hip_test_context.cc index f30a747d59..deb51e37bb 100644 --- a/projects/hip-tests/catch/hipTestMain/hip_test_context.cc +++ b/projects/hip-tests/catch/hipTestMain/hip_test_context.cc @@ -35,31 +35,61 @@ std::string TestContext::substringFound(std::vector list, std::stri return match; } - -std::string TestContext::getMatchingConfigFile(std::string config_dir) { - std::string configFileToUse; - for (auto& p : fs::recursive_directory_iterator(config_dir)) { - fs::path filename = p.path(); - std::string cur_arch = "TODO"; - std::string arch = substringFound(amd_arch_list_, filename.filename().string()); - std::string platform = substringFound(platform_list_, filename.filename().string()); - std::string os = substringFound(os_list_, filename.filename().string()); - std::string common_arch = "common"; - std::vector default_arch_vec {common_arch}; - std::string common = substringFound(default_arch_vec, filename.filename().string()); - // if arch found then use that exit from loop - if (arch == cur_arch) { - configFileToUse = filename.string(); - break; - // match the platform/os and continue to look - } else if ((platform == config_.platform) && (os == config_.os || os == "all") && - common == common_arch) { // ensures only common file is returned - configFileToUse = filename.string(); +std::string TestContext::getCurrentArch() { +#if HT_LINUX + const char* cmd = "/opt/rocm/bin/rocm_agent_enumerator | sort -u | xargs | sed -e 's/ /;/g'"; + std::array buffer; + std::string result; + std::unique_ptr pipe(popen(cmd, "r"), pclose); + if (!pipe) { + printf("popen() failed!"); + return ""; + } + while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) { + std::string res = buffer.data(); + result = res; + } + result.erase(std::remove(result.begin(), result.end(), '\n'), result.end()); + size_t pos = result.find("gfx000"); + if (pos != std::string::npos) { + result.erase(pos, 7); + } + std::stringstream arch_list(result); + std::string arch1 = "", arch2 = ""; + if (!arch_list.eof()) { + getline(arch_list, arch1, ';'); + } + while (!arch_list.eof()) { + getline(arch_list, arch2, ';'); + int result = strcmp(arch1.c_str(), arch2.c_str()); + if (result != 0) { + LogPrintf("%s", + "[ERROR] Cannot run tests on Hetrogenous Architecture. Please set " + "HIP_VISIBLE_DEVICES with devices of same arch"); + abort(); } } - return configFileToUse; + return arch1; +#else + return ""; +#endif } +std::string TestContext::getMatchingConfigFile(std::string config_dir) { + std::string configFileToUse = ""; + if (isLinux() && isAmd()) { + std::string cur_arch = getCurrentArch(); + configFileToUse = config_dir + "/config_" + getConfig().platform + "_" + getConfig().os + "_" + + cur_arch + ".json"; + } else { + configFileToUse = + config_dir + "/config_" + getConfig().platform + "_" + getConfig().os + ".json"; + } + if (fs::exists(configFileToUse)) { + return configFileToUse; + } + return ""; +} std::string& TestContext::getCommonJsonFile() { fs::path config_dir = exe_path; @@ -102,15 +132,18 @@ void TestContext::getConfigFiles() { std::string env_config = TestContext::getEnvVar("HIP_CATCH_EXCLUDE_FILE"); LogPrintf("Env Config file: %s", - (!env_config.empty()) ? env_config.c_str() : "Not found, using common config"); + (!env_config.empty()) ? env_config.c_str() : "Not found"); // HIP_CATCH_EXCLUDE_FILE is set for custom file path if (!env_config.empty()) { if(fs::exists(env_config)) { config_.json_files.push_back(env_config); } } else { + std::string jsonFile = getCommonJsonFile(); // get common json file - config_.json_files.push_back(getCommonJsonFile()); + if (jsonFile != "") { + config_.json_files.push_back(getCommonJsonFile()); + } } for (const auto& fl : config_.json_files) { diff --git a/projects/hip-tests/catch/include/hip_test_context.hh b/projects/hip-tests/catch/include/hip_test_context.hh index f2e5b95757..34be4becb0 100644 --- a/projects/hip-tests/catch/include/hip_test_context.hh +++ b/projects/hip-tests/catch/include/hip_test_context.hh @@ -100,6 +100,7 @@ class TestContext { void parseOptions(int, char**); bool parseJsonFiles(); std::string getMatchingConfigFile(std::string config_dir); + std::string getCurrentArch(); const Config& getConfig() const { return config_; }