Can't built with Visual Studio 2019 and CUDA 10.1
Without enabling cuda, the project works well. But I have problem with compiling the project with CUDA 10.1 in VS 2019,the error says
State Error MSB3721 The command“"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe"
-gencode=arch=compute_30,code=\"sm_30,compute_30\"
--use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64" -x cu -rdc=true
-I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\/include"
-I"E:\Project\vtk-m" -I"E:\Project\vtkm-build\include" -I"E:\Project\vtk-m\vtkm\thirdparty\taotuple" -I"E:\Project\vtk-m\vtkm\thirdparty\optionparser" -I"E:\Project\vtk-m\vtkm\thirdparty\diy" -I"E:\Project\vtk-m\vtkm\thirdparty\lcl\vtkmlcl" -I"E:\Project\vtk-m\vtkm\thirdparty\loguru" -I"C:\Program Files (x86)\Microsoft SDKs\MPI\Include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include"
--keep-dir x64\Debug -maxrregcount=0
--machine 64 --compile -cudart static -Xnvlink=--suppress-stack-size-warning -Xcudafe=--diag_suppress=1394,--diag_suppress=766 -Xcudafe=--display_error_number /Gy --expt-relaxed-constexpr
-Xcompiler="/EHsc -Zi -Ob0 -wd4702,-wd4505 /Gy /bigobj" -g -D_WINDOWS -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D"CMAKE_INTDIR=\"Debug\"" -DWIN32 -D_WINDOWS -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D"CMAKE_INTDIR=\"Debug\"" -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdvtkm_cont.dir\Debug\vtkm_cont.pdb /FS /Zi /RTC1 /MDd /GR" -o vtkm_cont.dir\Debug\ArrayHandleVirtual.obj "E:\Project\vtk-m\vtkm\cont\ArrayHandleVirtual.cxx"”exited with code 1. vtkm_cont C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.1.targets 764
and the VS output says
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
I am new to cuda and I don't know how to fix it. I have been working on it for weeks and I am sorry to bother you.