-
Notifications
You must be signed in to change notification settings - Fork 37
Build
The code uses cmake
to manage builds. In-source builds are not allowed; you must create a new build directory:
$ mkdir build
$ cd build
Then run cmake (version 3.0 or later) for the specific target architecture in the build subdirectory as follows:
$ cmake3 ../
$ cmake3 -D PROBLEM=name ../
$ cmake3 -D CMAKE_BUILD_TYPE=Debug ../
$ cmake3 -D Athena_ENABLE_MPI=ON ../
$ cmake3 -DCMAKE_CXX_COMPILER=icpc -D Kokkos_ARCH_BDW=On -D Kokkos_ENABLE_OPENMP=ON
-D CMAKE_CXX_FLAGS="-O3 -inline-forceinline -qopenmp-simd -qopt-prefetch=4 -diag-disable 3180 "
-D CMAKE_C_FLAGS="-O3 -finline-functions" ../
$ cmake3 -DKokkos_ENABLE_CUDA=On -DKokkos_ARCH_VOLTA70=On -DCMAKE_CXX_COMPILER=${path_to_code}/kokkos/bin/nvcc_wrapper ../
$ cmake3 -DKokkos_ENABLE_CUDA=On -DKokkos_ARCH_AMPERE80=On -DCMAKE_CXX_COMPILER=${path_to_code}/kokkos/bin/nvcc_wrapper ../
Getting Started
Running
User Guide
Physics Modules