Skip to content
Maxim Yurkin edited this page Nov 12, 2020 · 10 revisions

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. The following guidelines are based on clBLAS version 2.12.0.

Unix

  • Either obtain a special package, e.g. libclblas-dev for Ubuntu.
  • Or download it from the official repository. Then you will also need to update the environment:
    • either add include subdirectory of the install directory to environmental variable C_INCLUDE_PATH and lib64 - to LIBRARY_PATH and LD_LIBRARY_PATH (for linking and runtime). Setting LD_LIBRARY_PATH can be replaced by modifying /etc/ld.so.conf.
    • or specify paths to ../include and ../lib64 subdirectories of the install directory in file src/ocl/Makefile, as described in CompilingADDA. Also update LD_LIBRARY_PATH as described above.

macOS

Windows

If you just want to use ADDA executables for Windows, do not worry about clBLAS 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 include and bin subdirectories of the install directory in file src/ocl/Makefile, as described in CompilingADDA.
    • To avoid need to move DLLs together with ADDA executables add bin subdirectory to environmental variable PATH
Clone this wiki locally