Questions tagged [cuda.net]

CUDA.net is a cross-platform API allowing .NET applications to use CUDA (NVIDIA's parallel computing architecture) functionality.

The library and its documentation can be found at http://www.hoopoe-cloud.com/Solutions/CUDA.NET/Default.aspx

16 questions
46
votes
4 answers

CUDA Driver API vs. CUDA runtime

When writing CUDA applications, you can either work at the driver level or at the runtime level as illustrated on this image (The libraries are CUFFT and CUBLAS for advanced math): (source: tomshw.it) I assume the tradeoff between the two are…
Morten Christiansen
  • 19,002
  • 22
  • 69
  • 94
7
votes
2 answers

Hello-world for CUDA.Net

I'm trying to write a childish app with CUDA.Net, but I'm out of luck. I've figured out to: using GASS.CUDA; // ... var c = new CUDA(); // c.Launch(myfunc); // ???? how ??? myfunc apparently should be of type GASS.CUDA.Types.CUfunction but I…
bohdan_trotsenko
  • 5,167
  • 3
  • 43
  • 70
7
votes
3 answers

installing Cuda NVIDIA Graphic Driver failed

I have two laptops: a Sony vaio z-series (vocz1) & S series. The first one has Geforce with cuda model GT330M and second one has GT 640M LE. When I am trying install CUDA Geforce driver from this site http://developer.nvidia.com/cuda/cuda-downloads …
Amir
  • 1,919
  • 8
  • 53
  • 105
6
votes
3 answers

Allocate constant memory

I'm trying to set my simulation params in constant memory but without luck (CUDA.NET). cudaMemcpyToSymbol function returns cudaErrorInvalidSymbol. The first parameter in cudaMemcpyToSymbol is string... Is it symbol name? actualy I don't understand…
Vladimir
  • 131
  • 2
  • 10
5
votes
4 answers

Getting array subsets efficiently

Is there an efficient way to take a subset of a C# array and pass it to another peice of code (without modifying the original array)? I use CUDA.net which has a function which copies an array to the GPU. I would like to e.g. pass the function a 10th…
Morten Christiansen
  • 19,002
  • 22
  • 69
  • 94
4
votes
2 answers

Context migration in CUDA.NET

I'm currently using CUDA.NET library by GASS. I need to initialize cuda arrays (actually cublas vectors, but it doesn't matters) in one CPU thread and use them in other CPU thread. But CUDA context which holding all initialized arrays and loaded…
2
votes
1 answer

KMLib Crashing in GTX 770 GPU

I found the KMLib on the internet and I found it very interesting. But when running the sample application an error appears: "GASS.CUDA.CUDAException" "Error Invalid Source". The exception occurs in the method: protected void InitCudaModule () …
Felipe
  • 31
  • 2
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
2
votes
2 answers

OpenCl equivalent of finding Consecutive indices in CUDA

In CUDA to cover multiple blocks, and thus incerase the range of indices for arrays we do some thing like this: Host side Code: dim3 dimgrid(9,1)// total 9 blocks will be launched dim3 dimBlock(16,1)// each block is having 16 threads //…
gpuguy
  • 4,607
  • 17
  • 67
  • 125
1
vote
1 answer

Why does Item set not work as expected?

type dMatrix with member t.Item with get(a: int, b: int) = t.dArray.[b+a*t.num_cols |> SizeT] and set(a: int, b: int) (value: floatType) = t.dArray.[b+a*t.num_cols |> SizeT] <- value member t.setItem(a: int, b: int) (value:…
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
1
vote
2 answers

Passing Enum to a Kernel using Cudafy .Net

I was using CUDA C for evaluation and now started using cudafy .net. Lets assume that I have the following enum [Cudafy] public enum MyEnum { mon = 0,tue=1,wed=2,thu=3,fri=4,sat=5 } I want to pass it to a Kernel [Cudafy] …
Arjun K R
  • 427
  • 1
  • 6
  • 25
1
vote
2 answers

Interpolation with CUDA Texture memory

I would like to use the Texture Memory for Interpolation of Data. I have 2 Arrays (namely A[i] and B[i]) and I would want to interpolate Data between them. I thought I could bind them to Texture Memory and set the interpolation but I am not sure how…
Silve2611
  • 2,198
  • 2
  • 34
  • 55
0
votes
1 answer

cuda.net is based in CUDA Runtime or CUDA Driver?

I'm writing an article about CUDA and their wrappers and right now I'm stuck with what layer of CUDA is used by CUDA.NET or JCUDA. As this suggests: (source: tomshw.it) I guess as my program suggests when i use CUBLAS cublas = new CUBLAS(cuda);…
Custodio
  • 8,594
  • 15
  • 80
  • 115
0
votes
2 answers

Will CUDA speed up moving lots of data from Excel sheets into a database?

I'm developing a program that moves a lot of data from Excel Sheets to a database. Is it possible for something like CUDA to speed up the process? Is it possible for me to use it to open more than one sheet at once and have different cores sharing…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
1 answer

CUDA compare arrays

Trying to make an app that will compare 1-to-multiple bitmaps. there is one reference bitmap and multiple other bitmaps. Result from each compare should be new bitmap with diffs. Maybe comparing bitmaps rather as textures than arrays? My biggest…
1
2