New Post: Creating Streams on Device
Yes, I've been using dynamic parallelism successfully but (I think) the current support in Cudafy does not allow you to specify a stream for the child kernel. The Cuda programming guide appears to...
View ArticleNew Post: Black screen when running moving window model
Thanks for your efforts to help! Yes, nbRows = 6784. The raster represents a large geographic area. I have tried with: gridSize = nbCols*nbRows/512 = 46110 , and blockSize = 512 Have also tried to make...
View ArticleNew Post: Black screen when running moving window model
Hi 46110 is huge, try, shall we say, [gridsize=512, blocksize=512], and call your kernel several times (make sure you call gpu.Synchronize() between them). Pass as an extra argument to the kernel with...
View ArticleNew Post: Black screen when running moving window model
Hi How does the kernel function know which block to work with when looping? I have looked over the examples but could not identify one that resembles this case. Is there any chance you could give me a...
View ArticleNew Post: Black screen when running moving window model
Hi It seems you need to understand the basics, I recommend you read (at least) this chapter of the cuda toolkit docs:https://docs.nvidia.com/cuda/cuda-c-programming-guide/#thread-hierarchy
View ArticleNew Post: Roslyn + NVRTC
What would be involved in getting CUDAfy to use Roslyn to compile C# code and NVRTC to compile Cuda kernels? I'm asking because I need runtime compilation for my project, and I'm considering modifying...
View ArticleNew Post: Roslyn + NVRTC
Hi Just curious: AFAIK CUDAfy doesn't compile c#. It's the other way around, really. Does Roslyn offer decompilation functionality?
View ArticleNew Post: Roslyn + NVRTC
Well, runtime compilation would require a C# compiler as the first step. The pipeline would be: Compile C# (Roslyn) -> Decompile -> Emit Cuda code -> Compile kernel (NVRTC) Of course, the last...
View ArticleNew Post: Roslyn + NVRTC
IMHO I believe the Roslyn->LLVM step to be extremely hard to write and to make it work properly. LLVM's internals and configurations are a perfect nightmare. On the oother hand, NVRTC seems like a...
View ArticleNew Post: Roslyn + NVRTC
NVVM, thankfully, skips over you having to mess with LLVM config at all - just emit NVVM IR (basically LLVM IR, but with various platform specific things added and removed), and call...
View ArticleNew Post: Roslyn + NVRTC
Very interesting reply, ty Although there are certainly merits on the LLVM IR pathway (it would be nice and tidy!), which as you said would be adaptable for both opencl and cuda (the devil is in the...
View ArticleNew Post: Roslyn + NVRTC
My understanding of NSight with NVVM is that the debugger just works, provided you give it the proper DWARF annotations in the generated NVVM IR, and figure out how to point it to the right file for...
View ArticleNew Post: Black screen when running moving window model
I am trying to understand the basics but I find it hard. That it why I call for help. I have not found examples, especially with 2D arrays. I have tried to solve it with the following code but the...
View ArticleReviewed: CUDAfy V1.29 (10 29, 2015)
Rated 5 Stars (out of 5) - I'm use CUDAfy 1.26 yet.
View ArticleReviewed: CUDAfy V1.29 (10 29, 2015)
Rated 5 Stars (out of 5) - I'm using CUDAfy 1.26 yet.
View ArticleNew Post: Cudafy in VB.NET
I´m getting some problems in port CUDAFy to VB.NET. I´m utilizing VS2013 (vb.net) and CUDAFy 1.29 Could you please try to help me understand what to do? My doubts: 1- How can I serialize the function...
View ArticleCreated Unassigned: Does CUDAfy run in VB.NET? [1140]
I´m getting some problems in port CUDAFy to VB.NET.I´m utilizing VS2013 (vb.net) and CUDAFy 1.29Could you please try to help me understand what to do?My doubts:1- How can I serialize the function of...
View ArticleNew Post: Looking for motion detection example that runs on the GPU
I can't seem to find a motion detection example in CUDAfy.NET C#. Motion Detection is very straightforward and can all be done in parallel so it should be super common and available in a library like...
View ArticleCreated Unassigned: CUDA directory not found again [1141]
I'm sorry to repeat this question, but I haven't found an answer that works yet.I've installed CUDA 7.0.nvcc is at C:\Apps\cuda_v7.0\toolkit\bin\nvcc.exeCUDA_PATH =...
View ArticleNew Post: Problem on storing ulong
Trying to implement the followwing method [Cudafy] public static ulong ByteArrayToUlong(int n, byte[] array) { int i; ulong k = 0; for (i = 0; i < n; k += array[i++]) k <<= 8; return k; } I...
View Article