Skip to content

Use pinned memory for GPU version

Sebastian Ohlmann requested to merge gpu_pinned_memory into develop

Description

Add a special allocation function in C that will allocate pinned memory when running on GPUs for the wavefunctions. This increases the transfer speed by more than a factor of 2.

This function could in the future also be used to make the allocated memory aligned for CPU runs which would improve the usage of vectorization.

News snippet

Use pinned memory for the GPU version to improve transfer speeds.

Checklist

Closes #223 (closed). Relates to #162 (closed).

Edited by Martin Lueders

Merge request reports