Skip to content

Conversation

yhmtsai
Copy link
Member

@yhmtsai yhmtsai commented Sep 9, 2025

thrust has the issue when the kernel are compiled in different shared library.
We have used THRUST_CUB_WRAPPED_NAMESPACE to avoid the issue between Ginkgo and the other library.
However, this issue still bothers us between test and ginkgo library.
We need bitvector kernel implementation in header because of #1832

To work around this issue, I decide to pre-compile the kernels for tests and avoid any thrust kernel compilation from test.
Another workaround is to skip this test when building shared library with CUDA < 12.4
CCCL waives this THRUST_CUB_WRAPPED_NAMESPACE in 2.3.0 and CUDA 12.4 use CCCL 2.3.1 already.
related issue: NVIDIA/cccl#655
From the issue, this issue happens after cub 2.0.0.

It is raised from #1841 cuda 12.2 test

@yhmtsai yhmtsai requested a review from a team September 9, 2025 16:01
@yhmtsai yhmtsai self-assigned this Sep 9, 2025
@yhmtsai yhmtsai added 1:ST:ready-for-review This PR is ready for review is:bugfix This fixes a bug labels Sep 9, 2025
@ginkgo-bot ginkgo-bot added reg:build This is related to the build system. mod:cuda This is related to the CUDA module. mod:hip This is related to the HIP module. labels Sep 9, 2025
Copy link
Member

@upsj upsj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for fixing this!

@yhmtsai yhmtsai added 1:ST:ready-to-merge This PR is ready to merge. and removed 1:ST:ready-for-review This PR is ready for review labels Sep 10, 2025
@yhmtsai yhmtsai added the 1:ST:no-changelog-entry Skip the wiki check for changelog update label Sep 10, 2025
@yhmtsai yhmtsai merged commit c668566 into develop Sep 10, 2025
20 of 23 checks passed
@yhmtsai yhmtsai deleted the fix_bitvector branch September 10, 2025 23:24
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:no-changelog-entry Skip the wiki check for changelog update 1:ST:ready-to-merge This PR is ready to merge. is:bugfix This fixes a bug mod:cuda This is related to the CUDA module. mod:hip This is related to the HIP module. reg:build This is related to the build system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants