cOMS/tests/Stdlib/SIMD/SIMD_HelperTest.cpp
Dennis Eichhorn 3cd7ada19e
Some checks failed
CI / code-tests: ${{ matrix.os }} / ${{ matrix.platform }} (ubuntu-latest, x64) (push) Has been cancelled
CI / code-tests: ${{ matrix.os }} / ${{ matrix.platform }} (ubuntu-latest, x86) (push) Has been cancelled
CI / general_module_workflow_c (push) Has been cancelled
improve
2024-05-26 02:18:15 +02:00

42 lines
879 B
C++

/**
* Jingga
*
* @package Test
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://jingga.app
*/
#include <stdio.h>
#include <stdlib.h>
#include "../../../Stdlib/SIMD/SIMD_Helper.h"
#include "../../../Utils/TestUtils.h"
int main(int argc, char **argv)
{
printf("SIMD_Helper:\n");
if (Stdlib::SIMD::is_sse_supported()) {
printf("\nSSE is supported");
} else {
printf("\033[33m\nAVX is NOT supported\033[0m");
}
if (Stdlib::SIMD::is_avx256_supported()) {
printf("\nAVX 256 is supported");
} else {
printf("\033[33m\nAVX 256 is NOT supported\033[0m");
}
if (Stdlib::SIMD::is_avx512_supported()) {
printf("\nAVX 512 is supported");
} else {
printf("\033[33m\nAVX 512 is NOT supported\033[0m");
}
printf("\n\n");
return 0;
}