SWDEV-564408 - Reduces hip-tests runtime Pt2 (#1724)

This commit is contained in:
Sourabh U Betigeri
2025-11-12 13:37:00 -08:00
committed by GitHub
vanhempi 7b097599c4
commit f58393108f
3 muutettua tiedostoa jossa 10 lisäystä ja 20 poistoa
@@ -72,11 +72,6 @@ TEMPLATE_TEST_CASE("Unit_atomicCAS_system_Positive_Peer_GPUs", "", int, unsigned
2, 2, 1, sizeof(TestType));
}
DYNAMIC_SECTION("Adjacent addresses " << current) {
MultipleDeviceMultipleKernelAndHostTest<TestType, AtomicOperation::kCASAddSystem>(
2, 2, warp_size, sizeof(TestType));
}
DYNAMIC_SECTION("Scattered addresses " << current) {
MultipleDeviceMultipleKernelAndHostTest<TestType, AtomicOperation::kCASAddSystem>(
2, 2, warp_size, cache_line_size);
@@ -172,11 +167,6 @@ TEMPLATE_TEST_CASE("Unit_atomicCAS_system_Positive_Host_And_Peer_GPUs", "", int,
2, 2, 1, sizeof(TestType), 4);
}
DYNAMIC_SECTION("Adjacent addresses " << current) {
MultipleDeviceMultipleKernelAndHostTest<TestType, AtomicOperation::kCASAddSystem>(
2, 2, warp_size, sizeof(TestType), 4);
}
DYNAMIC_SECTION("Scattered addresses " << current) {
MultipleDeviceMultipleKernelAndHostTest<TestType, AtomicOperation::kCASAddSystem>(
2, 2, warp_size, cache_line_size, 4);
@@ -195,7 +195,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflUpTest() {
*/
TEMPLATE_TEST_CASE("Unit_Thread_Block_Tile_Shfl_Up_Positive_Basic", "", int, unsigned int, long,
unsigned long, long long, unsigned long long, float, double) {
BlockTileShflUpTest<TestType, 2, 4, 8, 16, 32>();
BlockTileShflUpTest<TestType, 2, 16, 32>();
}
@@ -252,7 +252,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflDownTest() {
/**
* Test Description
* ------------------------
* - Validates the shuffle down behavior of thread block tiles of all valid sizes{2, 4, 8, 16,
* - Validates the shuffle down behavior of thread block tiles of all valid sizes{2, 16,
* 32, 64(if AMD)} for delta values of [0, tile size). The test is run for all overloads of
* shfl_down.
* Test source
@@ -264,7 +264,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflDownTest() {
*/
TEMPLATE_TEST_CASE("Unit_Thread_Block_Tile_Shfl_Down_Positive_Basic", "", int, unsigned int, long,
unsigned long, long long, unsigned long long, float, double) {
BlockTileShflDownTest<TestType, 2, 4, 8, 16, 32>();
BlockTileShflDownTest<TestType, 2, 16, 32>();
}
@@ -317,7 +317,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflXORTest() {
/**
* Test Description
* ------------------------
* - Validates the shuffle xor behavior of thread block tiles of all valid sizes{2, 4, 8, 16, 32,
* - Validates the shuffle xor behavior of thread block tiles of all valid sizes{2, 16, 32,
* 64(if AMD)} for mask values of [0, tile size). The test is run for all overloads of shfl_xor.
* Test source
* ------------------------
@@ -328,7 +328,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflXORTest() {
*/
TEMPLATE_TEST_CASE("Unit_Thread_Block_Tile_Shfl_XOR_Positive_Basic", "", int, unsigned int, long,
unsigned long, long long, unsigned long long, float, double) {
BlockTileShflXORTest<TestType, 2, 4, 8, 16, 32>();
BlockTileShflXORTest<TestType, 2, 16, 32>();
}
template <typename T, size_t tile_size>
@@ -397,7 +397,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflTest() {
/**
* Test Description
* ------------------------
* - Validates the shuffle behavior of thread block tiles of all valid sizes{2, 4, 8, 16, 32,
* - Validates the shuffle behavior of thread block tiles of all valid sizes{2, 16, 32,
* 64(if AMD)} for generated shuffle target lanes. The test is run for all overloads of shfl. Test
* source
* ------------------------
@@ -408,7 +408,7 @@ template <typename T, size_t... tile_sizes> void BlockTileShflTest() {
*/
TEMPLATE_TEST_CASE("Unit_Thread_Block_Tile_Shfl_Positive_Basic", "", int, unsigned int, long,
unsigned long, long long, unsigned long long, float, double) {
BlockTileShflTest<TestType, 2, 4, 8, 16, 32>();
BlockTileShflTest<TestType, 2, 16, 32>();
}
@@ -521,8 +521,8 @@ template <bool global_memory, typename T, size_t... tile_sizes> void BlockTileSy
* - HIP_VERSION >= 5.2
*/
TEMPLATE_TEST_CASE("Unit_Thread_Block_Tile_Sync_Positive_Basic", "", uint8_t, uint16_t, uint32_t) {
SECTION("Global memory") { BlockTileSyncTest<true, TestType, 2, 4, 8, 16, 32>(); }
SECTION("Shared memory") { BlockTileSyncTest<false, TestType, 2, 4, 8, 16, 32>(); }
SECTION("Global memory") { BlockTileSyncTest<true, TestType, 2, 16, 32>(); }
SECTION("Shared memory") { BlockTileSyncTest<false, TestType, 2, 16, 32>(); }
}
/**
@@ -62,7 +62,7 @@ template <typename Func, typename T> void threadCall(Func f, hipStream_t stream)
T* ptr{nullptr};
constexpr size_t size = 1024;
constexpr size_t iter = 1024;
constexpr size_t iter = 512;
HIP_CHECK_THREAD(hipMalloc(&ptr, sizeof(T) * size));
hipEvent_t event{};
HIP_CHECK_THREAD(hipEventCreate(&event));