Closed mm93v closed 4 years ago
It sounds like that the CudaContext (_ctx) is null. The context is created during startup inside the DirectX-Control that's supposed to show the images. Apparently this creation fails and WPF catches the exception. You should see some message on the console in VisualStudio, though. Can it be that you have two video cards? One for the screen, one for Cuda?
You are right! I have two graphics cards, Intel Graphics 630 for display and RTX 2080 MaxQ for CUDA. How do I specify 2080 as the main card while executing the project?
Thank you in advance.
Hi, I switch to GPU mode in my boot configuration and it works.
Thank you!
I have the same problem. How do I "switch to GPU mode in the boot configuration"? Thanks!
Hi, if you are using the Nvidia graphic card, you can follow the steps below.
Thanks! It works now!
Hi,
I build the three projects successfully and generate each ptx file in the correct location but it shows exception thrown as follows when I execute it
at ImageStackAlignatorController.cs, line 1004
CUmodule modDebayer = _ctx.LoadModulePTX("DeBayerKernels.ptx");
and output:
is it seems load ptx file failed?
(I'm developing in visual studio 2019 and CUDA toolkit 10.1 with .NET framework 4.7.2)