Skip to content

Commit 159c87f

Browse files
authored
Merge branch 'master' into dk/triangular
2 parents 729ebc0 + 26b2de8 commit 159c87f

File tree

5 files changed

+58
-62
lines changed

5 files changed

+58
-62
lines changed

Manifest.toml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
3333
version = "1.16.0"
3434

3535
[[ChangesOfVariables]]
36-
deps = ["LinearAlgebra", "Test"]
37-
git-tree-sha1 = "f84967c4497e0e1955f9a582c232b02847c5f589"
36+
deps = ["InverseFunctions", "LinearAlgebra", "Test"]
37+
git-tree-sha1 = "2fba81a302a7be671aefe194f0525ef231104e7f"
3838
uuid = "9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0"
39-
version = "0.1.7"
39+
version = "0.1.8"
4040

4141
[[Compat]]
4242
deps = ["Dates", "LinearAlgebra", "UUIDs"]
43-
git-tree-sha1 = "7a60c856b9fa189eb34f5f8a6f6b5529b7942957"
43+
git-tree-sha1 = "4e88377ae7ebeaf29a047aa1ee40826e0b708a5d"
4444
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
45-
version = "4.6.1"
45+
version = "4.7.0"
4646

4747
[[CompilerSupportLibraries_jll]]
4848
deps = ["Artifacts", "Libdl"]
@@ -69,9 +69,9 @@ version = "0.1.9"
6969

7070
[[GPUArrays]]
7171
deps = ["Adapt", "GPUArraysCore", "LLVM", "LinearAlgebra", "Printf", "Random", "Reexport", "Serialization", "Statistics"]
72-
git-tree-sha1 = "a3351bc577a6b49297248aadc23a4add1097c2ac"
72+
git-tree-sha1 = "2e57b4a4f9cc15e85a24d603256fe08e527f48d1"
7373
uuid = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
74-
version = "8.7.1"
74+
version = "8.8.1"
7575

7676
[[GPUArraysCore]]
7777
deps = ["Adapt"]
@@ -81,19 +81,19 @@ version = "0.1.5"
8181

8282
[[GPUCompiler]]
8383
deps = ["ExprTools", "InteractiveUtils", "LLVM", "Libdl", "Logging", "Scratch", "TimerOutputs", "UUIDs"]
84-
git-tree-sha1 = "cb090aea21c6ca78d59672a7e7d13bd56d09de64"
84+
git-tree-sha1 = "72b2e3c2ba583d1a7aa35129e56cf92e07c083e3"
8585
uuid = "61eb1bfa-7361-4325-ad38-22787b887f55"
86-
version = "0.20.3"
86+
version = "0.21.4"
8787

8888
[[InteractiveUtils]]
8989
deps = ["Markdown"]
9090
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
9191

9292
[[InverseFunctions]]
9393
deps = ["Test"]
94-
git-tree-sha1 = "6667aadd1cdee2c6cd068128b3d226ebc4fb0c67"
94+
git-tree-sha1 = "eabe3125edba5c9c10b60a160b1779a000dc8b29"
9595
uuid = "3587e190-3f89-42d0-90ee-14403ec27112"
96-
version = "0.1.9"
96+
version = "0.1.11"
9797

9898
[[IrrationalConstants]]
9999
git-tree-sha1 = "630b497eafcc20001bba38a4651b327dcfc491d2"
@@ -107,22 +107,22 @@ uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
107107
version = "1.4.1"
108108

109109
[[KernelAbstractions]]
110-
deps = ["Adapt", "Atomix", "InteractiveUtils", "LinearAlgebra", "MacroTools", "PrecompileTools", "SparseArrays", "StaticArrays", "UUIDs", "UnsafeAtomics", "UnsafeAtomicsLLVM"]
111-
git-tree-sha1 = "47be64f040a7ece575c2b5f53ca6da7b548d69f4"
110+
deps = ["Adapt", "Atomix", "InteractiveUtils", "LinearAlgebra", "MacroTools", "PrecompileTools", "Requires", "SparseArrays", "StaticArrays", "UUIDs", "UnsafeAtomics", "UnsafeAtomicsLLVM"]
111+
git-tree-sha1 = "6d08ca80b621635fed9cdfeb9a4280a574020bf3"
112112
uuid = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
113-
version = "0.9.4"
113+
version = "0.9.7"
114114

115115
[[LLVM]]
116116
deps = ["CEnum", "LLVMExtra_jll", "Libdl", "Printf", "Unicode"]
117-
git-tree-sha1 = "26a31cdd9f1f4ea74f649a7bf249703c687a953d"
117+
git-tree-sha1 = "8695a49bfe05a2dc0feeefd06b4ca6361a018729"
118118
uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
119-
version = "5.1.0"
119+
version = "6.1.0"
120120

121121
[[LLVMExtra_jll]]
122122
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"]
123-
git-tree-sha1 = "09b7505cc0b1cee87e5d4a26eea61d2e1b0dcd35"
123+
git-tree-sha1 = "c35203c1e1002747da220ffc3c0762ce7754b08c"
124124
uuid = "dad2f222-ce93-54a1-a47d-0025e8a3acab"
125-
version = "0.0.21+0"
125+
version = "0.0.23+0"
126126

127127
[[LazyArtifacts]]
128128
deps = ["Artifacts", "Pkg"]
@@ -178,10 +178,10 @@ uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
178178
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
179179

180180
[[NEO_jll]]
181-
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "Pkg", "TOML", "gmmlib_jll", "libigc_jll", "oneAPI_Level_Zero_Headers_jll"]
182-
git-tree-sha1 = "4d9647b216d16c41be59eafc0b2e2d2c4e7619f4"
181+
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML", "gmmlib_jll", "libigc_jll", "oneAPI_Level_Zero_Headers_jll"]
182+
git-tree-sha1 = "9846d87fd254cdaa1879dff93999e1bc32ed2658"
183183
uuid = "700fe977-ac61-5f37-bbc8-c6c4b2b6a9fd"
184-
version = "22.53.25593+1"
184+
version = "23.17.26241+0"
185185

186186
[[NetworkOptions]]
187187
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
@@ -268,20 +268,20 @@ uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
268268

269269
[[SpecialFunctions]]
270270
deps = ["ChainRulesCore", "IrrationalConstants", "LogExpFunctions", "OpenLibm_jll", "OpenSpecFun_jll"]
271-
git-tree-sha1 = "ef28127915f4229c971eb43f3fc075dd3fe91880"
271+
git-tree-sha1 = "7beb031cf8145577fbccacd94b8a8f4ce78428d3"
272272
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
273-
version = "2.2.0"
273+
version = "2.3.0"
274274

275275
[[StaticArrays]]
276276
deps = ["LinearAlgebra", "Random", "StaticArraysCore", "Statistics"]
277-
git-tree-sha1 = "8982b3607a212b070a5e46eea83eb62b4744ae12"
277+
git-tree-sha1 = "fffc14c695c17bfdbfa92a2a01836cdc542a1e46"
278278
uuid = "90137ffa-7385-5640-81b9-e52037218182"
279-
version = "1.5.25"
279+
version = "1.6.1"
280280

281281
[[StaticArraysCore]]
282-
git-tree-sha1 = "6b7ba252635a5eff6a0b0664a41ee140a1c9e72a"
282+
git-tree-sha1 = "1d5708d926c76a505052d0d24a846d5da08bc3a4"
283283
uuid = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
284-
version = "1.4.0"
284+
version = "1.4.1"
285285

286286
[[Statistics]]
287287
deps = ["LinearAlgebra", "SparseArrays"]
@@ -319,9 +319,9 @@ version = "0.2.1"
319319

320320
[[UnsafeAtomicsLLVM]]
321321
deps = ["LLVM", "UnsafeAtomics"]
322-
git-tree-sha1 = "ea37e6066bf194ab78f4e747f5245261f17a7175"
322+
git-tree-sha1 = "323e3d0acf5e78a56dfae7bd8928c989b4f3083e"
323323
uuid = "d80eeb9a-aca5-4d75-85e5-170c8b632249"
324-
version = "0.1.2"
324+
version = "0.1.3"
325325

326326
[[Zlib_jll]]
327327
deps = ["Libdl"]
@@ -334,26 +334,26 @@ uuid = "09858cae-167c-5acb-9302-fddc6874d481"
334334
version = "22.3.0+0"
335335

336336
[[libigc_jll]]
337-
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "Pkg", "TOML"]
338-
git-tree-sha1 = "a4b9585cbd75441b0d28d0e3391e625662dd9591"
337+
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"]
338+
git-tree-sha1 = "7c0b5fa2ff90d96af106fd4a67ff6923cd3f9cb9"
339339
uuid = "94295238-5935-5bd7-bb0f-b00942e9bdd5"
340-
version = "1.0.13230+2"
340+
version = "1.0.13822+0"
341341

342342
[[nghttp2_jll]]
343343
deps = ["Artifacts", "Libdl"]
344344
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
345345

346346
[[oneAPI_Level_Zero_Headers_jll]]
347347
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
348-
git-tree-sha1 = "f46de664cb4e560f045cd3d30ad2d811ab1acb2d"
348+
git-tree-sha1 = "412efcf5d55c65d3352c3915cffec1e53955570f"
349349
uuid = "f4bc562b-d309-54f8-9efb-476e56f0410d"
350-
version = "1.5.8+0"
350+
version = "1.6.3+0"
351351

352352
[[oneAPI_Level_Zero_Loader_jll]]
353353
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "oneAPI_Level_Zero_Headers_jll"]
354-
git-tree-sha1 = "8eb79e3c6cd5c1211a18f712677aa93a45de8ff5"
354+
git-tree-sha1 = "87980483b19f0a00c8d62e8b6682acac1894c638"
355355
uuid = "13eca655-d68d-5b81-8367-6d99d727ab01"
356-
version = "1.9.4+0"
356+
version = "1.11.0+0"
357357

358358
[[oneAPI_Support_jll]]
359359
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "oneAPI_Level_Zero_Loader_jll"]

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "oneAPI"
22
uuid = "8f75cd03-7ff8-4ecb-9b8f-daf728133b1b"
33
authors = ["Tim Besard <[email protected]>"]
4-
version = "1.2.5"
4+
version = "1.3.0"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -29,10 +29,10 @@ Adapt = "2.0, 3.0"
2929
CEnum = "0.4"
3030
ExprTools = "0.1"
3131
GPUArrays = "8.4"
32-
GPUCompiler = "0.20.1"
32+
GPUCompiler = "0.20.1, 0.21"
3333
KernelAbstractions = "0.9.1"
34-
LLVM = "5.0"
35-
NEO_jll = "=22.53.25593"
34+
LLVM = "6"
35+
NEO_jll = "=23.17.26241"
3636
Preferences = "1"
3737
SPIRV_LLVM_Translator_unified_jll = "0.3"
3838
SpecialFunctions = "1.3, 2"

src/compiler/compilation.jl

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@ function GPUCompiler.finish_module!(job::oneAPICompilerJob, mod::LLVM.Module)
2323
invoke(GPUCompiler.finish_module!,
2424
Tuple{CompilerJob{SPIRVCompilerTarget}, typeof(mod)},
2525
job, mod)
26-
ctx = LLVM.context(mod)
2726

2827
# OpenCL 2.0
2928
push!(metadata(mod)["opencl.ocl.version"],
30-
MDNode([ConstantInt(Int32(2); ctx),
31-
ConstantInt(Int32(0); ctx)]; ctx))
29+
MDNode([ConstantInt(Int32(2)),
30+
ConstantInt(Int32(0))]))
3231

3332
# SPIR-V 1.5
3433
push!(metadata(mod)["opencl.spirv.version"],
35-
MDNode([ConstantInt(Int32(1); ctx),
36-
ConstantInt(Int32(5); ctx)]; ctx))
34+
MDNode([ConstantInt(Int32(1)),
35+
ConstantInt(Int32(5))]))
3736
end
3837

3938

@@ -78,12 +77,9 @@ end
7877
# compile to executable machine code
7978
function compile(@nospecialize(job::CompilerJob))
8079
# TODO: on 1.9, this actually creates a context. cache those.
81-
JuliaContext() do ctx
82-
compile(job, ctx)
80+
asm, meta = JuliaContext() do ctx
81+
GPUCompiler.compile(:obj, job)
8382
end
84-
end
85-
function compile(@nospecialize(job::CompilerJob), ctx)
86-
asm, meta = GPUCompiler.compile(:obj, job; ctx)
8783

8884
(image=asm, entry=LLVM.name(meta.entry))
8985
end

src/device/opencl/memory.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ end
2121
# get a pointer to local memory, with known (static) or zero length (dynamic)
2222
@generated function emit_localmemory(::Type{T}, ::Val{len}=Val(0)) where {T,len}
2323
Context() do ctx
24-
eltyp = convert(LLVMType, T; ctx)
25-
T_ptr = convert(LLVMType, LLVMPtr{T,AS.Local}; ctx)
24+
eltyp = convert(LLVMType, T)
25+
T_ptr = convert(LLVMType, LLVMPtr{T,AS.Local})
2626

2727
# create a function
2828
llvm_f, _ = create_function(T_ptr)
@@ -39,11 +39,11 @@ end
3939
alignment!(gv, Base.datatype_alignment(T))
4040

4141
# generate IR
42-
IRBuilder(ctx) do builder
43-
entry = BasicBlock(llvm_f, "entry"; ctx)
42+
IRBuilder() do builder
43+
entry = BasicBlock(llvm_f, "entry")
4444
position!(builder, entry)
4545

46-
ptr = gep!(builder, gv_typ, gv, [ConstantInt(0; ctx), ConstantInt(0; ctx)])
46+
ptr = gep!(builder, gv_typ, gv, [ConstantInt(0), ConstantInt(0)])
4747

4848
untyped_ptr = bitcast!(builder, ptr, T_ptr)
4949

src/device/opencl/printf.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ end
2929
arg_types = [argspec...]
3030

3131
Context() do ctx
32-
T_void = LLVM.VoidType(ctx)
33-
T_int32 = LLVM.Int32Type(ctx)
34-
T_pint8 = LLVM.PointerType(LLVM.Int8Type(ctx))
32+
T_void = LLVM.VoidType()
33+
T_int32 = LLVM.Int32Type()
34+
T_pint8 = LLVM.PointerType(LLVM.Int8Type())
3535

3636
# create functions
37-
param_types = LLVMType[convert(LLVMType, typ; ctx) for typ in arg_types]
37+
param_types = LLVMType[convert(LLVMType, typ) for typ in arg_types]
3838
llvm_f, _ = create_function(T_int32, param_types)
3939
mod = LLVM.parent(llvm_f)
4040

4141
# generate IR
42-
IRBuilder(ctx) do builder
43-
entry = BasicBlock(llvm_f, "entry"; ctx)
42+
IRBuilder() do builder
43+
entry = BasicBlock(llvm_f, "entry")
4444
position!(builder, entry)
4545

4646
str = globalstring_ptr!(builder, String(fmt))
4747

4848
# invoke printf and return
4949
printf_typ = LLVM.FunctionType(T_int32, [T_pint8]; vararg=true)
5050
printf = LLVM.Function(mod, "printf", printf_typ)
51-
push!(function_attributes(printf), EnumAttribute("nobuiltin"; ctx))
51+
push!(function_attributes(printf), EnumAttribute("nobuiltin"))
5252
chars = call!(builder, printf_typ, printf, [str, parameters(llvm_f)...])
5353

5454
ret!(builder, chars)

0 commit comments

Comments
 (0)