-
Notifications
You must be signed in to change notification settings - Fork 62
InstallingclAmdBlas
clAmdBlas library provides the optimized way to perform linear-algebra operations in OpenCL version of ADDA. Currently we are only testing its virtues, but it may become linked by default in the future. The installation and linking instructions are analogous to that of clAmdFft (they are two parts of the same package). The following guidelines are based on clAmdBlas version 1.10.274 (or 321) and are less detailed than that for clAmdFft. So you are advised to consult the latter if having any problems.
-
Download(broken) the package of clAmdBlas for Linux and install it. The default installation directory is
/opt/clAmdBlas-<version>. It is also possible to specify any other directory, for example, inside the home directory of a particular user. - Either
- specify paths to
includeandlib64(orlib32) subdirectories of the install directory in filesrc/ocl/Makefile, as described in CompilingADDA. - or add
.../includeto environmental variableC_INCLUDE_PATHand.../lib64(orlib32) - toLIBRARY_PATHandLD_LIBRARY_PATH(for linking and runtime). SettingLD_LIBRARY_PATHcan be replaced by modifying/etc/ld.so.confor by sourcingappmlEnv.shin the installation directory.
- specify paths to
If you just want to use ADDA executables for Windows, do not worry about clAmdBlas at all. An appropriate DLL will be included in the corresponding package (once the executable will be linked to it).
If you want to compile adda_ocl on Windows yourself, proceed further:
-
Download(broken) the installer of clAmdBlas for Windows and install it. The default installation directory is
C:\Program Files (x86)\AMD\clAmdBlasorC:\Program Files\AMD\clAmdBlas. - Add
bin64orbin32(depending on the Windows bitness) subdirectory in the installation directory to Windows environmental variablePATH - Either
- specify paths to
includeandbin64(orbin32) subdirectories of the install directory in filesrc/ocl/Makefile, as described in CompilingADDA. The compiler will link directly to*.dll(instead of*.lib). - or copy contents of
includefolder andclAmdBlas.dllofbinfolder to correspondingincludeandlibfolders of the MinGW/MSYS environment.
- 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 ...