Currently, we only test compilation results of AMX cases.
Details
Diff Detail
- Repository
- rT test-suite
- Build Status
Buildable 210920 Build 321916: arc lint + arc unit
Event Timeline
Take notes for myself:
Once spr is supported in testing infra, llvm-test-suite/configure should be modified as well to check if the cpu support amx.
SingleSource/UnitTests/Vector/AMXINT8/CMakeLists.txt | ||
---|---|---|
3 ↗ | (On Diff #493105) | should place a FIXME here. |
SingleSource/UnitTests/Vector/AMXINT8/CMakeLists.txt | ||
---|---|---|
5 ↗ | (On Diff #493105) | Should we create Matrix folder under UnitTests and put the AMX test case to Matrix folder? |
SingleSource/UnitTests/Vector/AMXINT8/t_gemm_bf16.cpp | ||
9 ↗ | (On Diff #493105) | Maybe format the function name and parameter following the LLVM coding style. |
39 ↗ | (On Diff #493105) | __ is reserved by compiler. We may rename it to bfloat16_t? |
149 ↗ | (On Diff #493105) | Check the err_num for inner_product. |
SingleSource/UnitTests/Vector/AMXINT8/t_gemm_int8.cpp | ||
129 ↗ | (On Diff #493105) | Check the err_num for inner_product. |
SingleSource/UnitTests/Vector/AMXINT8/t_gemm_int8.cpp | ||
---|---|---|
129 ↗ | (On Diff #493105) | we don't need to check errnum here. |
SingleSource/UnitTests/Vector/AMXINT8/t_gemm_bf16.cpp | ||
---|---|---|
9 ↗ | (On Diff #493105) | it is not necessary since other testcases don't follow LLVM coding style. |
@craig.topper hi, can we use sapphirerapids server to run pre-CI during community review?
I think this is the patch that added the checks for AVX512 support. https://reviews.llvm.org/D38182
SingleSource/UnitTests/Matrix/AMXINT8/CMakeLists.txt | ||
---|---|---|
6 | Matirx -> Matrix | |
SingleSource/UnitTests/Matrix/CMakeLists.txt | ||
11 | Matirx -> Matrix | |
SingleSource/UnitTests/Matrix/Makefile | ||
2 | Matirx -> Matrix |
SingleSource/UnitTests/Matrix/Makefile | ||
---|---|---|
11 | Maybe just check HAVE_X86_AVX512F_INSTRUCTIONS? |
https://github.com/llvm/llvm-test-suite/commit/afc7e6588b3b43351e49f697fe48283ec5056c11 has landed.
i use "arc land" to land it successfully, of course the commit carry "Differential Revision: https://reviews.llvm.org/D142845"
SingleSource/UnitTests/Matrix/AMXINT8/t_gemm_bf16.reference_output | ||
---|---|---|
1 | I just noticed this in the testsuite. This exit code indicates an "Illegal instruction". Is this test really supposed to run for people and do we really expect it to hit an illegal instruction? This feels silly... |
SingleSource/UnitTests/Matrix/AMXINT8/t_gemm_bf16.reference_output | ||
---|---|---|
1 | (I am trying to cleanup the test-suite tests to only ever exit with code 0 when working properly...) |
SingleSource/UnitTests/Matrix/AMXINT8/t_gemm_bf16.reference_output | ||
---|---|---|
1 | This test case would generate AMX instructions and is supposed to run on SPR machine. Since we have have SPR machine in buildbot, we just check it can be built by compiler. |
Matirx -> Matrix