Library/ManagedCuda/CudaRand/CudaRandDevice.cs
/// <summary>
/// Use generator to generate num float results into the device memory at
/// outputPtr. The device memory must have been previously allocated and be
/// large enough to hold all the results. Launches are done with the stream
/// set using SetStream(), or the null stream if no stream has been set.
/// <para/>
/// Results are 32-bit floating point values between 0.0f and 1.0f,
/// excluding 0.0f and including 1.0f.
/// </summary>
/// <param name="output">DevicePtr of type float*</param>
/// <param name="size">Number of random elements to create</param>
Use generator to generate num float results into the device memory at
outputPtr. The device memory must have been previously allocated and be
large enough to hold all the results. Launches are done with the stream
set using SetStream(), or the null stream if no stream has been set.


Use generator to generate num float results into the device memory at outputPtr . The device memory must have been previously allocated and be large enough to hold all the results . Launches are done with the stream set using SetStream () or the null stream if no stream has been set .
public void GenerateUniform32(CUdeviceptr output, SizeT size)
		{
			_status = CudaRandNativeMethods.curandGenerateUniform(_generator, output, size);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "curandGenerateUniform", _status));
			if (_status != CurandStatus.Success) throw new CudaRandException(_status);
		}
public void GenerateUniform32 ( CUdeviceptr output , SizeT size ) { _status = CudaRandNativeMethods . curandGenerateUniform ( _generator , output , size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CurandStatus . Success ) throw new CudaRandException ( _status ) ; }
Use generator to generate num float results into the device memory at
outputPtr.
Use generator to generate num float results into the device memory at outputPtr .
output
CUdeviceptr
DevicePtr of type float
DevicePtr of type float
size
SizeT
Number of random elements to create
Number of random elements to create