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

Define resize! #436

Merged
merged 4 commits into from
May 15, 2024
Merged

Define resize! #436

merged 4 commits into from
May 15, 2024

Conversation

mtfishman
Copy link
Contributor

@mtfishman mtfishman commented May 14, 2024

This is a draft of an implementation of resize! for oneArray.

It is similar to the implementations for CuArray, ROCArray, and MtlArray.

I don't have access to an Intel GPU so don't have any way of testing it, so the current implementation is most likely wrong. I'm hoping to get some help from someone who is capable of helping, and/or use the CI tests to guide me towards a correct implementation.

In conjunction with JuliaGPU/GPUArrays.jl#533, this will allow append! to be defined for oneArray.

@tgymnich @maleadt

@mtfishman mtfishman changed the title [WIP] Define resize! Define resize! May 14, 2024
@mtfishman
Copy link
Contributor Author

Ok, looks like the current implementation at least passes basic tests.

@maleadt
Copy link
Member

maleadt commented May 15, 2024

LGTM, Thanks!

@maleadt maleadt merged commit f36b813 into JuliaGPU:master May 15, 2024
1 check passed
@mtfishman mtfishman deleted the resize branch May 15, 2024 11:01
@mtfishman
Copy link
Contributor Author

@maleadt @amontoison can this get included in a new release? It's holding up JuliaGPU/GPUArrays.jl#533, which we need to get good performance in some of our GPU calculations.

Not sure if #439 indicates an issue with this PR, however.

@maleadt
Copy link
Member

maleadt commented May 24, 2024

It's holding up JuliaGPU/GPUArrays.jl#533

How exactly? GPUArrays tests the master branch of oneAPI.jl: https://github.com/JuliaGPU/GPUArrays.jl/blob/94bdb439755801041555aeac68da2448a22b2a6f/.buildkite/pipeline.yml#L34

@mtfishman
Copy link
Contributor Author

Ah I didn't realize that, thanks for pointing that out. But anyway, still might be nice to make a new release of oneAPI.jl so end users can access this and other new features.

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.

3 participants