Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Proposed fix on finding CUBLAS lib on Windows. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/CUBLAS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down