Commit 767b0630 authored by incardon's avatar incardon
Browse files

Adding examples config files

parent 7c461581
[pack]
files = main.cpp main_expr.cpp main_vl.cpp main_vl_sym.cpp Makefile
files = main.cpp main_expr.cpp main_vl.cpp Makefile
......@@ -332,19 +332,30 @@ if [ x"$MPI_valid" == x"yes" ]; then
#### In which g++ is different from mpic++ ###
output_mpi=$(mpic++ --version)
output_gcc=$(g++ -- version)
output_gcc=$(g++ --version)
if [ x"$output_mpi" != x"$output_gcc" ]; then
echo -e "\033[91;5;1m MPI dangerous installation \033[0m"
echo "Performing a \"which mpic++ --version\", we detect that your installed mpic++ does not wrap the standard command g++"
echo "In general we strongly disencourage to override the default compiler(s) and this configuration is not supported by OpenFPM because lead to several problems"
echo "1) All system wide dependencies become potentially useless"
echo "2) It is not possible to distinguish which compiler has been used to compile one dependencies"
echo -e "Performing a \033[1m \"mpic++ --version\" \033[0m, we detect that your installed mpic++ does not wrap the standard command g++"
echo "In general we strongly disencourage to override the default compiler(s), this configuration not only is not supported by OpenFPM, but can lead potentialy to several problems at system level. For the following reasons"
echo -e "\033[1m 1) All system wide dependencies become potentially useless \033[0m"
echo -e "\033[1m 2) A package maneger (apt-get or brew) installing a packege from source can potentialy generate incompatible system packages \033[0m"
echo -e "\033[1m 3) It is not easy to discover which compiler has been used to compile one dependency \033[0m"
echo -e "For just the time of the installation the installer will realign mpic++ to g++, unfortunately this could be not enough to ensure that all the dependencies has been compiled with the same compiler"
echo -e "Installation will resume in 20 seconds"
echo -e "\033[1m Installation will resume in 20 seconds \033[0m"
export OMPI_CXX=g++
sleep 20
fi
output_mpi=$(mpic++ --version)
output_gcc=$(g++ --version)
if [ x"$output_mpi" != x"$output_gcc" ]; then
echo -e "\033[91;5;1m MPI dangerous installation \033[0m"
echo -e "\033[1m The realign operation failed the installation will continue \033[0m"
sleep 10
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment