-
Notifications
You must be signed in to change notification settings - Fork 10
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
Slices and CuArrays #21
Comments
Maybe @maleadt has some thoughts on how we can set up CI to track this. |
BTW, the sliced object here is an ordinary array of CuArrays. Which I think means that the iteration over slices happens on the CPU. I'm not sure precisely how that all works, but it sounds like it would work best for lots of work on few, large, slices. julia> TensorCast.sliceview(cu(rand(2,3)), (:,*))
3-element Array{CuArray{Float32,1,CuArray{Float32,2,Nothing}},1}:
Float32[0.61146635, 0.5048153]
Float32[0.7750392, 0.87952733]
Float32[0.7177145, 0.9034438]
julia> TensorCast.red_glue(ans, (:,*)) # is just reduce(hcat, ans)
2×3 CuArray{Float32,2,Nothing}:
0.611466 0.775039 0.717714
0.504815 0.879527 0.903444 |
GPU CI resources are documented here: https://github.com/JuliaGPU/gitlab-ci |
Thanks, that doesn't sound too difficult. |
@MasonProtter points out that, somewhat to my surprise, mapslices-like things work on the GPU:
It would be nice to (1) make sure this doesn't break, e.g. with #17, (2) understand which cases work or whether some don't, and (3) ideally make it fast?
The text was updated successfully, but these errors were encountered: