diff --git a/Utilities/rANS/CMakeLists.txt b/Utilities/rANS/CMakeLists.txt index d140fa0ef7d3f..2f4a9228c75e8 100644 --- a/Utilities/rANS/CMakeLists.txt +++ b/Utilities/rANS/CMakeLists.txt @@ -44,7 +44,7 @@ if(${RANS_LOG_PROCESSED_DATA}) endif() if (OpenMP_CXX_FOUND AND ( NOT APPLE ) ) target_compile_definitions(${LIBRANS} INTERFACE RANS_OPENMP) - target_link_libraries(${LIBRANS} INTERFACE OpenMP::OpenMP_CXX) + target_compile_options(${LIBRANS} INTERFACE $<$:-fopenmp-simd>) endif() if(${ENABLE_VTUNE_PROFILER}) target_compile_definitions(${LIBRANS} INTERFACE ENABLE_VTUNE_PROFILER) diff --git a/Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h b/Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h index 177245ef7bec6..513f6796f479d 100644 --- a/Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h +++ b/Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h @@ -33,11 +33,6 @@ #ifdef RANS_SIMD #include "rANS/internal/common/simdops.h" #include "rANS/internal/common/simdtypes.h" - -#ifdef RANS_OPENMP -#include -#endif - #endif /* RANS_SIMD */ namespace o2::rans