-
Notifications
You must be signed in to change notification settings - Fork 62
InstallingclFFT
clFFT library provides the default way to perform the FFTs in OpenCL version of ADDA. This library already significantly outperforms the built-in Apple clFFT routines and is expected to develop further. Therefore, its use on any system with GPU is highly recommended. The following guidelines are based on clFFT version 2.12.2.
-
Either obtain a special package, e.g. libclfft-dev for Ubuntu.
-
Or download it from the official repository. Then you will also need to update the environment:
- either add
includesubdirectory of the install directory to environmental variableC_INCLUDE_PATHandlib64- toLIBRARY_PATHandLD_LIBRARY_PATH(for linking and runtime). SettingLD_LIBRARY_PATHcan be replaced by modifying/etc/ld.so.conf. - or specify paths to
../includeand../lib64subdirectories of the install directory in filesrc/ocl/Makefile, as described in CompilingADDA. Also updateLD_LIBRARY_PATHas described above.
- either add
-
Note that clFFT may need pthread library, which is not linked by default. One way to fix this problem is to uncomment the following line in
src/ocl/Makefile.LDLIBS += -lpthread
- Get the package from Homebrew or other package manager.
- Otherwise, follow the Unix instructions.
If you just want to use ADDA executables for Windows, do not worry about clFFT at all. An appropriate DLL is included in the corresponding package.
If you want to compile adda_ocl on Windows yourself, proceed further:
- Download and unzip the latest release for Windows.
- If you are setting up the MinGW/MSYS environment with advanced instructions follow those instructions.
- Alternatively, do the following:
- specify paths to
includeandbinsubdirectories of the install directory in filesrc/ocl/Makefile, as described in CompilingADDA. - To avoid need to move DLLs together with ADDA executables add
binsubdirectory to environmental variablePATH
- specify paths to
Home (Getting started)
Frequently asked questions
Features
Tutorial
Comparison with other codes
Largest simulations
Compiling ADDA
Installing FFTW3
Installing MPI
Using OpenCL
Installing clFFT
Installing clBLAS
Using sparse mode
Installing MinGW
Using MSYS2
Using Spack
Papers that use ADDA
Awards
References
Links
Acknowledgements
Instruction for committers
Code design & structure
Style guide
Using VS Code
Using Eclipse
Early development history
Adding new ...