milupHPC documentation
  • include
  • cuda_utils
Namespaces | Functions
cuda_runtime.h File Reference

CUDA runtime functionalities and wrappers. More...

#include "cuda_utilities.cuh"
#include "../parameter.h"
+ Include dependency graph for cuda_runtime.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cuda
 

Functions

template<typename T >
void cuda::copy (T *h_var, T *d_var, std::size_t count=1, To::Target copyTo=To::device)
 Copy between host and device and vice-versa. More...
 
template<typename T >
void cuda::set (T *d_var, T val, std::size_t count=1)
 Set device memory to a specific value. More...
 
template<typename T >
void cuda::malloc (T *&d_var, std::size_t count)
 Allocate device memory. More...
 
template<typename T >
void cuda::free (T *d_var)
 Free device memory. More...
 

Detailed Description

CUDA runtime functionalities and wrappers.

Wrapping CUDA runtime functions for better C++ integration.

Author
Michael Staneker
Bug:
no known bugs

Definition in file cuda_runtime.h.


milupHPC - include/cuda_utils/cuda_runtime.h File Reference
Generated on Wed Aug 31 2022 12:16:53 by Doxygen 1.9.3