TRIQS/nda 2.0.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
prefetch.hpp
#include "./address_space.hpp"
#include "../device.hpp"
#include <cstdlib>

Detailed Description

Provides an interface to CUDA's cudaMemPrefetchAsync routine.

Definition in file prefetch.hpp.

Go to the source code of this file.

Functions

template<AddressSpace AdrSp>
requires ((AdrSp == Host or AdrSp == Device) and have_cuda)
void nda::mem::prefetch (void *p, size_t count)
 Prefetch memory to the specified destination location.