You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to conditionally load OpenCL depending on whether or not Julia can find an OpenCL library? For Unix systems, I thought that I could imitate what appears in api.jl:
module MyMulticoreModule
using LotsOfCPUPackages
### only load OpenCL.jl if the library is found
const libopencl = Libdl.find_library(["libOpenCL", "OpenCL"])
if libopencl == ""
warn("cannot find OpenCL library!")
else
using OpenCL
end
include("my_cpu_code.jl")
### same deal
if libopencl != ""
include("my_gpu_code.jl")
end
end
The text was updated successfully, but these errors were encountered:
Is it possible to conditionally load OpenCL depending on whether or not Julia can find an OpenCL library? For Unix systems, I thought that I could imitate what appears in
api.jl
:The text was updated successfully, but these errors were encountered: