stotko / stdgpu

stdgpu: Efficient STL-like Data Structures on the GPU
https://stotko.github.io/stdgpu/
Apache License 2.0
1.16k stars 83 forks source link

Compatibility with Thrust? #310

Closed jiapei-nexera closed 2 years ago

jiapei-nexera commented 2 years ago

Describe the bug Current stdgpu seems to be NOT compatible with NVidia Thurst?

Steps to reproduce

git clone https://github.com/stotko/stdgpu.git
mkdir build
cd build
cmake ../

Expected behavior Successfully built and run.

Actual behavior No matter GCC or Clang, both failed.

System (please complete the following information):

stotko commented 2 years ago

I locally tested building with GCC 11.2 + CUDA 11.7 on Ubuntu 22.04 which worked without any issues. According to the CUDA download website (network install method), CUDA 11.6 is only available for Ubuntu 18.04 and 20.04 which means that the most recent Ubuntu 22.04 is not supported by this version.

Could you upgrade to CUDA 11.7 and try building the libary again?

jiapei-nexera commented 2 years ago

@stotko

Looks like somebody else met the same issue as mine ?

https://github.com/allisonvacanti/cub/commit/800c92a219121804009ddfc388ce7151ac5251d9

And, tested... By this single modification, stdgpu built successfully...

stotko commented 2 years ago

Thanks for testing and the pointer to cub. Looking at the list of cub releases, it seems like version 1.15 is affected by this bug and shipped with CUDA 11.6, whereas version 1.16 contains the mentioned fix and seems to be part of CUDA 11.7. So this supports the observed behavior.

Closing this issue as this bug is not directly caused by stdgpu.