Cafe 1.21 almost done

This commit is contained in:
Armborst Felix
2024-07-13 09:00:00 +02:00
parent 0eb076c215
commit 140e306c96
13 changed files with 248 additions and 2 deletions
Binary file not shown.
+1 -1
View File
@@ -8,4 +8,4 @@ function mcaunlock;
% loosing channel access connections.
%mca(0);
mocha('mexUnlock');
disp('mca mex-file is now UNLOCKED');
%disp('mca mex-file is now UNLOCKED');
Binary file not shown.
Binary file not shown.
Binary file not shown.
+32
View File
@@ -0,0 +1,32 @@
ca office network
counter=0
vgcc=10.4.0
for vmat in 2024a 2023b 2023a 2022b 2022a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
make -f makefile_rel_1.21-gcc-$vgcc clean
done
vgcc=7.3.0
for vmat in 2021b 2021a 2020b 2020a 2019b 2019a 2018b 2018a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
make -f makefile_rel_1.21-gcc-$vgcc clean
done
+38
View File
@@ -0,0 +1,38 @@
ca office network
counter=0
vgcc=10.4.0
for vmat in 2024a 2023b 2023a 2022b 2022a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
make -f makefile_rel_1.21-gcc-$vgcc
#matlab -batch "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example"
done
vgcc=7.3.0
for vmat in 2021b 2021a 2020b 2020a 2019b 2019a 2018b 2018a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
make -f makefile_rel_1.21-gcc-$vgcc
#if [[ "$vmat" =~ ^(2019a|2019b|2020a|2020b|2021a|2021b)$ ]]; then
# matlab -batch "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example"
#else
# matlab -nodisplay -nosplash -nodesktop -r "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example;exit"
#fi
done
+38
View File
@@ -0,0 +1,38 @@
ca office network
counter=0
vgcc=10.4.0
for vmat in 2024a 2023b 2023a 2022b 2022a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
#make -f makefile_rel_1.21-gcc-$vgcc
matlab -batch "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example"
done
vgcc=7.3.0
for vmat in 2021b 2021a 2020b 2020a 2019b 2019a 2018b 2018a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
#make -f makefile_rel_1.21-gcc-$vgcc
if [[ "$vmat" =~ ^(2019a|2019b|2020a|2020b|2021a|2021b)$ ]]; then
matlab -batch "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example"
else
matlab -nodisplay -nosplash -nodesktop -r "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example;exit"
fi
done
+38
View File
@@ -0,0 +1,38 @@
ca office network
counter=0
vgcc=10.4.0
for vmat in 2024a 2023b 2023a 2022b 2022a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
make -f makefile_rel_1.21-gcc-$vgcc install
#matlab -batch "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example"
done
vgcc=7.3.0
for vmat in 2021b 2021a 2020b 2020a 2019b 2019a 2018b 2018a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
make -f makefile_rel_1.21-gcc-$vgcc install
#if [[ "$vmat" =~ ^(2019a|2019b|2020a|2020b|2021a|2021b)$ ]]; then
# matlab -batch "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example"
#else
# matlab -nodisplay -nosplash -nodesktop -r "cd RHEL8-x86_64/$vmat;disp(mocha('version'));example;exit"
#fi
done
+32
View File
@@ -0,0 +1,32 @@
ca office network
counter=0
vcaf=1.21.0
vgcc=10.4.0
for vmat in 2024a 2023b 2023a 2022b 2022a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
source /opt/psi/Cafe/cafe-matlab/setup.sh $vmat $vgcc $vcaf
done
vgcc=7.3.0
for vmat in 2021b 2021a 2020b 2020a 2019b 2019a 2018b 2018a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
source /opt/psi/Cafe/cafe-matlab/setup.sh $vmat $vgcc $vcaf
done
+32
View File
@@ -0,0 +1,32 @@
ca office network
counter=0
vcaf=1.21.0
vgcc=10.4.0
for vmat in 2024a 2023b 2023a 2022b 2022a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
source /opt/psi/Cafe/cafe-matlab/setup.sh $vmat $vgcc $vcaf
done
vgcc=7.3.0
for vmat in 2021b 2021a 2020b 2020a 2019b 2019a 2018b 2018a
do
printf "\n\n\n=======================================================================\n"
let counter++
echo Step $counter
printf "=======================================================================\n"
module unload matlab
module load matlab/$vmat
module unload gcc
module load gcc/$vgcc
module list
source /opt/psi/Cafe/cafe-matlab/setup.sh $vmat $vgcc $vcaf
done
+1 -1
View File
@@ -501,7 +501,7 @@ void macchinettaFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prh
break;
case MOCHA_VERSION:
plhs[0]=mxCreateString((char *) "mocha-1.21.0 : 10 July 2024; Contact: Felix Armborst");
plhs[0]=mxCreateString((char *) "mocha-1.21.0 : 12 July 2024; Contact: Felix Armborst");
break;
case SHOW:
Executable
+36
View File
@@ -0,0 +1,36 @@
echo "$0 $1 $2 $#"
if [ "$#" -ne 3 ];then
echo "Wrong number of arguments"
echo "arg1 is matlab version, e.g., 2024a"
echo "arg2 is gcc version, e.g., 10.4.0"
echo "arg3 is cafe-mocha version, e.g., 1.20.1"
return
fi
vmatlab=$1
if [ "${#vmatlab}" -ne 5 ];then
echo "Your input matlab version $vmatlab is invalid; a valid example is 2024a"
return
fi
vgcc=$2
vmocha=$3
vrhel=${RHREL}
new_dir="/opt/psi/Cafe/cafe-matlab/$vmatlab-$vrhel-gcc-$vgcc-cafe-$vmocha/libexec"
src_dir="/opt/gfa/cafe/mocha/mocha-$vmocha-gcc-$vgcc/lib/$vrhel-x86_64/$vmatlab"
echo "new Dir: $new_dir"
echo "src Dir: $src_dir"
mkdir -p $new_dir
# cp mocha mex file
cp $src_dir/* $new_dir
# cp mca/ca scripts
cp /afs/psi.ch/project/cafe/gitlab/CAFE/mocha/scripts/* $new_dir
ls -la $new_dir
rm -f /opt/psi/Cafe/cafe-matlab/$vmatlab
ln -s $vmatlab-$vrhel-gcc-$vgcc-cafe-$vmocha /opt/psi/Cafe/cafe-matlab/$vmatlab