AMDGPU.jl
AMDGPU.jl copied to clipboard
Added support for AnyROCArrays for GPUArrays.mapreducedim!.
Hello @maleadt @jpsamaroo,
On my side, this commit seems to add support for AnyROCArray
s in GPUArray.mapreducedim!
, and it assumes that the passed array is located on the default device. Please let me know when you're done working on the device API for AMDGPU so that I can add that in.
Matin
@matinraayai would you mind adding a test for this?
@jpsamaroo aren't these tested in GPUArrays.jl
?
https://github.com/JuliaGPU/GPUArrays.jl/blob/master/test/testsuite/reductions.jl
I wasn't able to find the corresponding CUDA.jl
for this either.
The specific invocation requiring an AnyROCArray couldn't have been tested in GPUArrays or AMDGPU.jl wouldn't have passed tests before. Ideally we add that test in GPUArrays.jl though.
@matinraayai you'll need to rebase on AMDGPU master so that you get the device
call.
@matinraayai bump
Seems like you accidentally force-pushed the wrong branch here @matinraayai
@jpsamaroo I forgot I had this PR from master. Not sure how to revert it.
I'm going to close the PR since I have rocSparse things in my fork's master branch. Link to new PR: https://github.com/JuliaGPU/AMDGPU.jl/pull/291