Reputation: 10297
I wrote some code to multiply some symmetrical matrices and decided to use CUDA (cublasSgemm)
to do the work for me.
I've got the Toolkit, as well as everything else set up but run into a problem when I try to use the cublas
functions.
I've included:
#include <cuda_runtime.h>
#include "cublas_v2.h"
And I've also gone to Properties>Linker>Input and added cublas.lib
to the dependencies. When I get everything going, I hit this error:
LINK : fatal error LNK1104: cannot open file 'cublas.lib'
If I remove the library from my dependencies, I get unsolved errors
for all of the cublas
functions.
Any help would be wonderful... :).
Upvotes: 1
Views: 3586
Reputation: 10297
So, the solution was simpler than I thought. Go to your project properties and make sure that you're running x64
rather than win32
. The cublas
lib file does not exist in the win32
library folder.
Upvotes: 5