12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

98 Module Documentation• CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK: Maximum number of 32-bit registers availableto a thread block; this number is shared by all thread blocks simultaneously resident on a multiprocessor;• CU_DEVICE_ATTRIBUTE_CLOCK_RATE: Peak clock frequency in kilohertz;• CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT: Alignment requirement;aligned to textureAlign bytes do not need an offset applied to texture fetches;texture base addresses• CU_DEVICE_ATTRIBUTE_GPU_OVERLAP: 1 if the device can concurrently copy memory between hostand device while executing a kernel, or 0 if not;• CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT: Number of multiprocessors on the device;• CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT: 1 if there is a run time limit for kernels executedon the device, or 0 if not;• CU_DEVICE_ATTRIBUTE_INTEGRATED: 1 if the device is integrated with the memory subsystem, or 0 ifnot;• CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY: 1 if the device can map host memory into the<strong>CUDA</strong> address space, or 0 if not;• CU_DEVICE_ATTRIBUTE_COMPUTE_MODE: Compute mode that device is currently in. Available modesare as follows:Parameters:– CU_COMPUTEMODE_DEFAULT: Default mode - Device is not restricted and can have multiple <strong>CUDA</strong>contexts present at a single time.– CU_COMPUTEMODE_EXCLUSIVE: Compute-exclusive mode - Device can have only one <strong>CUDA</strong> contextpresent on it at a time.– CU_COMPUTEMODE_PROHIBITED: Compute-prohibited mode - Device is prohibited from creatingnew <strong>CUDA</strong> contexts.pi - Returned device attribute valueattrib - Device attribute to querydev - Device handleReturns:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_INVALID_DEVICENote:Note that this function may also return error codes from previous, asynchronous launches.See also:cuDeviceComputeCapability, cuDeviceGetCount, cuDeviceGetName, cuDeviceGet, cuDeviceGetProperties,cuDeviceTotalMemGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!