You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building c-blosc2 with nvcc, the build fails due to the -Wno-unknown-pragmas flag being applied in bench/CMakeLists.txt for the sum_openmp target. nvcc does not recognize this flag, causing the build to fail with the following error: nvc-Error-Unknown switch: -Wno-unknown-pragmas
Possible Solution
Modify bench/CMakeLists.txt to apply the -Wno-unknown-pragmas flag only when using gcc by adding the following conditional check:
if(UNIX)
# Avoid a warning when using gcc without -fopenmp
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(sum_openmp PRIVATE "-Wno-unknown-pragmas")
endif()
endif()
The text was updated successfully, but these errors were encountered:
When building c-blosc2 with nvcc, the build fails due to the -Wno-unknown-pragmas flag being applied in bench/CMakeLists.txt for the sum_openmp target. nvcc does not recognize this flag, causing the build to fail with the following error:
nvc-Error-Unknown switch: -Wno-unknown-pragmas
Possible Solution
Modify bench/CMakeLists.txt to apply the -Wno-unknown-pragmas flag only when using gcc by adding the following conditional check:
The text was updated successfully, but these errors were encountered: