Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 178ac49b authored by hhakim's avatar hhakim
Browse files

Set BUILD_FLOAT_MEX=ON for matfaust doctest.

parent 1e3b4842
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ ctest_python: ...@@ -78,7 +78,7 @@ ctest_python:
ctest_matlab: ctest_matlab:
variables: {BUILD_WRAPPER_MATLAB: "ON", SLOW_TESTS: "OFF", NOCPPTESTS: "ON", BUILD_MULTITHREAD: "OFF"} # MT OFF because of macOS complicated way to enable OpenMP (but packages are OMP enabled) variables: {BUILD_WRAPPER_MATLAB: "ON", SLOW_TESTS: "OFF", NOCPPTESTS: "ON", BUILD_MULTITHREAD: "OFF", BUILD_FLOAT_MEX: "ON"} # MT OFF because of macOS complicated way to enable OpenMP (but packages are OMP enabled)
script: script:
# TODO: refactor with ctest_python script # TODO: refactor with ctest_python script
- ctest -O ctest.log -S ./CDashConfScript.cmake -j4 --output-junit junit_output.xml - ctest -O ctest.log -S ./CDashConfScript.cmake -j4 --output-junit junit_output.xml
......
...@@ -52,6 +52,10 @@ if($ENV{BUILD_FLOAT_PYX} MATCHES "ON") ...@@ -52,6 +52,10 @@ if($ENV{BUILD_FLOAT_PYX} MATCHES "ON")
set(CONF_OPTIONS "${CONF_OPTIONS} -DBUILD_FLOAT_PYX=ON") set(CONF_OPTIONS "${CONF_OPTIONS} -DBUILD_FLOAT_PYX=ON")
endif() endif()
if($ENV{BUILD_FLOAT_MEX} MATCHES "ON")
set(CONF_OPTIONS "${CONF_OPTIONS} -DBUILD_FLOAT_MEX=ON")
endif()
if(DEFINED ENV{CMAKE_PREFIX_PATH}) if(DEFINED ENV{CMAKE_PREFIX_PATH})
set(CONF_OPTIONS "${CONF_OPTIONS} -DCMAKE_PREFIX_PATH=$ENV{CMAKE_PREFIX_PATH}") set(CONF_OPTIONS "${CONF_OPTIONS} -DCMAKE_PREFIX_PATH=$ENV{CMAKE_PREFIX_PATH}")
endif() endif()
......
...@@ -11,11 +11,11 @@ export PYTHON_PATH=$(which python$NUX_PY_VER) ...@@ -11,11 +11,11 @@ export PYTHON_PATH=$(which python$NUX_PY_VER)
if [[ ! -d 'build' ]]; then mkdir build;fi; cd build if [[ ! -d 'build' ]]; then mkdir build;fi; cd build
# build python and matlab wrappers separately to use clang for python and gcc for matlab # build python and matlab wrappers separately to use clang for python and gcc for matlab
cmake -DBUILD_WRAPPER_PYTHON=OFF -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON .. cmake -DBUILD_WRAPPER_PYTHON=OFF -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON -DBUILD_FLOAT_MEX=ON ..
# concise output for make (gitlab output is limited) # concise output for make (gitlab output is limited)
make 2>&1 | tee /tmp/log_$(basename $0)_make_$(date +%s) | grep "error:" make 2>&1 | tee /tmp/log_$(basename $0)_make_$(date +%s) | grep "error:"
cmake -DCMAKE_CXX_COMPILER=clang++ .. # it needs to be made separately because it cleans up other variables (for building both faust.a and python wrapper with clang -- necessary to avoid unresolved c++ symbols which happens by mixing up gcc and clang objects) cmake -DCMAKE_CXX_COMPILER=clang++ .. # it needs to be made separately because it cleans up other variables (for building both faust.a and python wrapper with clang -- necessary to avoid unresolved c++ symbols which happens by mixing up gcc and clang objects)
cmake -DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON .. cmake -DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON -DBUILD_FLOAT_MEX=ON ..
make clean make clean
make faust make faust
make faust_python make faust_python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment