cmake hip-rocclr as default build,change HIP_PLATFORM to amd|nvidia

Change-Id: I59d2e15b297b6ca2d5eee1a6dee642bdb01a3839
This commit is contained in:
agodavar
2020-06-09 15:45:22 -04:00
rodzic f9d3e5a7be
commit 8717a78bf7
103 zmienionych plików z 430 dodań i 376 usunięć
@@ -23,7 +23,7 @@ THE SOFTWARE.
// single GPU or multi GPUs.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -18,8 +18,8 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD_CMD: matmul.code %hc --genco %S/matmul.cpp -o matmul.code EXCLUDE_HIP_PLATFORM nvcc
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc rocclr
* BUILD_CMD: matmul.code %hc --genco %S/matmul.cpp -o matmul.code EXCLUDE_HIP_PLATFORM nvidia
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvidia EXCLUDE_HIP_RUNTIME rocclr
* TEST: %t
* HIT_END
*/
@@ -18,7 +18,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -18,7 +18,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 EXCLUDE_HIP_PLATFORM nvcc
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -18,7 +18,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 EXCLUDE_HIP_PLATFORM rocclr nvcc
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 EXCLUDE_HIP_RUNTIME rocclr EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -22,32 +22,32 @@ THE SOFTWARE.
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11
* TEST: %t --tests 0x10 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x11 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x12 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x10 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x11 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x12 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x13
* TEST: %t --tests 0x14
* TEST: %t --tests 0x15
* TEST: %t --tests 0x20 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x21 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x20 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x21 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x22
* TEST: %t --tests 0x30 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x31 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x30 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x31 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x32
* TEST: %t --tests 0x40 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x40 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x41
* TEST: %t --tests 0x42
* TEST: %t --tests 0x43 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x44 EXCLUDE_HIP_PLATFORM nvcc
* TEST: %t --tests 0x43 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x44 EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t --tests 0x45
* TEST: %t --tests 0x50 EXCLUDE_HIP_PLATFORM hcc rocclr nvcc
* TEST: %t --tests 0x51 EXCLUDE_HIP_PLATFORM hcc rocclr nvcc
* TEST: %t --tests 0x52 EXCLUDE_HIP_PLATFORM hcc rocclr
* TEST: %t --tests 0x50 EXCLUDE_HIP_PLATFORM amd nvidia
* TEST: %t --tests 0x51 EXCLUDE_HIP_PLATFORM amd nvidia
* TEST: %t --tests 0x52 EXCLUDE_HIP_PLATFORM amd
* TEST: %t --tests 0x53
* TEST: %t --tests 0x54
* TEST: %t --tests 0x55 EXCLUDE_HIP_PLATFORM nvcc
* TEST: %t --tests 0x55 EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t --tests 0x56
* TEST: %t --tests 0x60 EXCLUDE_HIP_PLATFORM nvcc
* TEST: %t --tests 0x60 EXCLUDE_HIP_PLATFORM nvidia
* HIT_END
*/
#include <stdio.h>
@@ -22,7 +22,7 @@ THE SOFTWARE.
/* HIT_START
* BUILD_CMD: tex2d_kernel.code %hc --genco %S/tex2d_kernel.cpp -o tex2d_kernel.code
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc rocclr
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvidia EXCLUDE_HIP_RUNTIME rocclr
* TEST: %t
* HIT_END
*/
@@ -21,7 +21,7 @@ THE SOFTWARE.
*/
/* HIT_START
* BUILD_CMD: tex2d_kernel.code %hc --genco %S/tex2d_kernel.cpp -o tex2d_kernel.code EXCLUDE_HIP_PLATFORM rocclr nvcc
* BUILD_CMD: tex2d_kernel.code %hc --genco %S/tex2d_kernel.cpp -o tex2d_kernel.code EXCLUDE_HIP_PLATFORM nvidia EXCLUDE_HIP_RUNTIME rocclr
* HIT_END
*/