Compile on Linux (Ubuntu)¶
Install required packages¶
sudo apt-get install cmake
sudo apt-get install libfftw3-dev libfftw3-doc
Build ExaDiS/KOKKOS¶
cd ${OPENDIS_DIR}
rm -rf build/; ./configure.sh -DSYS=ubuntu
cmake --build build -j 8 ; cmake --build build --target install
Alternatively, you can also copy cmake/sys.cmake.ubuntu
file to cmake/sys.cmake.ext
and configure without -DSYS . The cmake/sys.cmake.ext
file is not tracked by git so you can feel free to experiment with the settings.
cp cmake/sys.cmake.ubuntu cmake/sys.cmake.ext
rm -rf build/; ./configure.sh
cmake --build build -j 8 ; cmake --build build --target install
When compilation is successful, you should see a file like pyexadis.cpython*.so
in the core/exadis/python
folder.
Run test case (OMP version)¶
export OMP_NUM_THREADS=8
cd ${OPENDIS_DIR}
cd examples/02_frank_read_src
python3 -i test_frank_read_src_exadis.py