Skip to content

Commit a2e73b9

Browse files
committed
add openmp to matlab mex
1 parent f1d3829 commit a2e73b9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/build_all.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ jobs:
149149
ldd ../bin/mcx
150150
elif [[ "$RUNNER_OS" == "macOS" ]]; then
151151
mkdir build && cd build && cmake .. && make
152-
make BACKEND=cudastatic
153152
otool -L ../bin/mcx
154153
else
155154
make static

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ if(BUILD_MEX AND Matlab_FOUND)
148148
matlab_add_mex(
149149
NAME mcxlab
150150
SRC mcxlab.cpp
151-
LINK_TO mcx-matlab
151+
LINK_TO OpenMP::OpenMP_CXX mcx-matlab
152152
)
153153
else()
154154
matlab_add_mex(
155155
NAME mcxlab
156156
SRC mcxlab.cpp
157157
NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES
158-
LINK_TO ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} mcx-matlab
158+
LINK_TO ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} OpenMP::OpenMP_CXX mcx-matlab
159159
)
160160
endif()
161161

0 commit comments

Comments
 (0)