-
Notifications
You must be signed in to change notification settings - Fork 29
Support Julia 1.12 #529
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
Support Julia 1.12 #529
Conversation
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/src/broadcast.jl b/src/broadcast.jl
index 58a30dd..f9d38f6 100644
--- a/src/broadcast.jl
+++ b/src/broadcast.jl
@@ -11,9 +11,9 @@ BroadcastStyle(W::Type{<:oneWrappedArray{T, N}}) where {T, N} =
# when we are dealing with different buffer styles, we cannot know
# which one is better, so use shared memory
BroadcastStyle(
- ::oneArrayStyle{N, B1},
- ::oneArrayStyle{N, B2},
- ) where {N,B1,B2} =
+ ::oneArrayStyle{N, B1},
+ ::oneArrayStyle{N, B2},
+) where {N, B1, B2} =
oneArrayStyle{N, oneL0.SharedBuffer}()
# allocation of output arrays
diff --git a/test/execution.jl b/test/execution.jl
index 596d0d8..1a7b654 100644
--- a/test/execution.jl
+++ b/test/execution.jl
@@ -307,12 +307,12 @@ end
@oneapi kernel(arr)
@test Array(arr)[] == 1
- function kernel2(ptr)
+ function kernel2(ptr)
ptr[] = 2
return
end
- @oneapi kernel2(arr)
+ @oneapi kernel2(arr)
@test Array(arr)[] == 2
end
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #529 +/- ##
==========================================
- Coverage 79.17% 79.04% -0.14%
==========================================
Files 47 47
Lines 2997 3001 +4
==========================================
- Hits 2373 2372 -1
- Misses 624 629 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the one indent issue, this looks good to me.
I tested the change and it fixes the problem for me.
Thanks for creating and submitting the PR!
@maleadt Anything I can do here about? JuliaGPU/GPUCompiler.jl#101
|
Normally we add a quirk to avoid widening to 128-bits integers. |
Fixed by avoiding |
8ec8249
to
c2ad19b
Compare
@michel2323 JuliaGPU/OpenCL.jl#380 (and JuliaGPU/Metal.jl#576 and JuliaGPU/CUDA.jl#2917) has the fix for the current 1.12 error. |
Oh thanks so much! |
With Julia 1.12 officially released, is there a reason not to merge this PR in its current state? It might not be perfect, but it probably is still better than "even the most simple case is not working at all". Follow-up PRs should still be possible. |
It regresses 1.10/1.11, which is not acceptable. |
No description provided.