Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4d77c474 authored by Nicolas Bellot's avatar Nicolas Bellot Committed by hhakim
Browse files

flag CMAKE:BOOL FAUST_USE_OPENMP

parent 5aec70d0
Branches
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ set(FAUST_USE_SINGLEPRECISION OFF CACHE BOOL "Using single precision instead of ...@@ -46,6 +46,7 @@ set(FAUST_USE_SINGLEPRECISION OFF CACHE BOOL "Using single precision instead of
set(FAUST_USE_OPENBLAS ON CACHE BOOL "Using openBLAS for matrix and vector computations") set(FAUST_USE_OPENBLAS ON CACHE BOOL "Using openBLAS for matrix and vector computations")
set(FAUST_USE_MEX OFF CACHE BOOL "Generate Mexfiles") set(FAUST_USE_MEX OFF CACHE BOOL "Generate Mexfiles")
set(FAUST_USE_PROFILING OFF CACHE BOOL "Profiling the code") set(FAUST_USE_PROFILING OFF CACHE BOOL "Profiling the code")
set(FAUST_USE_OPENMP ON CACHE BOOL "OpenMP Multithreading")
set(FAUST_USE_MATIO ON CACHE BOOL "Using matio library to read mat files") set(FAUST_USE_MATIO ON CACHE BOOL "Using matio library to read mat files")
set(FAUST_USE_XML OFF CACHE BOOL "Using xml configuration to read xml files") set(FAUST_USE_XML OFF CACHE BOOL "Using xml configuration to read xml files")
set(FAUST_ISVERBOSE OFF CACHE BOOL "Display useful message for debugging") set(FAUST_ISVERBOSE OFF CACHE BOOL "Display useful message for debugging")
...@@ -285,9 +286,18 @@ if( (CMAKE_BUILD_TYPE MATCHES "Debug") OR (CMAKE_BUILD_TYPE MATCHES "debug") OR ...@@ -285,9 +286,18 @@ if( (CMAKE_BUILD_TYPE MATCHES "Debug") OR (CMAKE_BUILD_TYPE MATCHES "debug") OR
message(STATUS "**********DEBUG mode************") message(STATUS "**********DEBUG mode************")
else() else()
if (UNIX) if (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -fexceptions -fno-omit-frame-pointer -pthread -fPIC -O2 " CACHE STRING "compile flags" FORCE) if (FAUST_USE_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp " CACHE STRING "compile flags" FORCE)
endif(FAUST_USE_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fno-omit-frame-pointer -pthread -fPIC -O2 " CACHE STRING "compile flags" FORCE)
elseif(WIN32) elseif(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHs /openmp /MD /O2" CACHE STRING "compile flags" FORCE) if (FAUST_USE_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp " CACHE STRING "compile flags" FORCE)
endif(FAUST_USE_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHs /MD /O2" CACHE STRING "compile flags" FORCE)
else() else()
message(WARNING "Unknown type of plateform for CMAKE_CXX_FLAGS") message(WARNING "Unknown type of plateform for CMAKE_CXX_FLAGS")
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment