-
Notifications
You must be signed in to change notification settings - Fork 57
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
include
andlib64
(orlib32
) subdirectories of the install directory in filesrc/ocl/Makefile
, as described in CompilingADDA. - or add
.../include
to environmental variableC_INCLUDE_PATH
and.../lib64
(orlib32
) - toLIBRARY_PATH
andLD_LIBRARY_PATH
(for linking and runtime). SettingLD_LIBRARY_PATH
can be replaced by modifying/etc/ld.so.conf
or by sourcingappmlEnv.sh
in 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\clAmdBlas
orC:\Program Files\AMD\clAmdBlas
. - Add
bin64
orbin32
(depending on the Windows bitness) subdirectory in the installation directory to Windows environmental variablePATH
- Either
- specify paths to
include
andbin64
(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
include
folder andclAmdBlas.dll
ofbin
folder to correspondinginclude
andlib
folders 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
Papers that use ADDA
Awards
References
Links
Acknowledgements
Instruction for committers
Code design & structure
Style guide
Using Eclipse
Early development history
Adding new ...