Skip to content

Commit 8a688fd

Browse files
authored
Switch to the LLVM SPIR-V back-end. (#491)
1 parent 8a3e4b3 commit 8a688fd

5 files changed

Lines changed: 6 additions & 11 deletions

File tree

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Preferences = "21216c6a-2e73-6563-6e65-726566657250"
2121
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
2222
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2323
SPIRVIntrinsics = "71d1d633-e7e8-4a92-83a1-de8814b09ba8"
24-
SPIRV_LLVM_Translator_jll = "4a5d46fc-d8cf-5151-a261-86b458210efb"
24+
SPIRV_LLVM_Backend_jll = "4376b9bf-cff8-51b6-bb48-39421dff0d0c"
2525
SPIRV_Tools_jll = "6ac6d60f-d740-5983-97d7-a4482c0689f4"
2626
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2727
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
@@ -44,7 +44,7 @@ LLVM = "6, 7, 8, 9"
4444
NEO_jll = "=26.18.38308"
4545
Preferences = "1"
4646
SPIRVIntrinsics = "0.5"
47-
SPIRV_LLVM_Translator_jll = "21"
47+
SPIRV_LLVM_Backend_jll = "22"
4848
SPIRV_Tools_jll = "2025.4.0"
4949
SpecialFunctions = "1.3, 2"
5050
StaticArrays = "1"

src/compiler/compilation.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,8 @@ end
187187
supports_fp16 = oneL0.module_properties(device()).fp16flags & oneL0.ZE_DEVICE_MODULE_FLAG_FP16 == oneL0.ZE_DEVICE_MODULE_FLAG_FP16
188188
supports_fp64 = oneL0.module_properties(device()).fp64flags & oneL0.ZE_DEVICE_MODULE_FLAG_FP64 == oneL0.ZE_DEVICE_MODULE_FLAG_FP64
189189

190-
# TODO: emit printf format strings in constant memory
191-
extensions = String[
192-
"SPV_EXT_relaxed_printf_string_address_space",
193-
"SPV_EXT_shader_atomic_float_add"
194-
]
195-
196190
# create GPUCompiler objects
197-
target = SPIRVCompilerTarget(; extensions, supports_fp16, supports_fp64, kwargs...)
191+
target = SPIRVCompilerTarget(; supports_fp16, supports_fp64, kwargs...)
198192
params = oneAPICompilerParams()
199193
CompilerConfig(target, params; kernel, name, always_inline)
200194
end

src/oneAPI.jl

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

20-
using SPIRV_LLVM_Translator_jll, SPIRV_Tools_jll
20+
using SPIRV_LLVM_Backend_jll, SPIRV_Tools_jll
2121
using oneAPI_Support_jll
2222

2323
export oneL0

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_jll, SPIRV_Tools_jll, oneAPI_Support_jll]
6+
SPIRV_LLVM_Backend_jll, SPIRV_Tools_jll, oneAPI_Support_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
@@ -14,6 +14,7 @@ ParallelTestRunner = "d3525ed8-44d0-4b2c-a655-542cee43accc"
1414
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1515
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
1616
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
17+
SPIRV_LLVM_Backend_jll = "4376b9bf-cff8-51b6-bb48-39421dff0d0c"
1718
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1819
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1920
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

0 commit comments

Comments
 (0)