12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

100 Module Documentationtypedef struct CUdevprop_st {int maxThreadsPerBlock;int maxThreadsDim[3];int maxGridSize[3];int sharedMemPerBlock;int totalConstantMemory;int SIMDWidth;int memPitch;int regsPerBlock;int clockRate;int textureAlign} CUdevprop;where:• maxThreadsPerBlock is the maximum number of threads per block;• maxThreadsDim[3] is the maximum sizes of each dimension of a block;• maxGridSize[3] is the maximum sizes of each dimension of a grid;• sharedMemPerBlock is the total amount of shared memory available per block in bytes;• totalConstantMemory is the total amount of constant memory available on the device in bytes;• SIMDWidth is the warp size;• memPitch is the maximum pitch allowed by the memory copy functions that involve memory regions allocatedthrough cuMemAllocPitch();• regsPerBlock is the total number of registers available per block;• clockRate is the clock frequency in kilohertz;• textureAlign is the alignment requirement; texture base addresses that are aligned to textureAlign bytes do notneed an offset applied to texture fetches.Parameters:prop - Returned properties of devicedev - Device to get properties forReturns:Note:<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 that this function may also return error codes from previous, asynchronous launches.See also:cuDeviceComputeCapability, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGet, 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!