Taskflow  3.2.0-Master-Branch
Loading...
Searching...
No Matches
cuda_device.hpp File Reference

CUDA device utilities include file. More...

Go to the source code of this file.

Classes

class  tf::cudaScopedDevice
 class to create an RAII-styled context switch More...
 

Namespaces

namespace  tf
 taskflow namespace
 

Functions

size_t tf::cuda_get_num_devices ()
 queries the number of available devices
 
int tf::cuda_get_device ()
 gets the current device associated with the caller thread
 
void tf::cuda_set_device (int id)
 switches to a given device context
 
void tf::cuda_get_device_property (int i, cudaDeviceProp &p)
 obtains the device property
 
cudaDeviceProp tf::cuda_get_device_property (int i)
 obtains the device property
 
void tf::cuda_dump_device_property (std::ostream &os, const cudaDeviceProp &p)
 dumps the device property
 
size_t tf::cuda_get_device_max_threads_per_block (int d)
 queries the maximum threads per block on a device
 
size_t tf::cuda_get_device_max_x_dim_per_block (int d)
 queries the maximum x-dimension per block on a device
 
size_t tf::cuda_get_device_max_y_dim_per_block (int d)
 queries the maximum y-dimension per block on a device
 
size_t tf::cuda_get_device_max_z_dim_per_block (int d)
 queries the maximum z-dimension per block on a device
 
size_t tf::cuda_get_device_max_x_dim_per_grid (int d)
 queries the maximum x-dimension per grid on a device
 
size_t tf::cuda_get_device_max_y_dim_per_grid (int d)
 queries the maximum y-dimension per grid on a device
 
size_t tf::cuda_get_device_max_z_dim_per_grid (int d)
 queries the maximum z-dimension per grid on a device
 
size_t tf::cuda_get_device_max_shm_per_block (int d)
 queries the maximum shared memory size in bytes per block on a device
 
size_t tf::cuda_get_device_warp_size (int d)
 queries the warp size on a device
 
int tf::cuda_get_device_compute_capability_major (int d)
 queries the major number of compute capability of a device
 
int tf::cuda_get_device_compute_capability_minor (int d)
 queries the minor number of compute capability of a device
 
bool tf::cuda_get_device_unified_addressing (int d)
 queries if the device supports unified addressing
 
int tf::cuda_get_driver_version ()
 queries the latest CUDA version (1000 * major + 10 * minor) supported by the driver
 
int tf::cuda_get_runtime_version ()
 queries the CUDA Runtime version (1000 * major + 10 * minor)
 

Detailed Description

CUDA device utilities include file.