acts-project / vecmem

Vectorised data model base and helper classes.
https://acts-project.github.io/vecmem/
Mozilla Public License 2.0
19 stars 13 forks source link

Resizable Copy Fix, main branch (2023.11.18.) #248

Closed krasznaa closed 10 months ago

krasznaa commented 10 months ago

Fixed how vecmem::copy would set the size of a resizable vector.

Using the "main copy type" was a mistake, since here we always perform a copy from a variable that's sitting on the host stack. We just never tried to perform a copy into a resizable host vector from a CUDA buffer before. :confused:

I came across this while performing tests for #246.