Support of custom allocator for atoms_positions
, atoms_total_forces
and atoms_new_colvar_forces
#784
Labels
atoms_positions
, atoms_total_forces
and atoms_new_colvar_forces
#784
I would like to avoid extra data copying when implementing the interface for GPU-resident NAMD. Currently #783 holds an intermediate buffer for transposition, and copy the data from the buffer to
atoms_positions
,atoms_total_forces
andatoms_new_colvar_forces
. The CUDA kernel cannot write toatoms_positions
,atoms_total_forces
andatoms_new_colvar_forces
directly because they are not allocated with page-locked memory managed by the CUDA runtime. To solve the issue, a custom allocator can be used for them:But to use this allocator there will be pervasive changes to Colvars code where only
std::vector<T>
is used.The text was updated successfully, but these errors were encountered: