TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
memset.hpp File Reference
#include "address_space.hpp"
#include "../device.hpp"
#include <cstring>

Detailed Description

Provides a generic memset and memset2D function for different address spaces.

Definition in file memset.hpp.

Go to the source code of this file.

Functions

template<AddressSpace AdrSp>
void nda::mem::memset (void *p, int value, size_t count)
 Call the correct memset function based on the given address space.
 
template<AddressSpace AdrSp>
void nda::mem::memset2D (void *ptr, size_t pitch, int value, size_t width, size_t height)
 Call CUDA's cudaMemset2D function or simulate its behavior on the Host based on the given address space.