A project using t8code build from the t8code_project template (https://github.com/dlr-amr/t8code_project).
After project setup, build with:
mkdir build && cd build
cmake ..
makeDependencies (t8code and googletest) are automatically fetched from GitHub using CMake's FetchContent. No manual installation is required.
We also recommend to use:
-DCMAKE_INSTALL_PREFIX=/path/to/install
-DCMAKE_INSTALL_LIBDIR=/path/to/installwhen you want to locally install this package.
To install, simply call:
make installThe basic CMake setting file. Note that src/ and test/ folders have their own additional CMake files.
A main program to show how to use and link against t8code_GPU_experiments and how to set up t8code.
Contains the source and header files of the library.
src/t8code_GPU_experiments_helloworld.cxx and .hxx define a very simple hello world function.
Based on the advect example of t8code (example/advect and example/common), built as the executable
t8code_GPU_experiments_advect. It solves the advection equation with adaptive mesh refinement.
The element loop of the solver runs on the GPU with OpenMP offloading and unified shared memory
(on AMD GPUs set HSA_XNACK=1). Run it with -h for a list of options.
Contains tests.
Contains CMake configuration files for fetching thirdparty dependencies (t8code, googletest) using FetchContent.