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
1
vote
1 answer

How to return a value from Cudafy c# GPU calculation?

My Issue Hey, so I'm making this simple calculation to find the sum of sins between 0 and 100 degrees(as I use it as a benchmark for my systems), the calculation isn't the problem my issue is that I am new to Cudafy and I am unsure on how to…
Jack
  • 102
  • 1
  • 14
1
vote
1 answer

Cudafy The thread has exited with code 259

I have testing some GPU computing samples with cudafy I have code which compute/creta colection of data, and each loop i want do on every object in collection some GPU operation CODE: public override void CountData(List> datas) { …
kronas
  • 71
  • 2
  • 6
1
vote
1 answer

Cudafy Win32Exception was unhandled: The system cannot find the file specified

I have been trying to get cudafy 1.29 to work. It supports Cuda toolkit 7.0. I accidentally installed 7.5 first, uninstalled it and installed 7.0. When I run the following line: km = CudafyTranslator.Cudafy(); I get the error mentioned above and…
Danahi
  • 98
  • 1
  • 11
1
vote
1 answer

Marshalling array of embedded struct within struct in C#

I am using CUDAfy .NET and want to pass a struct array within a struct to the device. I have declared them in c# as shown below: [Cudafy(eCudafyType.Struct)] [StructLayout(LayoutKind.Sequential)] public struct A { …
pcaston2
  • 421
  • 1
  • 6
  • 17
1
vote
1 answer

Storing selective elements in GPU global memory

We are doing comparisons on the GPU using CUDAfy.NET. For that we are passing two arrays, one of which contains the data and the other stores the results. I only want to store those elements in the result array which satisfy a certain condition. But…
Abdul
  • 458
  • 5
  • 20
1
vote
1 answer

Adding all combinations of array elements using GPU

I am new to CUDAfy programming and having trouble calculating the sum of all of the combinations of elements in an array. I can't seem to think of an algorithm suitable enough to be ported on a GPU. Any help or any sort of algorithm is very much…
Abdul
  • 458
  • 5
  • 20
1
vote
1 answer

CUDAfy CopyFromDevice several orders of magnitude slower than CopyToDevice

I'm testing CUDAfy with a small gravity simulation and after running a profiler on the code I see that most of the time is spent on the CopyFromDevice method of the GPU. Here's the code: private void WithGPU(float dt) { …
Julio César
  • 12,790
  • 10
  • 38
  • 45
1
vote
1 answer

inconsistent timing from .net StopWatch

I have a C# & .NET application that uses a GPU (NVIDA GTX980) to do image processing. There are 4 stages and I synch the CPU to the GPU (no overlap in time) to do timing. But the numbers do not add up. Launch() will do a async launch of the GPU…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
1
vote
0 answers

CudaFy.net and OpenCV

I would like to use some of the OpenCV routines (2D convolve, Region Labeling, and Centroiding) in a CudaFy.net project. Is this a stupid idea? Would it be better just to implement the algorithms in C# from opensource examples? Some of inputs to…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
1
vote
0 answers

CudafyModule km = CudafyTranslator.Cudafy(); COMPILATION ERROR

im trying to get better performance on my algorithm, so im trying cudafy for that. Already done a lot of tutorials but it still miss something. Here the error that occur: Compilation error:…
1
vote
1 answer

CUDAFY, how to get arrays inside structs

How can you have a struct full of arrays in cudafy? This appears a somewhat trivial issue, but I could not find an easy implementation of it on the net. Some links suggest it cannot be done, see for example: Passing an array within a structure in…
rithm10
  • 63
  • 4
1
vote
1 answer

CUDA parallel sorting algorithm vs single thread sorting algorithms

I have a large amount of data which i need to sort, several million array each with tens of thousand of values. What im wondering is the following: Is it better to implement a parallel sorting algorithm, on the GPU, and run it across all the…
Hans Rudel
  • 3,433
  • 5
  • 39
  • 62
1
vote
2 answers

cudafy.net with NSight, debugger not working

As the topic states, I cant get the debugger working. Below is the sequence of steps ive done. Note: I have Cuda 5.0 installed and NSight visual studio edition 3.0 installed. Ive heard that it is possible to debug now with a single GPU. I'm assuming…
Hans Rudel
  • 3,433
  • 5
  • 39
  • 62
1
vote
1 answer

Repeated errors with GPU at identical intervals, is this a hard error?

Issue: Im trying to use my graphics card to do some computation using cudafy.net. Ive ran 2 versions of my kernel now and i keep getting an errors at specific intervals ie every 2nd location in the array is 0.0 but should be something much larger.…
Hans Rudel
  • 3,433
  • 5
  • 39
  • 62
1
vote
0 answers

Best way to draw 'paths' to an array?

I have a question about drawing lines/paths on my own. I use a combination of C#/WPF/Cudafy for UI and some calculations (e.g. the paths). Now I have a Byte[] array that should be filled with 'colors'/values (array-length = 4 * width * height of the…
Eru Iluvatar
  • 353
  • 1
  • 5
  • 17