From 6e85accb6252a052acb0a867c885cfd12dfc791d Mon Sep 17 00:00:00 2001 From: "Werner, Stefan" Date: Tue, 2 Dec 2025 13:19:53 +0100 Subject: [PATCH 1/2] Workaround GCC AVX512 movemask truncation issue --- kernels/bvh/bvh_intersector_hybrid.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernels/bvh/bvh_intersector_hybrid.cpp b/kernels/bvh/bvh_intersector_hybrid.cpp index e9e2262984..e7b22af2dd 100644 --- a/kernels/bvh/bvh_intersector_hybrid.cpp +++ b/kernels/bvh/bvh_intersector_hybrid.cpp @@ -796,7 +796,12 @@ namespace embree #endif /* return if there are no valid rays */ +#if defined(__GNUC__) && (__GNUC__ < 14) + /* Before GCC 14, AVX512 masks could end up broken by optimization */ + unsigned short valid_bits = movemask(valid) & 0xffff; +#else size_t valid_bits = movemask(valid); +#endif if (unlikely(valid_bits == 0)) return; /* verify correct input */ From ebc6ad0eeab22157574315a509282b532f2cdc5a Mon Sep 17 00:00:00 2001 From: Krzysztof Raszkowski Date: Wed, 3 Dec 2025 10:30:32 +0100 Subject: [PATCH 2/2] ci: add Ubuntu 24.04 GCC AVX512 test job --- .github/workflows/continuous.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 914adafada..025cbd0051 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -13,11 +13,11 @@ jobs: # GPU tests ################################################################################ ############################################################################### - + ######################################## # Linux DG2 ######################################## - + linux-GPU-JIT-build: secrets: inherit uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main @@ -153,7 +153,7 @@ jobs: cmd: | cmake --preset windows-DG2-JIT-INTERNAL-L0RTAS -DCMAKE_BUILD_TYPE=Release -DEMBREE_TESTING_INTENSITY=3 cmake --build build --config Release --target test_package - + windows-DG2-JIT-INTERNAL-test: secrets: inherit uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/windows.yml@main @@ -275,6 +275,16 @@ jobs: cmake --build build --config RelWithDebInfo --target build cmake --build build --config RelWithDebInfo --target test_package + linux-ubuntu24_04-GCC: + secrets: inherit + uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/docker.yml@main + with: + image: embree/ubuntu:24.04 + runs-on: '[ "Linux", "docker", "avx512" ]' + cmd: | + cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DEMBREE_TESTING_INSTALL_TESTS=ON -DCMAKE_INSTALL_TESTDIR="testing" -DEMBREE_TESTING_INTENSITY=3 + cmake --build build --config Release --target build + cmake --build build --config Release --target test_package ######################################## # Windows @@ -337,7 +347,7 @@ jobs: cmake --preset macos-x64-CLANG -DCMAKE_BUILD_TYPE=RelWithDebInfo -DEMBREE_TESTING_INTENSITY=2 cmake --build build --config RelWithDebInfo --target build cmake --build build --config RelWithDebInfo --target test_package - + macosx-ARM-CLANG-NEON-AVX2-universal-binaries: secrets: inherit uses: intel-innersource/libraries.devops.renderkit.workflows/.github/workflows/macos.yml@main