Skip to content
Snippets Groups Projects
Commit ad2c44f8 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

clangomp

parent d0596362
No related branches found
No related tags found
No related merge requests found
......@@ -597,6 +597,14 @@ if [ $? != 0 ]; then
echo "Analyze error $ecod"
exit $ecod
fi
elif [ -f ../openfpm_devices/error_code ]; then
ecod=$(cat ../openfpm_devices/error_code)
if [ x"$ecod" == x"0" ]; then
exit 1
else
echo "Analyze error $ecod"
exit $ecod
fi
else
exit 1
fi
......
......@@ -9,6 +9,7 @@ source script/set_mpi
source script/conf_PETSC
source script/update_openfpm
source script/solve_python
source script/solve_clangomp
source script/install_gdbgui
......@@ -400,6 +401,18 @@ else
./script/install_VCDEVEL.sh $i_dir $ncore $CC $CXX
configure_options=" $configure_options --with-vcdevel=$i_dir/VCDEVEL "
VCDEVEL_installed=1
elif [ $conf_err -eq 220 ]; then
if [ x"$platform" == x"OSX" ]; then
echo "OpenMP has not been found for your compiler"
if [ $CLANGOMP_installed -eq 1 ]; then
echo "Error the installation of openmp for clang failed"
exit 1
fi
solve_clangomp $platform
CLANGOMP_installed=1
else
exit 1
fi
elif [ $conf_err -ne 0 ]; then
echo "I do not know how to recover from this error"
exit 1
......
#! /bin/bash
function solve_clangomp() {
source script/show_solutions
source script/discover_package_manager
discover_package_manager $1
pcman=$discover_package_manager_ret
if [ x"$pcman" = x"" ]; then
exit 1
fi
if [ x"$1" = x"osx" ]; then
commands[0]="$pcman install clang-omp"
possible_solutions "${commands[@]}"
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment