From e80779bc5806ab16c2eb2672d9d9df42385cb4da Mon Sep 17 00:00:00 2001 From: AngeloCiffa Date: Thu, 17 Sep 2015 21:56:14 +0200 Subject: [PATCH] Proposed fix on finding CUBLAS lib on Windows. Hello, I have found an issue running CUBLAS on windows using your lib. The file libcuda is called cublas64_75. It requires the user to have CUDA 7.5 installed. We should find a way to abstract the version in the name of the dll. Hope that helps, --- src/CUBLAS.jl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CUBLAS.jl b/src/CUBLAS.jl index 52f3e32..97e12a8 100644 --- a/src/CUBLAS.jl +++ b/src/CUBLAS.jl @@ -72,7 +72,15 @@ function statuscheck(status) end # find the cublas library -const libcublas = Libdl.find_library(["libcublas"], ["/usr/local/cuda"]) +@windows? ( +begin + const libcublas = Libdl.find_library(["cublas64_75"], [""]) +end +: +begin + const libcublas = Libdl.find_library(["libcublas"], ["/usr/local/cuda"]) +end) + if isempty(libcublas) error("CUBLAS library cannot be found") end