Skip to content

Commit 13b6c69

Browse files
Add relevant package versions to versioninfo
Co-Authored-By: Simeon David Schaub <simeon@schaub.rocks>
1 parent 524a901 commit 13b6c69

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/OpenCL.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ using GPUArrays
99
using Random
1010
using Preferences
1111

12+
import KernelAbstractions: KernelAbstractions
13+
1214
using Core: LLVMPtr
1315

1416
# library wrappers

src/util.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ function versioninfo(io::IO=stdout)
4444
end
4545
println(io)
4646

47+
println(io, "Julia packages:")
48+
for name in [:GPUArrays, :GPUCompiler, :KernelAbstractions, :LLVM, :SPIRVIntrinsics]
49+
mod = getfield(OpenCL, name)
50+
println(io, "- $(name): $(Base.pkgversion(mod))")
51+
end
52+
println(io)
53+
4754
env = filter(var->startswith(var, "JULIA_OPENCL"), keys(ENV))
4855
if !isempty(env)
4956
println(io, "Environment:")

0 commit comments

Comments
 (0)