Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when open the project with vs2015 #4

Open
hzj020621 opened this issue Mar 17, 2020 · 10 comments
Open

error when open the project with vs2015 #4

hzj020621 opened this issue Mar 17, 2020 · 10 comments

Comments

@hzj020621
Copy link

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
Copy link
Author

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

@hzj020621
Copy link
Author

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

@hzj020621
Copy link
Author

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

            }

@kunzmi
Copy link
Owner

kunzmi commented Mar 17, 2020

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
Copy link
Author

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
Copy link
Author

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

@hzj020621
Copy link
Author

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
Copy link
Owner

kunzmi commented Mar 17, 2020

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

@hzj020621
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants