Open borg323 opened 4 years ago
This is probably related. If we bypass the wrong include path (by passing -Dcudnn=true
which adds the correct -same- include path) we get link errors because the (still wrong) library path is used unquoted. See C:/Program Files/NVIDIA
at the end of the penultimate line of the following fragment:
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\link.exe /ERR
ORREPORT:QUEUE /OUT:".\lc0.exe" /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shel
l32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v
10.0/lib/x64/cublas.lib" "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib" "C:/Program Fil
es/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudart.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32
.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "subprojects\zlib-1.2.11\libz.a" /MANIFEST /MANIFESTUA
C:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FULL /PDB:".\lc0.pdb" /SUBSYSTEM:CONSOLE /LTCG:incremen
tal /TLBID:1 /ENTRY:"mainCRTStartup" /RELEASE /DYNAMICBASE /NXCOMPAT /IMPLIB:".\lc0.lib" /MACHINE:X64 /OPT:REF C:/Pro
gram Files/NVIDIA "lc0@exe\common_kernels.obj"
Describe the bug The correct path would be
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include
but instead onlyC:/Program Files/NVIDIA
is used.To Reproduce This is a build of lc0 (https://github.com/LeelaChessZero/lc0) with
-Dopencl=true
. The offending line isopencl_framework=dependency('OpenCL', required: false)
.Expected behavior As above
system parameters
meson --version
Every version since https://github.com/mesonbuild/meson/commit/1cb6177f033dcdf59f354376c509f16906165a97(did a git bisect) that fixed the paths on windows.ninja --version
if it's a Ninja build Not a ninja build.The
meson-log.txt
contains the following:Seems the
GPU
part of the path matches a property name.