Skip to content

Conversation

lcw
Copy link
Contributor

@lcw lcw commented Apr 2, 2021

We add @inline to the get_ith function. This avoids dynamic
function calls when accessing elements of a StructArray. This allows
accessing elements of StructArrays in GPU kernels.

We add `@inline` to the `get_ith` function.  This avoids dynamic
function calls when accessing elements of a `StructArray`.  This allows
accessing elements of `StructArray`s in GPU kernels.
lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 5, 2021
This adds the necessary functionality to run a `StructArray` with
elements of type `SArray`.  For this to work on the GPU we need to
inline a couple of functions in StructArrays, see
<JuliaArrays/StructArrays.jl#177>.
lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 6, 2021
This adds the necessary functionality to run a `StructArray` with
elements of type `SArray`.  For this to work on the GPU we need to
inline a couple of functions in StructArrays, see
<JuliaArrays/StructArrays.jl#177>.
lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 6, 2021
This adds the necessary functionality to run a `StructArray` with
elements of type `SArray`.  For this to work on the GPU we need to
inline a couple of functions in StructArrays, see
<JuliaArrays/StructArrays.jl#177>.
lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 6, 2021
This adds the necessary functionality to run a `StructArray` with
elements of type `SArray`.  For this to work on the GPU we need to
inline a couple of functions in StructArrays, see
<JuliaArrays/StructArrays.jl#177>.
@piever
Copy link
Collaborator

piever commented Apr 7, 2021

LGTM, thanks!

@piever piever merged commit b7e4811 into JuliaArrays:master Apr 7, 2021
@lcw
Copy link
Contributor Author

lcw commented Apr 7, 2021

Thanks for merging! Would it be possible to get a release tagged with this change?

@piever
Copy link
Collaborator

piever commented Apr 7, 2021

Sure! I've just tagged a patch release JuliaRegistries/General#33769

@lcw
Copy link
Contributor Author

lcw commented Apr 7, 2021

Awesome!

lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 7, 2021
This updates StructArrays to a version that includes
<JuliaArrays/StructArrays.jl#177> which is
required for kernels to read elements from a `StructArray`.
lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 20, 2021
This updates StructArrays to a version that includes
<JuliaArrays/StructArrays.jl#177> which is
required for kernels to read elements from a `StructArray`.
lcw added a commit to lcw/Bennu.jl that referenced this pull request Apr 28, 2021
This updates StructArrays to a version that includes
<JuliaArrays/StructArrays.jl#177> which is
required for kernels to read elements from a `StructArray`.
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