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.

22 Module DocumentationConverts the double value of d to an internal float representation if the device does not support double arithmetic. Ifthe device does natively support doubles, then this function does nothing.Returns:Note:See also:cudaSuccessNote that this function may also return error codes from previous, asynchronous launches.cudaLaunch (C API), cudaLaunch (C++ API), cudaSetupArgument (C API), cudaSetDoubleForHost3.7.2.5 cudaError_t cudaSetDoubleForHost (double ∗ d)Converts the double value of d from a potentially internal float representation if the device does not support doublearithmetic. If the device does natively support doubles, then this function does nothing.Parameters:d - Double to convertReturns:Note:See also:cudaSuccessNote that this function may also return error codes from previous, asynchronous launches.cudaLaunch (C API), cudaLaunch (C++ API), cudaSetupArgument (C API), cudaSetDoubleForDevice3.7.2.6 cudaError_t cudaSetupArgument (const void ∗ arg, size_t size, size_t offset)Pushes size bytes of the argument pointed to by arg at offset bytes from the start of the parameter passing area,which starts at offset 0. The arguments are stored in the top of the execution stack. cudaSetupArgument() must bepreceded by a call to cudaConfigureCall().Parameters:arg - Argument to push for a kernel launchsize - Size of argumentoffset - Offset in argument stack to push new argReturns:Note:See also:cudaSuccessNote that this function may also return error codes from previous, asynchronous launches.cudaLaunch (C API), cudaLaunch (C++ API), cudaSetupArgument (C++ API), cudaConfigureCallGenerated 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!