Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenCL_jll dependence #196

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ uuid = "08131aa3-fb12-5dee-8b74-c09406e224a2"
version = "0.8.1"

[deps]
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OpenCL_jll = "6cb37087-e8b6-5417-8430-1f242f1e46e4"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[compat]
OpenCL_jll = "2022.9.23"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

Expand Down
6 changes: 2 additions & 4 deletions src/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ module api

include("types.jl")

const paths = Sys.isapple() ? String["/System/Library/Frameworks/OpenCL.framework"] : String[]
import OpenCL_jll

import Libdl

const libopencl = Libdl.find_library(["libOpenCL", "OpenCL"], paths)
const libopencl = OpenCL_jll.libopencl

function _ocl_func(func, ret_type, arg_types)
local args_in = Symbol[Symbol("arg$i")
Expand Down