GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing icl-utk-edu.github.io — Highly Efficient FFT for Exascale: HeFFTe v2.3: Installation
Installation Table of ContentsRequirementsAt the minimum, heFFTe requires a C++11 capable compiler, an implementation of the Message Passing Library (MPI), and at least one backend FFT library. The heFFTe library can be build with either CMake 3.10 or newer, or a simple GNU Make build engine. CMake is the recommended way to use heFFTe since dependencies and options are much easier to export to user projects and not all options could be cleanly implemented in the rigid Makefile.
Tested backend libraries:
The listed tested versions are part of the continuous integration and nightly build systems, but heFFTe may yet work with other compilers and backend versions. CMake InstallationTypical CMake build follows the steps: mkdir build
cd build
cmake <cmake-build-command-options> <path-to-heffte-source>
make
make install
make test_install
Typical CMake build command: cmake \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_INSTALL_PREFIX=<path-for-installation> \
-D Heffte_ENABLE_AVX=ON \
-D Heffte_ENABLE_FFTW=ON \
-D FFTW_ROOT=<path-to-fftw3-installation> \
-D Heffte_ENABLE_CUDA=ON \
-D CUDA_TOOLKIT_ROOT_DIR=<path-to-cuda-installation> \
<path-to-heffte-source-code>
The standard CMake options are also accepted: CMAKE_CXX_COMPILER=<path-to-suitable-cxx-compiler> (sets the C++ compiler)
CMAKE_CXX_FLAGS="<additional cxx flags>" (adds flags to the build process)
MPI_CXX_COMPILER=<path-to-suitable-mpi-compiler-wrapper> (specifies the MPI compiler wrapper)
Additional heFFTe options: Heffte_ENABLE_ROCM=<ON/OFF> (enable the rocFFT backend)
Heffte_ENABLE_ONEAPI=<ON/OFF> (enable the oneMKL backend)
Heffte_ENABLE_MKL=<ON/OFF> (enable the MKL backend)
Heffte_ENABLE_AVX512=<ON/OFF> (enable AVX512 instructions in the stock backend)
MKL_ROOT=<path> (path to the MKL folder)
Heffte_ENABLE_DOXYGEN=<ON/OFF> (build the documentation)
Heffte_ENABLE_TRACING=<ON/OFF> (enable the even logging engine)
Additional language interfaces and helper methods: -D Heffte_ENABLE_PYTHON=<ON/OFF> (configure the Python module)
-D Heffte_ENABLE_FORTRAN=<ON/OFF> (build the Fortran modules)
-D Heffte_ENABLE_SWIG=<ON/OFF> (generate new Fortrans source files)
-D Heffte_ENABLE_MAGMA=<ON/OFF> (link to MAGMA for helper methods)
See the Fortran and Python sections for details. List of Available Backend Libraries
Note: Only one of the GPU backends can be enabled (CUDA, ROCM, or ONEAPI) since the three backends operate with arrays allocated in GPU device memory (or alternatively shared/managed memory). By default when using either GPU backend, heFFTe assumes that the MPI implementation is GPU-Aware, see the next section. GPU-Aware MPIDifferent implementations of MPI can provide GPU-Aware capabilities, where data can be send/received directly in GPU memory. OpenMPI provided CUDA aware capabilities if compiled with the corresponding options, e.g., see CUDA-Aware OpenMPI. Both CUDA and ROCm support such API; however, the specific implementation available to the user may not be available for various reasons, e.g., insufficient hardware support. HeFFTe can be compiled without GPU-Aware capabilities with the CMake option: -D Heffte_DISABLE_GPU_AWARE_MPI=ON
Note: The GPU-Aware capabilities can also be disabled at runtime by setting the corresponding option in Linking to HeFFTeHeFFTe installs a CMake package-config file in <install-prefix>/lib/cmake/
Typical project linking to HeFFTe will look like this: project(heffte_user VERSION 1.0 LANGUAGES CXX)
find_package(Heffte PATHS <install-prefix>)
add_executable(foo ...)
target_link_libraries(foo Heffte::Heffte)
An example is installed in The package-config also provides a set of components corresponding to the different compile options, specifically: FFTW MKL CUDA ROCM ONEAPI PYTHON Fortran GPUAWARE
GNU Make InstallationHeFFTe supports a GNU Make build engine, where dependencies and compilers are set manually in the included Makefile. Selecting the backends is done with: make backends=fftw,cufft
The make help
and see also the comments inside the Makefile. Testing is invoked with: make ctest
The library will be build in The GNU Make build engine does not support all options, e.g., MAGMA or disabling the GPU-Aware calls, but is provided for testing and debugging purposes. Known Issues
| |||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |