Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 40e1dcff authored by hhakim's avatar hhakim
Browse files

Update macosx vm setup script for libomp config.

parent 067dfcc8
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ sudo ln -sf /opt/local/lib/libmatio.a /usr/local/lib/ ...@@ -29,6 +29,7 @@ sudo ln -sf /opt/local/lib/libmatio.a /usr/local/lib/
yes | port install libomp-devel libomp yes | port install libomp-devel libomp
### 4. Install and configure clang compiler environment (and OpenMP) ### 4. Install and configure clang compiler environment (and OpenMP)
port -f activate libomp port -f activate libomp
sudo cp /opt/local/lib/libomp/libomp.dylib /opt/local/lib/libomp/libomp_macports.dylib # needed for ci package jobs
yes | port install clang-8.0 yes | port install clang-8.0
echo 'export OpenMP_INC_DIR=/opt/local/include/libomp' >> /Users/ci/.bash_profile echo 'export OpenMP_INC_DIR=/opt/local/include/libomp' >> /Users/ci/.bash_profile
echo 'export OpenMP_gomp_LIBRARY=/opt/local/lib/libomp/libgomp.dylib' >> /Users/ci/.bash_profile echo 'export OpenMP_gomp_LIBRARY=/opt/local/lib/libomp/libgomp.dylib' >> /Users/ci/.bash_profile
...@@ -58,7 +59,7 @@ echo "Please manually install matlab by copying directly the directory from /Vol ...@@ -58,7 +59,7 @@ echo "Please manually install matlab by copying directly the directory from /Vol
echo "First, a DATA storage volume must be created and attached to the VM instance (use command: diskutil mount)." echo "First, a DATA storage volume must be created and attached to the VM instance (use command: diskutil mount)."
echo "Finally add matlab to the PATH (in .bash_profile)." echo "Finally add matlab to the PATH (in .bash_profile)."
echo "It is also useful to symlink the matlab binary in /usr/bin/ for the root user env. to be OK for installing/testing the pkg (postinstall script needs to find matlab)." echo "It is also useful to symlink the matlab binary in /usr/bin/ for the root user env. to be OK for installing/testing the pkg (postinstall script needs to find matlab)."
echo "Other need about matlab OpenMP: you need to copy the library as for example: ciosx:~ ci$ cp /Volumes/Untitled/MATLAB_R2018b.app/sys/os/maci64/libiomp5.dylib /opt/local/lib/libomp/" echo "Other need about matlab OpenMP: you need to copy the library as for example: ciosx:~ ci$ cp /Volumes/Untitled/MATLAB_R2018b.app/sys/os/maci64/libiomp5.dylib /opt/local/lib/libomp/libiomp5_matlab.dylib"
echo "ABOUT SUDO: add this line in /etc/sudoers: ci ALL=(ALL:ALL) NOPASSWD: ALL (this way the runner won't need to type the password for running commands as root)" echo "ABOUT SUDO: add this line in /etc/sudoers: ci ALL=(ALL:ALL) NOPASSWD: ALL (this way the runner won't need to type the password for running commands as root)"
#echo "WARNING: the matlab installer link is likely to fail" #echo "WARNING: the matlab installer link is likely to fail"
#wget "https://esd.mathworks.com/R2018b/R2018b/installers/web/matlab_R2018b_maci64.dmg.zip?__gda__=1608282997_72bccb4cda14022857f8691914aea21a&dl_id=aYudAe6N&ext=.zip" || echo "the link failed, please update." #wget "https://esd.mathworks.com/R2018b/R2018b/installers/web/matlab_R2018b_maci64.dmg.zip?__gda__=1608282997_72bccb4cda14022857f8691914aea21a&dl_id=aYudAe6N&ext=.zip" || echo "the link failed, please update."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment