SWDEV-564408 - Reduces hip-tests runtime Pt 1 (#1695)
* SWDEV-564408 - Reduces hip-tests runtime Pt 1 * Update cmd_options.hh
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
fdb557c88a
işleme
90d5dc6b3a
@@ -421,7 +421,9 @@ template <typename T> void CoalescedGroupShflUpTestImpl() {
|
||||
INFO("Coalesced group mask: " << active_mask);
|
||||
unsigned int active_thread_count = get_active_thread_count(active_mask, warp_size);
|
||||
|
||||
auto delta = GENERATE(range(static_cast<size_t>(0), static_cast<size_t>(getWarpSize())));
|
||||
// Tests edge cases (0, 1, max-1) and middle values
|
||||
auto delta = GENERATE(values<size_t>({0, 1, static_cast<size_t>(getWarpSize()/2),
|
||||
static_cast<size_t>(getWarpSize()-1)}));
|
||||
delta = delta % active_thread_count;
|
||||
INFO("Delta: " << delta);
|
||||
CPUGrid grid(blocks, threads);
|
||||
@@ -501,7 +503,9 @@ template <typename T> void CoalescedGroupShflDownTest() {
|
||||
INFO("Coalesced group mask: " << active_mask);
|
||||
unsigned int active_thread_count = get_active_thread_count(active_mask, warp_size);
|
||||
|
||||
auto delta = GENERATE(range(static_cast<size_t>(0), static_cast<size_t>(getWarpSize())));
|
||||
// Tests edge cases (0, 1, max-1) and middle values
|
||||
auto delta = GENERATE(values<size_t>({0, 1, static_cast<size_t>(getWarpSize()/2),
|
||||
static_cast<size_t>(getWarpSize()-1)}));
|
||||
delta = delta % active_thread_count;
|
||||
INFO("Delta: " << delta);
|
||||
CPUGrid grid(blocks, threads);
|
||||
|
||||
@@ -28,7 +28,7 @@ THE SOFTWARE.
|
||||
#include <hip_test_helper.hh>
|
||||
#include <kernels.hh>
|
||||
|
||||
#define MEMORY_PERCENT 10
|
||||
#define MEMORY_PERCENT 5
|
||||
#define BLOCK_SIZE 512
|
||||
#define VALUE 32
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ This testfile verifies the following scenarios of hipHostMalloc API
|
||||
#define SYNC_EVENT 0
|
||||
#define SYNC_STREAM 1
|
||||
#define SYNC_DEVICE 2
|
||||
#define MEMORY_PERCENT 10
|
||||
#define MEMORY_PERCENT 5
|
||||
#define BLOCK_SIZE 512
|
||||
#define VALUE 32
|
||||
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle