File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,6 @@ target_include_directories(xsmm_dnn_mlp PRIVATE ${XSMM_DNN_INCLUDE_DIRS})
46
46
target_link_libraries (xsmm_dnn_mlp PRIVATE xsmm)
47
47
if (OPENMP_FOUND)
48
48
target_compile_options (xsmm_dnn_mlp PRIVATE ${OpenMP_C_FLAGS} )
49
- target_link_libraries (xsmm_dnn_mlp PRIVATE omp )
49
+ target_link_libraries (xsmm_dnn_mlp PRIVATE OpenMP::OpenMP_C )
50
50
endif ()
51
51
install (TARGETS xsmm_dnn_mlp RUNTIME DESTINATION bin)
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ if(USE_OneDNN)
9
9
set (ONEDNN_LIBS_INCL "-ltpp_dnnl_runner_utils" )
10
10
endif ()
11
11
12
- if (USE_OpenMP)
13
- set (OPENMP_LIBS_INCL "-lomp" )
14
- endif ()
15
-
16
12
set (LIBS
17
13
${dialect_libs}
18
14
${conversion_libs}
@@ -81,7 +77,7 @@ target_link_options(tpp-run PRIVATE
81
77
-lmlir_runner_utils
82
78
-lmlir_async_runtime
83
79
${TPP_GPU_LINK_FLAGS}
84
- ${OPENMP_LIBS_INCL}
80
+ $<$< BOOL : ${USE_OpenMP} >: ${OpenMP_C_LIBRARIES} >
85
81
-Wl,--as-needed
86
82
)
87
83
You can’t perform that action at this time.
0 commit comments