I am trying to run the example samples/sgemm.cpp from the CLBlast repo on Windows 10 with a Nvidia graphics card. I have obtained the cl.hpp from the link. The makefile is simply as follows:
a.exe: sgemm.cpp
g++ sgemm.cpp -lopencl -clblast -O0 -g -DCL_TARGET_OPENCL_VERSION=300
I have the Nvidia CUDA toolkit v11.6 installed and the include directory is on the environment variable CPATH
so that it is found by g++
. Furthermore, the compiler is part of a Mingw-w64 installation on which clblast
is installed.
The problem is that the compilation seems to succeed, but as soon as I try executing the a.exe
it crashes without any error message. Similarly, attaching gdb
does not help either, because the program exits immediatedly and gdb
prints
During startup the program exited with code 0xc0000135.
What is the problem?
Update
I have opened an issue on the clblas github. Note that I can compile clinfo
from here without problems. A missing library therefore should not be the first thing that comes to my mind.