Questions tagged [managed-cuda]

managedCuda is a framework allowing usage of CUDA in a managed application (e.g. C#)

http://kunzmi.github.io/managedCuda/

managedCuda allows usage of CUDA GPU computing capabilities from within a managed (.net) framework. managedCuda includes interfaces to the CUDA runtime API as well as various CUDA libraries

19 questions
8
votes
1 answer

Advantage of using a CUDA Stream

I am trying to understand where a Stream might help me with processing multiple Regions of Interest on a video frame. If using NPP functions that support a stream, is this a case where one would launch as many streams as there are ROIs? Possibly…
AeroClassics
  • 1,074
  • 9
  • 19
5
votes
1 answer

Update a D3D9 texture from CUDA

I’m working on a prototype that integrates WPF, Direct3D9 (using Microsoft’s D3DImage WPF class), and CUDA (I need to be able to generate a texture for the D3DImage on the GPU). The problem is, CUDA doesn’t update my texture. No error codes are…
Soonts
  • 20,079
  • 9
  • 57
  • 130
2
votes
1 answer

Will there be an update to ManagedCuda for version 9.0 libraries?

The latest changes to ManagedCuda were made about 5 months ago. Is the project still supported? Will there be updates? If not, what is a good alternative?
2
votes
1 answer

Profiling managedCuda in Nsight or Visual Profiler

I'm trying to profile an CUDA-application written in C# with managedCuda using either Nsight Visual Studio Edition or Visual Profiler. Both profilers work well with a plain C++ CUDA app. To test the profilers with managedCuda I want to profile the…
Seb
  • 946
  • 1
  • 8
  • 16
1
vote
1 answer

ManagedCUDA : Object Contain non-primitve/non-blitable

Here I come with some trouble using managedCUDA, I got an application written in CUDA C/C++ and I wanted to launch it using managedCUDA. To begin with my problem : I got this error : Ungandled Exception: System.ArgumentException: Object contains…
1
vote
1 answer

ManagedCUDA: Pass struct parameter to kernel

Today, I'm trying to launch my CUDA C/C++ program from a C# application. So, I did some research on the web, but I didn't found that much information. I only saw the "GitHub" but, no... So I've got a Kernel defined like follow : (that's an…
1
vote
1 answer

Bind CUDA output array/surface to GL texture in ManagedCUDA

I'm currently attempting to connect some form of output from a CUDA program to a GL_TEXTURE_2D for use in rendering. I'm not that worried about the output type from CUDA (whether it'd be an array or surface, I can adapt the program to that). So the…
MarijnS95
  • 4,703
  • 3
  • 23
  • 47
1
vote
1 answer

x64 vs x86 for CUDA

In this thread x64 allows less threads per block than Win32? there was a questions about running out of registers. I was under the impression the Nvidia has dropped support for x86 in CUDA 7.5 and beyond. This may be a foolish question but does that…
AeroClassics
  • 1,074
  • 9
  • 19
0
votes
1 answer

Is it normal for complex array fft-ifft pair radically change values on each iteration?

So simple 3D fft-ifft pair on array of complex values code here: using System; using System.Diagnostics; using System.Numerics; using System.Runtime.InteropServices; using ManagedCuda.BasicTypes; using ManagedCuda; using ManagedCuda.CudaFFT; using…
DuckQueen
  • 772
  • 10
  • 62
  • 134
0
votes
0 answers

ManagedCuda kernel cannot find curand.h

I'm trying to use ManagedCuda to compile a kernel that uses the currand library. However, I cannot find a way to tell the CudaRuntimeCompiler how to find curand.h. If I remove the '#include ' line, everything works. However with it I…
BJury
  • 2,526
  • 3
  • 16
  • 27
0
votes
1 answer

Can I initialize string[] or list in managedCuda?

I want to use a string matching in managedCuda. But how can I initialized it? i've tried using C# version, here's the examples: stringAr = new List(); stringAr.Add("you"); stringAr.Add("your"); stringAr.Add("he"); …
Thomas Yap
  • 15
  • 3
0
votes
1 answer

How to spawn process C++ from C#?

I've a library in C++ to run a string matching (PFAC library)PFAC-lib. How do i run this library from WinForm C#? I also used managedCuda to run cuda code from my C#. Any idea?
Thomas Yap
  • 15
  • 3
0
votes
1 answer

Looping over data in CUDA kernel causes app to abort

issue: As I increase the amount of data that is being processed inside of loop that is inside of CUDA kernel - it causes the app to abort! exception: ManagedCuda.CudaException: 'ErrorLaunchFailed: An exception occurred on the device while…
Alex
  • 4,607
  • 9
  • 61
  • 99
0
votes
1 answer

Summing up elements in array using managedCuda

Problem Description I try to get a kernel summing up all elements of an array to work. The kernel is intended to be launched with 256 threads per block and an arbitary number of blocks. The length of the array passsed in as a is always a multiple of…
L. Riemer
  • 644
  • 8
  • 13
0
votes
1 answer

C# Retrieve Cuda Version

Hello I need to retrieve the cuda version whether its cuda8 or cuda9. anyone know a way I could tell? I heard cuda managed would tell me but all it did was tell me the driver version "361.xx"
Ragekilln
  • 1
  • 2
1
2