Skip to content

Commit f2a8c28

Browse files
authored
Avoid having OpenMP as a dependency of the whole O2 (#16047)
1 parent aeb75a7 commit f2a8c28

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

‎Utilities/rANS/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if(${RANS_LOG_PROCESSED_DATA})
4444
endif()
4545
if (OpenMP_CXX_FOUND AND ( NOT APPLE ) )
4646
target_compile_definitions(${LIBRANS} INTERFACE RANS_OPENMP)
47-
target_link_libraries(${LIBRANS} INTERFACE OpenMP::OpenMP_CXX)
47+
target_compile_options(${LIBRANS} INTERFACE $<$<COMPILE_LANGUAGE:CXX>:-fopenmp-simd>)
4848
endif()
4949
if(${ENABLE_VTUNE_PROFILER})
5050
target_compile_definitions(${LIBRANS} INTERFACE ENABLE_VTUNE_PROFILER)

‎Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
#ifdef RANS_SIMD
3434
#include "rANS/internal/common/simdops.h"
3535
#include "rANS/internal/common/simdtypes.h"
36-
37-
#ifdef RANS_OPENMP
38-
#include <omp.h>
39-
#endif
40-
4136
#endif /* RANS_SIMD */
4237

4338
namespace o2::rans

0 commit comments

Comments
 (0)