This repository serve as a backup for my Maxwell-TD code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Qi Jian Lim 46ad7f2ab3 Backup 1 month ago
..
.vscode Backup 1 month ago
build Backup 1 month ago
config Backup 1 month ago
fem Backup 1 month ago
lib Backup 1 month ago
utils Backup 1 month ago
CMakeLists.txt Backup 1 month ago
CMakeListsAzure.txt Backup 1 month ago
MaxwellTD.cpp Backup 1 month ago
README.md Backup 1 month ago
dgtd-performance.hpp Backup 1 month ago
modification.md Backup 1 month ago

README.md

HPC-DGTD

Quick start with CMake

CPU build:

  • mkdir <dgtd-build-dir> ; cd <dgtd-build-dir>
  • cmake <dgtd-source-dir>
  • make -j 4 (assuming "UNIX Makefiles" generator)

GPU build:

(this build requires CMake 3.8 or newer)

  • mkdir <dgtd-build-dir> ; cd <dgtd-build-dir>
  • cmake <dgtd-source-dir> -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 <dgtd-build-dir> ; cd <dgtd-build-dir>
  • cmake <dgtd-source-dir> [OPTIONS] ...

The OPTIONS are of the form -D<VARIABLE>=<VALUE>, e.g. -DDGTD_USE_CUDA=YES. Alternatively, the options can be specified with an input file:

  • cd <dgtd-source-dir>/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