From cf01c5bb2823eb72d3a965a5ed55cd1c1cd66542 Mon Sep 17 00:00:00 2001 From: shawnz Date: Mon, 22 Sep 2025 15:35:45 +0800 Subject: [PATCH 1/2] Bug 5519400: Add /Zc:preprocessor for new change of CUDA 13.1 CCCL include aligned_alloc.h --- Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt b/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt index 777a466d..1c4a652e 100644 --- a/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt +++ b/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt @@ -39,7 +39,10 @@ if(${OpenGL_FOUND}) # Add target for particles add_executable(particles particleSystem.cpp particleSystem_cuda.cu particles.cpp render_particles.cpp shaders.cpp) -target_compile_options(particles PRIVATE $<$:--extended-lambda>) +target_compile_options(particles PRIVATE + $<$:--extended-lambda> + $<$:-Xcompiler="/Zc:preprocessor"> +) target_compile_features(particles PRIVATE cxx_std_17 cuda_std_17) From fd6707ccaabf78fb69807558bfad48fe04cb22db Mon Sep 17 00:00:00 2001 From: shawnz Date: Mon, 22 Sep 2025 15:41:44 +0800 Subject: [PATCH 2/2] Bug 5532074 Modify the filesystem compatibility from GCC 7.x to 8.x for RHEL 8.10 --- Common/helper_multiprocess.h | 4 ++-- Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/helper_multiprocess.h b/Common/helper_multiprocess.h index a6ecb13c..7335e406 100644 --- a/Common/helper_multiprocess.h +++ b/Common/helper_multiprocess.h @@ -54,8 +54,8 @@ #endif #include -// Simple filesystem compatibility for GCC 7.x -#if defined(__GNUC__) && __GNUC__ < 8 +// Simple filesystem compatibility for GCC 8.x +#if defined(__GNUC__) && __GNUC__ < 9 #include #include inline std::string getSocketFolder() { diff --git a/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt b/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt index 1c4a652e..9e1badf9 100644 --- a/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt +++ b/Samples/2_Concepts_and_Techniques/particles/CMakeLists.txt @@ -41,7 +41,7 @@ if(${OpenGL_FOUND}) target_compile_options(particles PRIVATE $<$:--extended-lambda> - $<$:-Xcompiler="/Zc:preprocessor"> + $<$,$>:-Xcompiler="/Zc:preprocessor"> ) target_compile_features(particles PRIVATE cxx_std_17 cuda_std_17)