Exemplo n.º 1
0
		/// <summary>
		/// Creates a new random number generator of type Type
		/// </summary>
		/// <param name="Type">Generator type</param>
		public CudaRandHost(GeneratorType Type)
		{
			_generator = new CurandGenerator();
			_status = CudaRandNativeMethods.curandCreateGeneratorHost(ref _generator, Type);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "curandCreateGeneratorHost", _status));
			if (_status != CurandStatus.Success) throw new CudaRandException(_status);
		}
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new random number generator of type Type
 /// </summary>
 /// <param name="Type">Generator type</param>
 public CudaRandDevice(GeneratorType Type)
 {
     _generator = new CurandGenerator();
     _status    = CudaRandNativeMethods.curandCreateGenerator(ref _generator, Type);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "curandCreateGenerator", _status));
     if (_status != CurandStatus.Success)
     {
         throw new CudaRandException(_status);
     }
 }
Exemplo n.º 3
0
 public static extern CurandStatus curandGenerateNormalDouble(CurandGenerator generator, [Out] double[] outputPtr, SizeT n, double mean, double stddev);
Exemplo n.º 4
0
 public static extern CurandStatus curandGenerateUniformDouble(CurandGenerator generator, CUdeviceptr outputPtr, SizeT num);
Exemplo n.º 5
0
 public static extern CurandStatus curandGenerateUniform(CurandGenerator generator, [Out] float[] outputPtr, SizeT num);
Exemplo n.º 6
0
 public static extern CurandStatus curandGenerateLongLong(CurandGenerator generator, [Out] ulong[] outputPtr, SizeT num);
Exemplo n.º 7
0
 public static extern CurandStatus curandSetQuasiRandomGeneratorDimensions(CurandGenerator generator, uint num_dimensions);
Exemplo n.º 8
0
 public static extern CurandStatus curandGeneratePoisson(CurandGenerator generator, uint[] outputPtr, SizeT n, double lambda);
Exemplo n.º 9
0
 public static extern CurandStatus curandGenerateNormalDouble(CurandGenerator generator, CUdeviceptr outputPtr, SizeT n, double mean, double stddev);
Exemplo n.º 10
0
 public static extern CurandStatus curandGenerateNormal(CurandGenerator generator, CUdeviceptr outputPtr, SizeT n, float mean, float stddev);
Exemplo n.º 11
0
 public static extern CurandStatus curandGenerateNormal(CurandGenerator generator, [Out] float[] outputPtr, SizeT n, float mean, float stddev);
Exemplo n.º 12
0
 public static extern CurandStatus curandGenerateLongLong(CurandGenerator generator, CUdeviceptr outputPtr, SizeT num);
Exemplo n.º 13
0
 public static extern CurandStatus curandGenerateLongLong(CurandGenerator generator, [Out] ulong[] outputPtr, SizeT num);
Exemplo n.º 14
0
 public static extern CurandStatus curandGenerateLogNormalDouble(CurandGenerator generator, double[] outputPtr, SizeT n, double mean, double stddev);
Exemplo n.º 15
0
 public static extern CurandStatus curandGenerate(CurandGenerator generator, [Out] uint[] outputPtr, SizeT num);
Exemplo n.º 16
0
 public static extern CurandStatus curandGenerateLogNormalDouble(CurandGenerator generator, CUdeviceptr outputPtr, SizeT n, double mean, double stddev);
Exemplo n.º 17
0
 public static extern CurandStatus curandCreateGeneratorHost(ref CurandGenerator generator, GeneratorType rng_type);
Exemplo n.º 18
0
 public static extern CurandStatus curandGeneratePoisson(CurandGenerator generator, uint[] outputPtr, SizeT n, double lambda);
Exemplo n.º 19
0
 public static extern CurandStatus curandSetPseudoRandomGeneratorSeed(CurandGenerator generator, ulong seed);
Exemplo n.º 20
0
 public static extern CurandStatus curandGenerateSeeds(CurandGenerator generator);
Exemplo n.º 21
0
 public static extern CurandStatus curandSetGeneratorOrdering(CurandGenerator generator, Ordering order);
Exemplo n.º 22
0
 public static extern CurandStatus curandGenerateUniform(CurandGenerator generator, [Out] float[] outputPtr, SizeT num);
Exemplo n.º 23
0
 public static extern CurandStatus curandGenerate(CurandGenerator generator, [Out] uint[] outputPtr, SizeT num);
Exemplo n.º 24
0
 public static extern CurandStatus curandGenerateUniformDouble(CurandGenerator generator, [Out] double[] outputPtr, SizeT num);
Exemplo n.º 25
0
 public static extern CurandStatus curandGenerateLongLong(CurandGenerator generator, CUdeviceptr outputPtr, SizeT num);
Exemplo n.º 26
0
 public static extern CurandStatus curandGenerateUniformDouble(CurandGenerator generator, CUdeviceptr outputPtr, SizeT num);
Exemplo n.º 27
0
 public static extern CurandStatus curandGenerateUniformDouble(CurandGenerator generator, [Out] double[] outputPtr, SizeT num);
Exemplo n.º 28
0
 public static extern CurandStatus curandSetGeneratorOffset(CurandGenerator generator, ulong offset);
Exemplo n.º 29
0
 public static extern CurandStatus curandGenerateNormal(CurandGenerator generator, [Out] float[] outputPtr, SizeT n, float mean, float stddev);
Exemplo n.º 30
0
 public static extern CurandStatus curandSetGeneratorOrdering(CurandGenerator generator, Ordering order);
Exemplo n.º 31
0
 public static extern CurandStatus curandGenerateLogNormal(CurandGenerator generator, CUdeviceptr outputPtr, SizeT n, float mean, float stddev);
Exemplo n.º 32
0
 public static extern CurandStatus curandSetPseudoRandomGeneratorSeed(CurandGenerator generator, ulong seed);
Exemplo n.º 33
0
 public static extern CurandStatus curandGenerateSeeds(CurandGenerator generator);
Exemplo n.º 34
0
 public static extern CurandStatus curandSetQuasiRandomGeneratorDimensions(CurandGenerator generator, uint num_dimensions);
Exemplo n.º 35
0
 public static extern CurandStatus curandDestroyGenerator(CurandGenerator generator);
Exemplo n.º 36
0
 public static extern CurandStatus curandSetStream(CurandGenerator generator, CUstream stream);
Exemplo n.º 37
0
 public static extern CurandStatus curandSetStream(CurandGenerator generator, CUstream stream);
Exemplo n.º 38
0
 public static extern CurandStatus curandCreateGeneratorHost(ref CurandGenerator generator, GeneratorType rng_type);
Exemplo n.º 39
0
 public static extern CurandStatus curandSetGeneratorOffset(CurandGenerator generator, ulong offset);
Exemplo n.º 40
0
 public static extern CurandStatus curandDestroyGenerator(CurandGenerator generator);