dgl: [Build] Failed to build labor sampling related code on windows_cu118

🐛 Bug

To Reproduce

Builder: vs2019 image

Expected behavior

Environment

  • DGL Version (e.g., 1.0): 1.1.x, master
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3):
  • OS (e.g., Linux): Windows
  • How you installed DGL (conda, pip, source):
  • Build command you used (if compiling from source): vs2019
  • Python version:
  • CUDA/cuDNN version (if applicable): cuda11.8
  • GPU models and configuration (e.g. V100):
  • Any other relevant information:

Additional context

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20

Most upvoted comments

You need to use this branch, their official release doesn’t contain the fix for the build error we encountered. It is here: https://github.com/NVIDIA/cccl/tree/branch/2.2.x

Let’s wait for a new release for now. If when we decide to cut a new release of DGL which incorporate this issue, let’s depend on the head on the main branch to fix this issue.

I will open a PR updating to the new version, we don’t have to merge it now. We can merge it when they officially announce the new release of CCCL.

I opened up an issue at the CCCL repository. https://github.com/NVIDIA/cccl/issues/327

let me try this

Hi @Rhett-Ying, that line has a static_assert, static_assert with no error message in 2nd argument is available only in c++17. We can fix it by adding a second argument such as “alignment requirement is not met!”. https://en.cppreference.com/w/cpp/language/static_assert