11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

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

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

4.7 Execution Control 25<br />

See also:<br />

cudaFuncGetAttributes (C API), cudaLaunch (C API), cudaSetDoubleForDevice, cudaSetDoubleForHost, cudaSetupArgument<br />

(C API),<br />

4.7.2.2 cudaError_t cudaFuncGetAttributes (struct cudaFuncAttributes ∗ attr, const char ∗ func)<br />

This function obtains the attributes of a function specified via func, which is a character string that specifies the<br />

fully-decorated (C++) name for a function that executes on the device. The parameter specified by func must be<br />

declared as a __global__ function. The fetched attributes are placed in attr. If the specified function does not<br />

exist, then cudaErrorInvalidDeviceFunction is returned.<br />

Parameters:<br />

attr - Return pointer to function’s attributes<br />

func - Function to get attributes of<br />

Returns:<br />

Note:<br />

See also:<br />

cudaSuccess, cudaErrorInitializationError, cudaErrorInvalidDeviceFunction<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cudaConfigureCall, cudaFuncGetAttributes (C++ API), cudaLaunch (C API), cudaSetDoubleForDevice, cudaSet-<br />

DoubleForHost, cudaSetupArgument (C API)<br />

4.7.2.3 cudaError_t cudaLaunch (const char ∗ entry)<br />

Launches the function entry on the device. The parameter entry must be a character string naming a function<br />

that executes on the device. The parameter specified by entry must be declared as a __global__ function. cudaLaunch()<br />

must be preceded by a call to cudaConfigureCall() since it pops the data that was pushed by cudaConfigureCall()<br />

from the execution stack.<br />

Parameters:<br />

entry - Device char string naming device function to execute<br />

Returns:<br />

Note:<br />

cudaSuccess, cudaErrorInvalidDeviceFunction, cudaErrorInvalidConfiguration, cudaErrorLaunchFailure, cudaErrorPriorLaunchFailure,<br />

cudaErrorLaunchTimeout, cudaErrorLaunchOutOfResources<br />

See also:<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cudaConfigureCall, cudaFuncGetAttributes (C API), cudaLaunch (C++ API), cudaSetDoubleForDevice, cudaSet-<br />

DoubleForHost, cudaSetupArgument (C API)<br />

Generated 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!