You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
I try to random array number but I met the error:
System.DllNotFoundException: Unable to load DLL 'curand64_70': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
can you help me fix it???
this is my code:
using System;
using Cudafy;
using Cudafy.Host;
using Cudafy.Translator;
using Cudafy.Maths.RAND;
namespace CudafyByExample
{
public class RandomNumber
{
const ulong a = 30000;
const int b = 10;
public static void Execute()
{
CudafyModule km = CudafyTranslator.Cudafy();
GPGPU gpu = CudafyHost.GetDevice(CudafyModes.Target, CudafyModes.DeviceId);
gpu.LoadModule(km);
GPGPURAND gPGPURAND = GPGPURAND.Create(gpu, curandRngType.CURAND_RNG_PSEUDO_XORWOW);
gPGPURAND.SetPseudoRandomGeneratorSeed(a);
float[] r = new float[b];
float[] d_r = gpu.Allocate<float>(r);
gPGPURAND.GenerateUniform(d_r);
gpu.CopyFromDevice(d_r, r);
gPGPURAND.Dispose();
gpu.Free(d_r);
}
public static void random(float[] x)
{
Console.WriteLine(" element of array");
for (int i = 0; i < x.Length; i++)
{
Console.WriteLine($"x[{i}] = {x[i]}");
}
}
}
}
The text was updated successfully, but these errors were encountered:
I try to random array number but I met the error:

System.DllNotFoundException: Unable to load DLL 'curand64_70': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
can you help me fix it???
this is my code:
using System;
using Cudafy;
using Cudafy.Host;
using Cudafy.Translator;
using Cudafy.Maths.RAND;
namespace CudafyByExample
{
public class RandomNumber
{
const ulong a = 30000;
const int b = 10;
public static void Execute()
{
CudafyModule km = CudafyTranslator.Cudafy();
GPGPU gpu = CudafyHost.GetDevice(CudafyModes.Target, CudafyModes.DeviceId);
gpu.LoadModule(km);
}
The text was updated successfully, but these errors were encountered: