Skip to content

Commit 8744175

Browse files
committed
Use GPUUtils
1 parent fac461d commit 8744175

File tree

4 files changed

+4
-73
lines changed

4 files changed

+4
-73
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
99
ExprTools = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
1010
GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
1111
GPUCompiler = "61eb1bfa-7361-4325-ad38-22787b887f55"
12+
GPUUtils = "096a3bc2-3ced-46d0-87f4-dd12716f4bfc"
1213
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
1314
LLVM = "929cbde3-209d-540e-8aea-75f648917ca0"
1415
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

lib/level-zero/module.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mutable struct ZeModule
3131
pConstants=Base.unsafe_convert(Ptr{ze_module_constants_t}, constants)
3232
))
3333
handle_ref = Ref{ze_module_handle_t}()
34-
res = unsafe_zeModuleCreate(ctx, dev, desc_ref, handle_ref, log_ref)
34+
res = unchecked_zeModuleCreate(ctx, dev, desc_ref, handle_ref, log_ref)
3535
end
3636

3737
# read the log

lib/utils/APIUtils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module APIUtils
22

33
# helpers that facilitate working with C APIs
4-
include("call.jl")
4+
using GPUUtils: @checked, @debug_ccall
5+
export @checked, @debug_ccall
56
include("enum.jl")
67

78
end

lib/utils/call.jl

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)