Skip to content

Commit

Permalink
Fix AVX2 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Dec 9, 2020
1 parent db8b101 commit bec41ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if(GLM_TEST_FORCE_PURE)
message(STATUS "GLM: No SIMD instruction set")

elseif(GLM_TEST_ENABLE_SIMD_AVX2)
add_definitions(-DGLM_FORCE_PURE)
add_definitions(-DGLM_FORCE_INTRINSICS)

if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
add_compile_options(-mavx2)
Expand Down
4 changes: 2 additions & 2 deletions test/core/core_setup_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ int test_instruction_set()
std::printf("ARM ");
if(GLM_ARCH & GLM_ARCH_NEON_BIT)
std::printf("NEON ");
if(GLM_ARCH & GLM_ARCH_AVX2)
if(GLM_ARCH & GLM_ARCH_AVX2_BIT)
std::printf("AVX2 ");
if(GLM_ARCH & GLM_ARCH_AVX)
if(GLM_ARCH & GLM_ARCH_AVX_BIT)
std::printf("AVX ");
if(GLM_ARCH & GLM_ARCH_SSE42_BIT)
std::printf("SSE4.2 ");
Expand Down

0 comments on commit bec41ff

Please sign in to comment.