cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
miscellany.hpp File Reference

Miscellaneous functionality which does not fit in another file, and does not depend on the main proxy classes. More...

#include "types.hpp"
#include "error.hpp"
#include <ostream>
#include <utility>
Include dependency graph for miscellany.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cuda
 Definitions and functionality wrapping CUDA APIs.
 
 cuda::device
 Definitions and functionality related to CUDA devices (not including the device wrapper type cuda::device_t itself)
 

Functions

void cuda::initialize_driver ()
 Obtains the CUDA Runtime version. More...
 
void cuda::ensure_driver_is_initialized ()
 A mechanism for ensuring a cuInit() call has been made, to use before making any other driver API calls. More...
 
device::id_t cuda::device::count ()
 Get the number of CUDA devices usable on the system (with the current CUDA library and kernel driver) More...
 

Detailed Description

Miscellaneous functionality which does not fit in another file, and does not depend on the main proxy classes.