diff --git a/matlab960.sh b/matlab960.sh new file mode 100755 index 0000000000000000000000000000000000000000..ea0e6719c688f742279dd56014a89ea37d60589e --- /dev/null +++ b/matlab960.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +source scdds_env.sh + +LIBGL_ALWAYS_SOFTWARE=1 /usr/local/MATLAB/R2019a/bin/matlab -c /etc/network.lic -nodesktop -softwareopengl -nosplash -r 'scdds_core_paths;' diff --git a/scdds_core_paths.m b/scdds_core_paths.m index 29b30f25d3255d415e7b10f997ffb26830404937..6612a0c866eb7672bdb37ea8cb82bb08d3842539 100644 --- a/scdds_core_paths.m +++ b/scdds_core_paths.m @@ -28,6 +28,10 @@ scdds_core_folder = fileparts(mfilename('fullpath')); % folder containing this s addpath(genpath(fullfile(scdds_core_folder,'classes'))); addpath(genpath(fullfile(scdds_core_folder,'functions'))); addpath(genpath(fullfile(scdds_core_folder,'configurations'))); +addpath(genpath(fullfile(scdds_core_folder,'codegen'))); + +% Algos path +addpath(genpath(fullfile(scdds_core_folder,'algos'))); % set code generation and cache file location fprintf('setting Simulink Cache and CodeGen folders for SCDDS\n') diff --git a/scdds_env.sh b/scdds_env.sh new file mode 100755 index 0000000000000000000000000000000000000000..67bf58029564501087235b631ef3bf4b407b1cd2 --- /dev/null +++ b/scdds_env.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [[ "$(hostname)" == "spcpc478.epfl.ch" ]] || [[ "$(hostname)" == "crpppc171" ]] +then + echo "Setting up icc" + source setup_icc +fi + +echo "Defining environment variables" +declare -x SCDDS_PATH=$(pwd) +echo SCDDS_PATH=$SCDDS_PATH + +if [[ "$(uname -s)" == "linux" ]] && [[ -z $MATLAB ]] +then + declare -x MATLAB=/usr/local/MATLAB/R2019a + echo MATLAB=$MATLAB +else + echo MATLAB=$MATLAB + echo please check or declare MATLAB environment variable before compiling meq/genlib +fi diff --git a/setup_icc b/setup_icc new file mode 100644 index 0000000000000000000000000000000000000000..fef3db6fdca5014f6262f588923a7a796e4ed196 --- /dev/null +++ b/setup_icc @@ -0,0 +1,8 @@ +#2018 +#declare -x INTEL_LICENSE_FILE=/opt/intel2018/license +#source /opt/intel2018/compilers_and_libraries/linux/bin/compilervars.sh intel64 +#2021 +source /opt/intel/oneapi/compiler/2021.1.1/env/vars.sh +source /opt/intel/oneapi/mkl/2021.1.1/env/vars.sh +echo "current icc version: $(icc --version)" +#echo "Note that icc command now has become icx"