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
2
votes
1 answer

Cudafy.net with NSight, "Error decompiling kernel" after debug start

I'm using Cudafy.net for GPU computations. Everything works fine unless I try to debug the kernel using NSight. After NSight->"Start CUDA debugging", this error occurs: "Error decompiling System.Void Network.ActivationFunction(Cudafy.GThread,…
2
votes
1 answer

Enable double precision in OpenCL via CUDAfy

I am working with CUDAfy and C#. For my kernel, I need double precision. In CUDA, this is no problem, it is automatically supported. However, in order to support non NVIDIA hardware, the user should be able to use OpenCL, too. Here, as far as I…
mgulde
  • 215
  • 3
  • 10
2
votes
1 answer

Parallel Prefix Sum CUDAfy

I need an algorithm for computing the parallel prefix sum of an array without using shared memory. And if there is no other alternative to using shared memory, what is the best way to tackle the problem of conflicts?
Abdul
  • 458
  • 5
  • 20
2
votes
1 answer

Cudafy.NET Compilation error

I'm trying to use Cudafy.NET for my programming. At first, I tested the example of cudafy.NET, but it does not work. cudafyModule km = CudafyTranslator.Cudafy(); This code showed a compilation error. So, I checked CUDA test in the cudafyviewer, but…
HeeJo You
  • 21
  • 4
2
votes
1 answer

GPGPU.TotalMemory shows extremely huge value

I have a 4GB and a 12GB gfx card with CUDA. In my application I use CUDAfy.NET and when calling the GPGPU.TotalMemory property it shows an extremely huge value (definitely incorrect). Same with FreeMemory. How to fix this? Console.WriteLine("GPU…
Val
  • 1,548
  • 1
  • 20
  • 36
2
votes
2 answers

How to declare a fixed size array in a Cudafy GPU kernel

I want to do this in a kernel: int count[8]; I'm almost positive you can declare fixed size arrays within CUDA GPU kernels. So how do I go about doing this while using Cudafy? This does not work: [Cudafy] public static void kernelFunction(int[]…
jpreed00
  • 893
  • 8
  • 25
2
votes
2 answers

alea.cuBase and CUBLAS

I'm starting down the exciting road of GPU programming, and if I'm going to do some heavyweight number-crunching, I'd like to use the best libraries that are out there. I would especially like to use cuBLAS from an F# environment. CUDAfy offers…
Rob Lyndon
  • 12,089
  • 5
  • 49
  • 74
2
votes
1 answer

CUDA .Net compare strings

I'm trying to compare lists of strings (huge amount of elements in each of lists). Could somebody help me to do it using cudafy? I guess that in that case I should use jagged arrays of char but I've got an CudafyCompileException - expression must…
Syshka
  • 71
  • 6
2
votes
1 answer

Partial sorting algorithm, why is there such a difference in performance?

I have a list of randomly generated numbers, which contains 1900 numbers, and I want to obtain a sorted list of the top 190 numbers. I've written two versions of the partial sorting algorithm, 1st is a CPU version and 2nd is written so it can run on…
Hans Rudel
  • 3,433
  • 5
  • 39
  • 62
2
votes
2 answers

Passing an array within a structure in CUDAfy

Using VS 2012, .NET 4.5, 64bit and CUDAfy 1.12 and I have the following proof of concept using System; using System.Runtime.InteropServices; using Cudafy; using Cudafy.Host; using Cudafy.Translator; namespace…
Adam
  • 3,872
  • 6
  • 36
  • 66
1
vote
1 answer

Cudafy.Net System.ComponentModel.Win32Exception: The system cannot find the file specified

I downloaded cudafy here: https://github.com/lepoco/CUDAfy.NET/releases/tag/v.1.0.0. I use VS 2022, .NET 4.8. When executing this code, I get System.ComponentModel.Win32Exception. CudafyModes.Target = eGPUType.Cuda; …
MrOlegus
  • 5
  • 2
1
vote
1 answer

how to fix "Cudafy get error 719 on CUDA"

[Cudafy] private static void LevenshteinGpu3(GThread thread, char[] source, char[] pattern, int firstDim, byte compareLength, byte[] dev_results) { int tid = thread.threadIdx.x + thread.blockIdx.x * thread.blockDim.x; …
1
vote
1 answer

How can I access a cudafied method from a different class?

So I have 2 classes, both classes call CudafyTranslator.Cudafy and cudafy their appropriate methods. The resulting modules are then added to the GPU. Why does cudafy keep giving me a compile exception when I call one cudafied method from one class,…
Jackson Tarisa
  • 298
  • 2
  • 9
1
vote
1 answer

How to convert function with nested for-loops to Cudafy.Net

I can't believe after all the research and reading I've done I am still not 100% clear on how to do this, so I must ask.. I am trying to get something like the following to run on a gpu card and I am using Cudafy.Net to generate the Cuda C…
1
vote
1 answer

Cuda/cudafy 3d indexing

Trying to get my head around cuda, after not grasping similar stackoverflow questions i decided to test out an example (i'm using cudafy.net for c# but the underlying cuda should be parsable) I want to do the following. Send a 4x4x4 matrix to the…
Adam
  • 2,845
  • 2
  • 32
  • 46