Skip to content
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 loading/saving simdgroup matrix from threadgroup memory #71

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

maxwindiff
Copy link
Contributor

No description provided.

@maleadt
Copy link
Member

maleadt commented Jan 17, 2023

bors try

bors bot added a commit that referenced this pull request Jan 17, 2023
@bors
Copy link

bors bot commented Jan 17, 2023

try

Build succeeded:

@@ -78,6 +78,15 @@ Base.@propagate_inbounds Base.getindex(A::MtlLargerDeviceArray{T}, i1::Integer)
Base.@propagate_inbounds Base.setindex!(A::MtlLargerDeviceArray{T}, x, i1::Integer) where {T} =
arrayset(A, convert(T,x)::T, i1)

Base.to_index(::MtlLargerDeviceArray{T}, i::Integer) where {T} = i
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? I'm assuming you're copying the CUDA.jl perf optimization for Int32 indices here. That doesn't really belong in this PR, but other than that it should definitely have some comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right it's not needed, I've removed it.
I copied it over from src/device/array.jl when I was trying to get tg_a[x,y] to work for MtlLargerDeviceArray (which is needed by the test).

@maleadt
Copy link
Member

maleadt commented Jan 18, 2023

bors try

bors bot added a commit that referenced this pull request Jan 18, 2023
@bors
Copy link

bors bot commented Jan 18, 2023

try

Build succeeded:

@maleadt maleadt merged commit f800d46 into JuliaGPU:main Jan 18, 2023
@maxwindiff maxwindiff deleted the tg branch January 18, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants