Library/ManagedCuda/CudaRand/CudaRandDevice.cs
/// <summary>
/// Returns the version number of the dynamically linked CURAND library.   
/// </summary>
Returns the version number of the dynamically linked CURAND library.
Returns the version number of the dynamically linked CURAND library .
public static Version GetVersion()
		{
			int version = 0;
			CurandStatus _status = CudaRandNativeMethods.curandGetVersion(ref version);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "curandGetVersion", _status));
			if (_status != CurandStatus.Success) throw new CudaRandException(_status);
			return new Version((int)version / 1000, (int)version % 100);
		}
public static Version GetVersion ( ) { int version = 0 ; CurandStatus _status = CudaRandNativeMethods . curandGetVersion ( ref version ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , _status ) ) ; if ( _status != CurandStatus . Success ) throw new CudaRandException ( _status ) ; return new Version ( ( int ) version / 1000 , ( int ) version % 100 ) ; }
Returns the version number of the dynamically linked CURAND library.
Returns the version number of the dynamically linked CURAND library .