New Post: Visual Profiler (NVVP.exe)
Hi Make sure your c# strings are properly escaped. For instance, use the @ prefix: [DllImport(@"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\bin\cudart64_70.dll")]public static extern...
View ArticleNew Post: Visual Profiler (NVVP.exe)
Works great now, One more detail for anyone following this thread. make sure you add the following two usings:using System.Runtime.InteropServices; using GASS.CUDA; FYI: I structure things so that all...
View ArticleNew Post: Compile exception: function acosf, sqrtf declared implicitly
Hello, Whenever I try to run my application, I often get stuck with a Cudafy.CudafyCompileException, which seems to appear and dissapear at random. The Innerexception message always contains the same...
View ArticleNew Post: Compile exception: function acosf, sqrtf declared implicitly
Hi It's odd, since there's no sqrtf and acosf functions in the opencl 1.1 spec:https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/mathFunctions.html Could you show us the part of the cudafy...
View ArticleNew Post: Compile exception: function acosf, sqrtf declared implicitly
Nick: Hi, you might want to include the following in the opencl header text:#define sqrtf(x) sqrt(((float)x)) #define cosf(x) cos(((float)x)) #define sinf(x) sin(((float)x)) #define powf(x, y)...
View ArticleNew Post: OutOfMemoryException in CudafyByExample
Can't find any thread on this one.... Like many others I am struggling to get Cuda to work, so I switched to OpenCL. Works fine except or running into an out of memory exception on the grapics card. I...
View ArticleCreated Unassigned: Access violation in GetDeviceProperties() during unit...
Hi,I am writing unit tests of cudafy code, however during the call to GetDeviceProperties() method I am getting access violation exception:> An exception of type 'System.AccessViolationException'...
View ArticleCommented Unassigned: Access violation in GetDeviceProperties() during unit...
Hi,I am writing unit tests of cudafy code, however during the call to GetDeviceProperties() method I am getting access violation exception:> An exception of type 'System.AccessViolationException'...
View ArticleCommented Unassigned: Detects GPU but fails to compile? [1008]
Hi, So it seems to work until I run the cuda test where I get the following output:> Platform=x64Checking for CUDA SDK at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin\nvccCUDA SDK...
View ArticleNew Post: Black screen when running moving window model
When running the GPU code below I get a black screen. Graphics card: Nvidia Quadro K620. The code is not complete, but the critical stuff is included. Problem description: A moving circular window...
View ArticleNew Post: Black screen when running moving window model
Could it be that your code makes intensive use of GPU and takes a long time to execute? If so that could be the cause. Options: dedicate a GPU for processing or split up your algorithm such that each...
View ArticleNew Post: Black screen when running moving window model
Do you have any newbie example for how to dedicate a gpu for processing?
View ArticleNew Post: Black screen when running moving window model
Don't plug a monitor into the GPU you want to dedicate.
View ArticleNew Post: Issues with multithreading
Hi, What is the recipe for accessing the GPU within multiple threads? I have GPU code which runs from multiple threads created by a task scheduler. In the UI thread I call gpu.EnableMultithreading and...
View ArticleNew Post: Issues with multithreading
I read some posts here and thought that maybe I needed to reload the module but, even with that...
View ArticleNew Post: Issues with multithreading
It seems to work if I remove the Lock() and Unlock() calls from the above code, but I'm not sure if it's safe to leave it like that.
View ArticleNew Post: Black screen when running moving window model
I forgot to mention that the problem is not only a black screen, but a Cudafy ErrorUnknown exception occurs. Tried to unplug the monitor from the GPU used for processing, but the problem persists.
View ArticleNew Post: Black screen when running moving window model
Hi Is nbRows=6784 ? Anyhow, your problem is here: gpu.Launch(nbRows, 1, ... you are launching 6784 blocks of 1 thread each. Btw, if you were to do the opposite (gpu.Launch(1, nbRows, ...) , in theory...
View ArticleNew Post: Creating Streams on Device
Just wondering if it's possible to create streams on the device so that you can launch new child grids (using dynamic parallelism) on separate streams to maximise concurrency??
View ArticleNew Post: Creating Streams on Device
You may need to dig around a little in the source code but dynamic parallelism is supported on suitable devices.
View Article