'verify that CUBLAS is installed
How to check if cuBLAS is installed. Is there a simple way to do it using command line without actually running any line of cuda code
Solution 1:[1]
Try out
cat /usr/local/cuda/include/cublas.h | grep CUBLAS
If it says no such directory then there is no cuBLAS.
Solution 2:[2]
You could copy an example of C code that uses cuBLAS from https://docs.nvidia.com/cuda/cublas/index.html and then try to compile it: nvcc cublas_test.c -o cublas_test.out -lcublas and then run it: ./cublas_test.out.
Solution 3:[3]
On Windows 10, it's in file C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include\cublas_api.h
for example:
#define CUBLAS_VER_MAJOR 10
#define CUBLAS_VER_MINOR 2
#define CUBLAS_VER_PATCH 3
#define CUBLAS_VER_BUILD 254
#define CUBLAS_VERSION (CUBLAS_VER_MAJOR * 1000 + \
CUBLAS_VER_MINOR * 100 + \
CUBLAS_VER_PATCH)
It shows cublas is 10.2.3 build 254
Solution 4:[4]
if you are sure about installed successfuly cuda toolkit on your computer ; you should generate your file with cmake, check your flags about CUBLAS. CMAKE will look in the system directories and generate the makefiles. If it is unchecked, please check it like on this picture. enter image description here
if you are not sure about your installation, please again download cuda toolkit and check your WITH_CUBLAS configurations, if it is unchecked please check it before install all need packages.)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Trect |
| Solution 2 | ady |
| Solution 3 | |
| Solution 4 | Ozge Ozdemir |
