-
Notifications
You must be signed in to change notification settings - Fork 40
Switch to the LLVM SPIR-V back-end. #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Currently blocked on pocl/pocl#1799. MWE: function double_print_kernel()
OpenCL.@print "foo"
OpenCL.@print "barbar"
return
end
function main()
@opencl double_print_kernel()
end Reduced from: function orig()
x = CLArray(zeros(Float32, (1, 1)))
y = CLArray(rand(Float32, (1)))
x[:, 1] = y
end EDIT: upstream argued that this is an LLVM bug. |
Also blocked on llvm/llvm-project#127977 MWE: Reduced from: function orig()
T1 = T2 = Float32
AT = CLArray
f = identity
x = ones(T1, 5, 5)
y = AT(x)
xw = f(x)
yw = f(y)
J = one(T2) * I
@allowscalar collect(xw + J) ≈ collect(yw + J)
end |
52bc6cf
to
fdc1656
Compare
Rebased and updated the JLL. On 7.0 the
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #285 +/- ##
===========================================
- Coverage 73.82% 32.51% -41.31%
===========================================
Files 12 11 -1
Lines 615 572 -43
===========================================
- Hits 454 186 -268
- Misses 161 386 +225 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Same as JuliaGPU/oneAPI.jl#491, but I figured it's easier to do the experimentation here as the SPIRVIntrinsics submodule is part of this repository.