-
Notifications
You must be signed in to change notification settings - Fork 62
InstallingclBLAS
clBLAS 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. ADDA requires at least clBLAS version 2.12, the following guidelines are based on version 2.12.0.
-
Either obtain a special package, e.g. libclblas-dev for Ubuntu.
-
Or download it from the official repository.
- Either download the source and compile it. Doing it under the user account (install directory –
$HOME) can be as easy as (requires CMake):tar -zxvf clBLAS-2.12.tar.gz cd clBLAS-2.12/src cmake -DCMAKE_INSTALL_PREFIX=$HOME -DCMAKE_BUILD_TYPE=Release . make make install/fastcmakeautomatically determines if some auxiliary software is available on your system and sets up furhter installation to include only the core library or, additionally, client application and tests (ADDA need only the library). We use targetinstall/fastinstead ofinstall, since the latter erroneously repeats the build. - Alternatively, download the ready binaries for x64 Linux (install directory should be extracted from the archive).
- Additionally you also need to update the environment (this may be unnecessary after local build if you already installed other software into
$HOME):- 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 ocl/Makefile, as described in CompilingADDA. Also updateLD_LIBRARY_PATHas described above.
- either add
- Either download the source and compile it. Doing it under the user account (install directory –
-
Or download it from the official repository. Compiling from source requires a few dependencies to be installed first. Anyway, 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 ocl/Makefile, as described in CompilingADDA. Also updateLD_LIBRARY_PATHas described above.
- either add
- Get the package from Homebrew or other package manager.
- Otherwise, follow the Unix instructions.
We are not yet providing ADDA executables with clBLAS support. To compile adda_ocl on Windows yourself, we recommed to set up a complete MinGW-w64 environment.
Alternatively, follow these steps:
- Download and unzip the latest release for Windows.
- Specify paths to
includeandbinsubdirectories of the install directory in ocl/Makefile, as described in CompilingADDA. - To avoid need to move DLLs together with ADDA executables, add
binsubdirectory to environmental variablePATH
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 ...