mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
Rewrite *sh reduce unit tests to gtest: part 1 (#1407)
* Rewrite .sh test to Gtest * review chnages * Removew unused comments * Review v2 * Typo * Separete UT: AMAX, MAX, MIN; added template params to trigger them * Update test/reduce/reduce_no_index.cpp --------- Co-authored-by: Bartłomiej Kocot <barkocot@amd.com>
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
## The following will be used for CI
|
||||
|
||||
set -x
|
||||
|
||||
## for float
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2,3 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,3 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,2,3 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1,2,3 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 2 0 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 3 0 2
|
||||
|
||||
## for float64
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2,3 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,3 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,2,3 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1,2,3 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 2 6 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 3 6 2
|
||||
|
||||
## for float16
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2,3 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,3 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,2,3 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1,2,3 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 2 1 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 3 1 2
|
||||
|
||||
## for int8_t
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2,3 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,3 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,2,3 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1,2,3 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 2 3 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 3 3 2
|
||||
|
||||
## for bfloat16
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2,3 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,2 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,1,3 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0,2,3 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1,2,3 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 0 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 1 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 2 5 2
|
||||
bin/test_reduce_with_index -D 64,4,280,82 -R 3 5 2
|
||||
|
||||
set +x
|
||||
|
||||
Reference in New Issue
Block a user