- Q: What kind of compilers do I need?
- A: Usually the Linux system would come with gcc compilers, however, you might need to install gfortran:
sudo apt-get install gfortran
- Q: I am not sure if my machine is installed with OpenMPI. How could I check?
- A: Use following commands in terminal to check the installed version of OpenMPI and compilers.
mpicxx --showme:version
mpicc --showme:version
mpif90 --showme:version
- Q: How do I add OpenMPI to PATH?
- A: Check this entry https://www.open-mpi.org/faq/?category=running#adding-ompi-to-path
- Q: How do I determine the environment variables given by
EXPORT
? - A: Use following commands in terminal to check the installed path, for example, mpicc compiler. Do NOT use gcc without mpi wrapper, which will lead to mpi.h not found and flag errors.
which mpicc
export MPICXX=path-to-cxx-compiler-wrapper
- Q: How to find LAPACK/BLAS path?
- A: Use following commands in terminal to check the installed path,
dpkg -L liblapack3
dpkg -L libblas-dev
You need to locate the liblapack.so
and libblas.so
files (or so.3 files ). If you cannot find it in terminal, use GUI search function.
- Q: What bash command should I type?
- A: A typical bash command for setting up installation environment is
export MPICC=/usr/bin/mpicc
export MPICXX=/usr/bin/mpicxx
export MPIF90=/usr/bin/mpif90
export MPIRUN=/usr/bin/mpirun
export BLAS_LIB=/usr/lib/x86_64-linux-gnu/libblas.so
export LAPACK_LIB=/usr/lib/x86_64-linux-gnu/liblapack.so
export GPTUNEROOT=~/GPTune
- Q: Why the
pip
does not work, or install into a wrong version of python? - A: Use
sudo python -m pip
to replacepip
with the correction version of python.python --version
gives you the version of python in use. If you must usepip
and encounter permission denied error, trysudo pip
instead. - Q: I get
cannot import name '_imaging' from 'PIL'
error. - A: Most likely you do not have the up-to-date version of Pillow, uninstall all versions of Pillow using
sudo pip uninstall Pillow
until there are none left (usepip list
to check), thensudo pip install Pillow
will give you the up-to-date version. - Q: I get
ModuleNotFoundError: No module named 'gptune'
- A: This may occur when you run an old version of example provided. You may try following import syntax in your .py header, BEFORE anything else.
import sys
import os
import mpi4py
#import logging
sys.path.insert(0, os.path.abspath(__file__ + "/../../GPTune/"))
sys.path.insert(0, os.path.abspath(__file__ + "/../scalapack-driver/spt/"))
Also try to export following environment variables.
export PYTHONPATH=$PYTHONPATH:$PWD/autotune/
export PYTHONPATH=$PYTHONPATH:$PWD/scikit-optimize/
export PYTHONPATH=$PYTHONPATH:$PWD/mpi4py/
export PYTHONPATH=$PYTHONPATH:$PWD/GPTune/
export PYTHONPATH=$PYTHONPATH:$PWD/examples/scalapack-driver/spt/
export PYTHONWARNINGS=ignore