Skip to content

Commit

Permalink
Add OpenCL_jll dependence (#196)
Browse files Browse the repository at this point in the history
* Add OpenCL_jll dependence

* Add OpenCL_jll compat

Co-authored-by: Claro Henrique <claro.sales@reserva.ink>
  • Loading branch information
ClaroHenrique and Claro Henrique authored Oct 4, 2022
1 parent f5f609c commit 8a89a6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit 8a89a6b

Please sign in to comment.