kunzmi / ImageStackAlignator

Implementation of Google's Handheld Multi-Frame Super-Resolution algorithm (from Pixel 3 and Pixel 4 camera)
GNU General Public License v3.0
399 stars 66 forks source link

error when open the project with vs2015 #4

Open hzj020621 opened 4 years ago

hzj020621 commented 4 years ago

Kernels\Kernels.vcxproj: The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?LinkId=441332&projecttype=8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942

hzj020621 commented 4 years ago

i open the project successfully with vs2017, by modfied the CUDA path in the Kernel.vcxproj

hzj020621 commented 4 years ago

and i changed the version of the cuda as "CudaContext.DirectXVersion.D3D11"

hzj020621 commented 4 years ago

but still has a running time erroer: catch (CudaException ex) { MessageBox.Show(ex.Message); //No Cuda device found for this Direct3D9 device

            }
kunzmi commented 4 years ago

The project is made for Visual Studio 2019 and should by compatible with 2017. I used Cuda in version 10.1, so you'd need that version for the Cuda kernels (or modify the project file). The image viewer is made for DirectX9 and not 11, so keep that in version 9 (WPF is version 9...)

hzj020621 commented 4 years ago

The project is made for Visual Studio 2019 and should by compatible with 2017. I used Cuda in version 10.1, so you'd need that version for the Cuda kernels (or modify the project file). The image viewer is made for DirectX9 and not 11, so keep that in version 9 (WPF is version 9...)

do you have wechat or qq, or other Social software for convenience?

hzj020621 commented 4 years ago

i install the cuda 10.1, but still the same error. could you help me?

hzj020621 commented 4 years ago

i have installed the cuda 10.1, and changed the path of cuda 10.1 in the project file of kernels; and i also keep the DirectX9. but it still with the same runtime error. the stack is CUmodule modDebayer = _ctx.LoadModulePTX("DeBayerKernels.ptx");

myController.InitCuda(imagePresenter.CudaContext);

try { cudaDevices = CudaContext.GetDirectXDevices(_device.ComPointer, CUd3dXDeviceList.All, CudaContext.DirectXVersion.D3D9); _deviceFound = cudaDevices.Length > 0;

                break;
            }
            catch (CudaException ex)
            {
                MessageBox.Show(ex.Message);
kunzmi commented 4 years ago

See here: link You likely also use two different GPUs, one for your screen, one for CUDA?

hzj020621 commented 4 years ago

Thank you very much! my computer does have two graphics cards. one is Intel, and other is Nvida. I switch to the GPU mode with the Nvidia Contor , and noe it works.

JianWang-CMU commented 4 years ago

I have the same problem. How to "switch to the GPU mode with the Nvidia Contor "? Thanks!