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.

3.7 Execution Control 21See also:cudaLaunch (C API), cudaLaunch (C++ API), cudaSetupArgument (C API)3.7.2.2 cudaError_t cudaFuncGetAttributes (struct cudaFuncAttributes ∗ attr, const char ∗ func)This function obtains the attributes of a function specified via func. The fetched attributes are placed in attr. If thespecified function does not exist, then :cudaErrorInvalidDeviceFunction is returned.Parameters:attr - Return pointer to function’s attributesfunc - Function to get attributes ofReturns:Note:See also:cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidDeviceFunctionNote that this function may also return error codes from previous, asynchronous launches.cudaLaunch (C API), cudaLaunch (C++ API)3.7.2.3 cudaError_t cudaLaunch (const char ∗ entry)Launches the function entry on the device. entry can either be a function that executes on the device, or it canbe a character string, naming a function that executes on the device. entry must be declared as a __global__function. cudaLaunch() must be preceded by a call to cudaConfigureCall() since it pops the data that was pushed bycudaConfigureCall() from the execution stack.Parameters:entry - Device function pointer or char string naming device function to executeReturns:Note:See also:cudaSuccess, cudaErrorInvalidDeviceFunction, cudaErrorInvalidConfigurationNote that this function may also return error codes from previous, asynchronous launches.cudaLaunch (C++ API), cudaSetupArgument (C API), cudaConfigureCall3.7.2.4 cudaError_t cudaSetDoubleForDevice (double ∗ d)Parameters:d - Double to convertGenerated 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!