Installation#

cuFFTMp is available from these sources:

  • The cuFFTMp downloads page on NVIDIA Developer, which supplies the standalone installers, for example a tarball, RPM packages and Debian packages.

  • The Python Package Index (PyPI), which supplies Python wheels.

  • Conda, which supplies the libcufftmp package on the conda-forge channel.

  • The NVIDIA HPC SDK, a software suite that includes cuFFTMp together with NVSHMEM, NCCL and MPI.

The CUDA Toolkit does not include cuFFTMp. For the hardware and software requirements, refer to Hardware and software requirements.

Communication library#

cuFFTMp loads the communication library at run time. Make sure that the communication library of the backend that you use is installed:

Backend

Necessary software

Reference

NVSHMEM (CUFFT_COMM_MPI, CUFFT_COMM_NONE)

NVSHMEM

NVSHMEM and cuFFTMp

NCCL (CUFFT_COMM_NCCL)

NCCL

NCCL and cuFFTMp

For the compatible versions, refer to Hardware and software requirements.

Standalone installers#

The cuFFTMp downloads page supplies an archive (tarball) and Linux packages. Select your platform on the downloads page, and obey the installation instructions that the page gives.

After the installation:

  • Make sure that the communication library of your backend is installed and has a compatible version.

  • When you compile, put the cuFFTMp header directory before the CUDA Toolkit include directory. Refer to Usage tips.

  • At run time, make sure that the dynamic loader can find libcufftMp.so and the communication library, for example with LD_LIBRARY_PATH.

Python wheel#

The cuFFTMp wheel supplies the library for Python packages, for example nvmath-python.

The wheel is for use at run time. To compile a C++ application, use one of the other sources. The wheel installs the NVSHMEM wheel as a dependency. It does not install NCCL. To use the NCCL backend, install NCCL separately.

Conda#

For the conda packages and the installation commands, refer to the cuFFTMp page on Anaconda.

HPC SDK#

The HPC SDK contains cuFFTMp, NVSHMEM, NCCL and MPI. The cuFFTMp version in an HPC SDK release can be different from the version of this documentation. Use the documentation for the cuFFTMp version of your HPC SDK release. For the versions in each release, refer to the HPC SDK release notes.

In the HPC SDK, $NVHPC_ROOT is the root of the installation and $CUDA is the CUDA version.

  • The cuFFTMp headers are in $NVHPC_ROOT/math_libs/$CUDA/include/cufftmp/.

  • The cuFFTMp library is in $NVHPC_ROOT/math_libs/$CUDA/lib64/.

  • NVSHMEM is in $NVHPC_ROOT/comm_libs/$CUDA/nvshmem/, and NCCL is in $NVHPC_ROOT/comm_libs/$CUDA/nccl/.

The HPC SDK also contains cuFFT. Do not link the application to the cuFFT library, and put the cuFFTMp headers before the cuFFT headers. For the compiler options, refer to Usage tips.

Make sure that the installation is correct#

Compile and run the samples in the CUDALibrarySamples repository. For example, use c2c_no_descriptors for the NVSHMEM backend and c2c_no_descriptors_nccl for the NCCL backend.