brew install llvm
brew install libomp
在cmake中添加
set(CMAKE_CXX_COMPILER "/usr/local/Cellar/llvm/8.0.0/bin/clang++")
add_executable(yourProject main.cpp ${CMAKE_CXX_COMPILER})
brew install llvm
brew install libomp
在cmake中添加
set(CMAKE_CXX_COMPILER "/usr/local/Cellar/llvm/8.0.0/bin/clang++")
add_executable(yourProject main.cpp ${CMAKE_CXX_COMPILER})
本文标题:macOS下使用openmp
本文链接:https://www.haomeiwen.com/subject/rqhabqtx.html
网友评论