# HPC-DGTD ## Quick start with CMake ### CPU build: - `mkdir ` ; `cd ` - `cmake ` - `make -j 4` (assuming "UNIX Makefiles" generator) ### GPU build: (this build requires CMake 3.8 or newer) - `mkdir ` ; `cd ` - `cmake -DDGTD_USE_CUDA=YES` - `make -j 4` ## Building with CMake The MaxwellTD build system consists of two steps: configuration and compilation. The configuration step can be used to adjust paths to external libraries, compilers, flags, etc, similar to any CMake build system. It is performed by running - `mkdir ; cd ` - `cmake [OPTIONS] ...` The OPTIONS are of the form `-D=`, e.g. `-DDGTD_USE_CUDA=YES`. Alternatively, the options can be specified with an input file: - `cd /config` - edit `defaults.cmake` ## Configuration variables (CMake) See the configuration file `config/defaults.cmake` for the default settings. Note: the option `DGTD_USE_CUDA` requires CMake version 3.8 or newer! ## DGTD features/options (CMake) ------------------------------------- - `DGTD_USE_OPENMP` - `DGTD_USE_DOUBLE` - `DGTD_USE_DOUBLE_TS` - `DGTD_USE_CUDA` - `DGTD_USE_OPENCL` - `DGTD_USE_CUDA_OPENCL`