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.

20 Module Documentation3.7 Execution ControlFunctions• cudaError_t cudaConfigureCall (dim3 gridDim, dim3 blockDim, size_t sharedMem, cudaStream_t stream)Configure a device-launch.• cudaError_t cudaFuncGetAttributes (struct cudaFuncAttributes ∗attr, const char ∗func)Find out attributes for a given function.• cudaError_t cudaLaunch (const char ∗entry)Launches a device function.• cudaError_t cudaSetDoubleForDevice (double ∗d)Converts a double argument to be executed on a device.• cudaError_t cudaSetDoubleForHost (double ∗d)Converts a double argument after execution on a device.• cudaError_t cudaSetupArgument (const void ∗arg, size_t size, size_t offset)Configure a device launch.3.7.1 Detailed DescriptionThis section describes the execution control functions of the <strong>CUDA</strong> runtime application programming interface.3.7.2 Function Documentation3.7.2.1 cudaError_t cudaConfigureCall (dim3 gridDim, dim3 blockDim, size_t sharedMem, cudaStream_tstream)Specifies the grid and block dimensions for the device call to be executed similar to the execution configurationsyntax. cudaConfigureCall() is stack based. Each call pushes data on top of an execution stack. This data contains thedimension for the grid and thread blocks, together with any arguments for the call.Parameters:gridDim - Grid dimensionsblockDim - Block dimensionssharedMem - Shared memorystream - Stream identifierReturns:Note:cudaSuccess, cudaErrorInvalidConfigurationNote that this function may also return error codes from previous, asynchronous launches.Generated 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!