Skip to content

Commit 1d1f809

Browse files
committed
Switch to the LLVM SPIR-V back-end.
1 parent fac461d commit 1d1f809

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1818
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1919
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2020
SPIRVIntrinsics = "71d1d633-e7e8-4a92-83a1-de8814b09ba8"
21-
SPIRV_LLVM_Translator_unified_jll = "85f0d8ed-5b39-5caa-b1ae-7472de402361"
21+
SPIRV_LLVM_Backend_jll = "4376b9bf-cff8-51b6-bb48-39421dff0d0c"
2222
SPIRV_Tools_jll = "6ac6d60f-d740-5983-97d7-a4482c0689f4"
2323
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2424
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
@@ -32,13 +32,13 @@ Adapt = "4"
3232
CEnum = "0.4, 0.5"
3333
ExprTools = "0.1"
3434
GPUArrays = "11.2.1"
35-
GPUCompiler = "0.23, 0.24, 0.25, 0.26, 0.27, 1"
35+
GPUCompiler = "1.2"
3636
KernelAbstractions = "0.9.1"
3737
LLVM = "6, 7, 8, 9"
3838
NEO_jll = "=24.26.30049"
3939
Preferences = "1"
4040
SPIRVIntrinsics = "0.2"
41-
SPIRV_LLVM_Translator_unified_jll = "0.7"
41+
SPIRV_LLVM_Backend_jll = "20"
4242
SpecialFunctions = "1.3, 2"
4343
StaticArrays = "1"
4444
julia = "1.10"

src/compiler/compilation.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ end
6565
supports_fp16 = oneL0.module_properties(device()).fp16flags & oneL0.ZE_DEVICE_MODULE_FLAG_FP16 == oneL0.ZE_DEVICE_MODULE_FLAG_FP16
6666
supports_fp64 = oneL0.module_properties(device()).fp64flags & oneL0.ZE_DEVICE_MODULE_FLAG_FP64 == oneL0.ZE_DEVICE_MODULE_FLAG_FP64
6767

68-
# TODO: emit printf format strings in constant memory
69-
extensions = String["SPV_EXT_relaxed_printf_string_address_space"]
70-
7168
# create GPUCompiler objects
72-
target = SPIRVCompilerTarget(; extensions, supports_fp16, supports_fp64, kwargs...)
69+
target = SPIRVCompilerTarget(; supports_fp16, supports_fp64, kwargs...)
7370
params = oneAPICompilerParams()
7471
CompilerConfig(target, params; kernel, name, always_inline)
7572
end

src/oneAPI.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using LLVM
1515
using LLVM.Interop
1616
using Core: LLVMPtr
1717

18-
using SPIRV_LLVM_Translator_unified_jll, SPIRV_Tools_jll
18+
using SPIRV_LLVM_Backend_jll, SPIRV_Tools_jll
1919

2020
export oneL0
2121

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function versioninfo(io::IO=stdout)
33
if Sys.islinux()
44
println(io, "Binary dependencies:")
55
for jll in [oneL0.NEO_jll, oneL0.NEO_jll.libigc_jll, oneL0.NEO_jll.gmmlib_jll,
6-
SPIRV_LLVM_Translator_unified_jll, SPIRV_Tools_jll]
6+
SPIRV_LLVM_Backend_jll, SPIRV_Tools_jll]
77
name = string(jll)
88
print(io, "- $(name[1:end-4]): $(Base.pkgversion(jll))")
99
if jll.host_platform !== nothing

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ NEO_jll = "700fe977-ac61-5f37-bbc8-c6c4b2b6a9fd"
1111
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1212
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
1313
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
14+
SPIRV_LLVM_Backend_jll = "4376b9bf-cff8-51b6-bb48-39421dff0d0c"
1415
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1516
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1617
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

0 commit comments

Comments
 (0)