-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathOpenCL.jl
More file actions
48 lines (40 loc) · 995 Bytes
/
OpenCL.jl
File metadata and controls
48 lines (40 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module OpenCL
using GPUCompiler
using LLVM, LLVM.Interop
using SPIRV_LLVM_Backend_jll, SPIRV_Tools_jll
using Adapt
using Reexport
using GPUArrays
using Random
using Preferences
using Core: LLVMPtr
# library wrappers
include("../lib/cl/CL.jl")
@reexport using .cl
export cl
# device functionality
import SPIRVIntrinsics
SPIRVIntrinsics.@import_all
SPIRVIntrinsics.@reexport_public
Base.Experimental.@MethodTable(method_table)
include("device/runtime.jl")
include("device/array.jl")
include("device/quirks.jl")
# high level implementation
include("memory.jl")
include("array.jl")
# compiler implementation
include("compiler/compilation.jl")
include("compiler/exceptions.jl")
include("compiler/execution.jl")
include("compiler/reflection.jl")
# integrations and specialized functionality
include("util.jl")
include("broadcast.jl")
include("mapreduce.jl")
include("gpuarrays.jl")
include("random.jl")
include("OpenCLKernels.jl")
import .OpenCLKernels: OpenCLBackend
export OpenCLBackend
end