Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

MSVC build fails due to cub symlink: fatal error C1083: Cannot open include file: '../config.cuh': No such file or directory #1328

@bjude

Description

@bjude

With a freshly cloned thrust (and recursively cloned CUB) i'm getting 'file not found' errors in CUB:

  Compiling CUDA source file headers\thrust\adjacent_difference.h.cu...

  F:\code\thrust\build>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" -gencode=arch=compute_80
  ,code=\"compute_80,compute_80\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm
  _37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\
  " -gencode=arch=compute_53,code=\"sm_53,compute_53\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -gencode=arch
  =compute_61,code=\"sm_61,compute_61\" -gencode=arch=compute_62,code=\"sm_62,compute_62\" -gencode=arch=compute_70,cod
  e=\"sm_70,compute_70\" -gencode=arch=compute_72,code=\"sm_72,compute_72\" -gencode=arch=compute_75,code=\"sm_75,compu
  te_75\" -gencode=arch=compute_80,code=\"sm_80,compute_80\" --use-local-env -ccbin "F:\Program Files (x86)\Microsoft V
  isual Studio\2019\Preview\VC\Tools\MSVC\14.28.29331\bin\HostX64\x64" -x cu   -IF:\code\thrust -IF:\code\thrust\depend
  encies\cub -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include"     --keep-dir x64\Debug -maxrregcoun
  t=0  --machine 64 --compile -cudart static -Xcudafe=--display_error_number -Wno-deprecated-gpu-targets -Xcudafe=--pro
  mote_warnings -Xcompiler="/EHsc -Zi -Ob0 /WX /wd4244 /wd4267 /wd4800 /wd4146 /wd4494 /bigobj" -g   -D_WINDOWS -DTHRUS
  T_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA -DNOMINMAX -D"CMAKE_INTDIR=\"De
  bug\"" -D"CMAKE_INTDIR=\"Debug\"" -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdthrust.headers.dir\Debug\thrust.header
  s.pdb /FS /Zi /RTC1 /MDd /GR" -o thrust.headers.dir\Debug\adjacent_difference.h.obj "F:\code\thrust\build\headers\thr
  ust\adjacent_difference.h.cu"
F:\code\thrust\cub\block\block_exchange.cuh(36): fatal error C1083: Cannot open include file: '../config.cuh': No such
file or directory [F:\code\thrust\build\thrust.headers.vcxproj]
  adjacent_difference.h.cu
F:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.tar
gets(772,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe" -genco
de=arch=compute_80,code=\"compute_80,compute_80\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=comp
ute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_
52,compute_52\" -gencode=arch=compute_53,code=\"sm_53,compute_53\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -
gencode=arch=compute_61,code=\"sm_61,compute_61\" -gencode=arch=compute_62,code=\"sm_62,compute_62\" -gencode=arch=comp
ute_70,code=\"sm_70,compute_70\" -gencode=arch=compute_72,code=\"sm_72,compute_72\" -gencode=arch=compute_75,code=\"sm_
75,compute_75\" -gencode=arch=compute_80,code=\"sm_80,compute_80\" --use-local-env -ccbin "F:\Program Files (x86)\Micro
soft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29331\bin\HostX64\x64" -x cu   -IF:\code\thrust -IF:\code\thrust\de
pendencies\cub -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include"     --keep-dir x64\Debug -maxrregco
unt=0  --machine 64 --compile -cudart static -Xcudafe=--display_error_number -Wno-deprecated-gpu-targets -Xcudafe=--pro
mote_warnings -Xcompiler="/EHsc -Zi -Ob0 /WX /wd4244 /wd4267 /wd4800 /wd4146 /wd4494 /bigobj" -g   -D_WINDOWS -DTHRUST_
HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA -DNOMINMAX -D"CMAKE_INTDIR=\"Debug\
"" -D"CMAKE_INTDIR=\"Debug\"" -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Fdthrust.headers.dir\Debug\thrust.headers.pdb
/FS /Zi /RTC1 /MDd /GR" -o thrust.headers.dir\Debug\adjacent_difference.h.obj "F:\code\thrust\build\headers\thrust\adja
cent_difference.h.cu"" exited with code 2. [F:\code\thrust\build\thrust.headers.vcxproj]

Here is the configure output:

-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
-- The CXX compiler identification is MSVC 19.28.29331.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: F:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/MSVC/14.28.29331/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Thrust: F:/code/thrust/thrust/cmake/thrust-config.cmake (found version "1.11.0.0")
-- Found CUB: F:/code/thrust/dependencies/cub/cub/cmake/cub-config.cmake (found version "1.11.0.0")
-- Thrust: TargetInfo: thrust: (1.11.0.0)
-- Thrust: TargetInfo: thrust > IMPORTED: TRUE
-- Thrust: TargetInfo: thrust > INTERFACE_LINK_LIBRARIES: Thrust::CPP::Host;Thrust::CUDA::Device
-- Performing Test CXX_FLAG__W3
-- Performing Test CXX_FLAG__W3 - Success
-- Performing Test CXX_FLAG__WX
-- Performing Test CXX_FLAG__WX - Success
-- Performing Test CXX_FLAG__wd4244
-- Performing Test CXX_FLAG__wd4244 - Success
-- Performing Test CXX_FLAG__wd4267
-- Performing Test CXX_FLAG__wd4267 - Success
-- Performing Test CXX_FLAG__wd4800
-- Performing Test CXX_FLAG__wd4800 - Success
-- Performing Test CXX_FLAG__wd4146
-- Performing Test CXX_FLAG__wd4146 - Success
-- Performing Test CXX_FLAG__wd4494
-- Performing Test CXX_FLAG__wd4494 - Success
-- Performing Test CXX_FLAG__bigobj
-- Performing Test CXX_FLAG__bigobj - Success
-- Enabling Thrust configuration: cpp.cuda.cpp14
-- CPP system found?  TRUE
-- CUDA system found? TRUE
-- TBB system found?  FALSE
-- OMP system found?  FALSE
-- The CUDA compiler identification is NVIDIA 11.0.221
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.0/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Thrust: Enabled CUDA architectures: sm_35 sm_37 sm_50 sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75 sm_80 compute_80
sm_53 does not support RDC. Targets that require RDC will be built without support for this architecture.
sm_62 does not support RDC. Targets that require RDC will be built without support for this architecture.
sm_72 does not support RDC. Targets that require RDC will be built without support for this architecture.
-- Configuring done
-- Generating done
-- Build files have been written to: F:/code/thrust/build

Metadata

Metadata

Assignees

Labels

P0: must haveAbsolutely necessary. Critical issue, major blocker, etc.release: breaking changeInclude in "Breaking Changes" section of release notes.type: bug: functionalDoes not work as intended.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions