Questions tagged [cudafy.net]

CUDAfy.NET allows easy development of high performance GPGPU applications completely from the Microsoft .NET framework. It's developed in C#.

Modern graphics cards provide the potential of massive speed increase over CPUs for non-graphics related intensive numeric operations. Many large data set operations such as matrices can see a 100x or more speed up.

CUDAfy allows .NET developers to easily create complex applications that split processing cleanly between host and GPU.

The project website: http://cudafy.codeplex.com/

71 questions
10
votes
2 answers

C# Bitmap GetPixel(), SetPixel() in GPU

I am using Cudafy as c# wrapper I need to get colour info InputBitmap0.GetPixel(x, y) of a bitmap and make an new bitmap for output . I need the following work to be done in GPU. IN CPU OutputBitmap.SetPixel(object_point_x, object_point_y,…
Md Sifatul Islam
  • 846
  • 10
  • 28
8
votes
2 answers

CUDAfy.NET giving Win32Exception: The system cannot find the file specified

I've added a reference to the CUDAfy.NET library via NuGet. When I run my program, I hit a Win32Exception: The system cannot find the file specified This happens on the…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
6
votes
1 answer

Cudafy cannot find cublas, cudafft

Thanks for reading my thread. My Cudafy cannot load the cublas64_55.dll I am using Windows 7, VS2012, and CUDA5.5. My cublas64_55.dll, cufft64_35.dll and etc are all in C:\Program Files\NVIDIA GPU ComputingTookit\CUDA\v5.5\bin And my environment…
Ono
  • 1,357
  • 3
  • 16
  • 38
6
votes
1 answer

Cuda - OpenCL CPU 4x faster than OpenCL or CUDA GPU version

A wave simulator I've been working on with C# + Cudafy (C# -> CUDA or OpenCL translator) works great, except for the fact that running the OpenCL CPU version (Intel driver, 15" MacBook Pro Retina i7 2.7GHz, GeForce 650M (Kepler, 384 cores)) is…
3Dave
  • 28,657
  • 18
  • 88
  • 151
5
votes
1 answer

Performance of CUDAfy module

Every time I build and run my CUDAfy code, it takes considerable time for loading the module and translating it. Is there any way to reduce the time taken during translation and loading?
Alchemist
  • 667
  • 1
  • 7
  • 21
4
votes
1 answer

Why is z always zero in CUDA kernel

I am using Cudafy to do some calculations on a NVIDIA GPU. (Quadro K1100M capability 3.0, if it matters) My question is, when I use the following cudaGpu.Launch(new dim3(44,8,num), new dim(8, 8)).MyKernel... why are my z indexes from the GThread…
smok
  • 355
  • 3
  • 16
4
votes
1 answer

Threads interaction with global memory

I'm trying to understand coding with GPUs. I'm having a bit trouble understanding interaction of GPU threads with global memory. I know when we allocate or copy something on device it's done by reference. But when we try to access global memory in a…
Abdul
  • 458
  • 5
  • 20
4
votes
1 answer

"CUDA directory not found"

I'm trying to install CUDAfy.NET for the first time but after installation I receive this error when I click "Run CUDA Test" on the CUDAfy viewer. I looked around but can only find one instance of this issue here:…
Frayt
  • 1,194
  • 2
  • 17
  • 38
4
votes
3 answers

Copy unmanaged System.IntPtr byte vector into GPU row of 2D device byte array

I am using C# and CUDAfy.net (yes, this problem is easier in straight C with pointers, but I have my reasons for using this approach given the larger system). I have a video frame grabber card that is collecting byte[1024 x 1024] image data at 30…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
3
votes
1 answer

Unable to call CudafyTranslator.Cudafy from Web API

I'm trying to use CUDAfy.NET in a web application which will be further called from a web form. When it tries to initiate a CudafyModule it gives the error as shown in pic below: Code was working perfectly in console application. Is there anyway to…
Abdul
  • 458
  • 5
  • 20
3
votes
1 answer

CUDAfying a struct that is a dependent of a class?

I have a struct 'DDReal' to be CUDAfied that is dependent on a class 'Base' that has static methods to be CUDAfied - both in seperate files in the same project. They are compiled into a DLL assembly that is called by the main program where the…
John Trinder
  • 127
  • 4
3
votes
0 answers

How to make portable distribution of application that uses cuda

Is anyone know simple way to make all inclusive distribution of application that uses cuda with Cudafy.net wrapper? I know that I have to install Toolkit and C++ compiler, but I would prefer to find more easier way to deploy to target machine.
gabba
  • 2,815
  • 2
  • 27
  • 48
3
votes
1 answer

CudafyModule km = CudafyTranslator.Cudafy(); causing an error, can't find compiler

I'm trying to run my 1st cudafy project but I'm getting the following error on the following line: CudafyModule km = CudafyTranslator.Cudafy(); Below is a screenshot of the exact error message I'm getting. I've run the example projects which come…
Hans Rudel
  • 3,433
  • 5
  • 39
  • 62
3
votes
1 answer

Passing a Struct to a kernel in cudafy.net

I'm having some issues allocating a struct, which contains several arrays, to the GPU. In the 2nd code block im getting an error with: SimpleDataStructure[] dev_SDS = _gpu.CopyToDevice(SDS); Does anyone know why? From what i can see CopyToDevice()…
Hans Rudel
  • 3,433
  • 5
  • 39
  • 62
3
votes
3 answers

Returning the minimum and maximum elements of an array in CUDA

I'm performing some array manipulation/calculation in CUDA (via the Cudafy.NET library, though I'm equally interested in CUDA/C++ methods), and need to calculate the minimum and maximum values that are in the array. One of the kernels looks like…
3Dave
  • 28,657
  • 18
  • 88
  • 151
1
2 3 4 5