MatX
MatX copied to clipboard
[BUG] Unit tests fault when CUB Cache Disablement is Disabled
Describe the Bug Unit tests throw an instance of std::bad_any_cast when compiling with MATX_DISABLE_CUB_CACHE=OFF
Note: Google Test filter = ReductionTestsNumericNoHalfAllExecs/0.Sum*
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ReductionTestsNumericNoHalfAllExecs/0, where TypeParam = cuda::std::__4::tuple<unsigned int, matx::cudaExecutor>
[ RUN ] ReductionTestsNumericNoHalfAllExecs/0.Sum
terminate called after throwing an instance of 'std::bad_any_cast'
To Reproduce
cmake -DCMAKE_CUDA_ARCHITECTURES=80 -DCMAKE_BUILD_TYPE=Debug -DMATX_BUILD_EXAMPLES=ON -DMATX_BUILD_TESTS=ON /nfs/scratch.timothym_ate_1/MatX3 -DMATX_DISABLE_CUB_CACHE=OFF
make -j matx_test
./test/matx_test --gtest_filter="ReductionTestsNumericNoHalfAllExecs/0.Sum*"
Tested with
commit 4528b945a493b9c245cf602cc109a0f185bfed3f (HEAD -> main, origin/main, origin/HEAD)
Author: Cliff Burdick <[email protected]>
Date: Thu Oct 17 08:41:12 2024 -0700
Cleaning up non-const operator() to avoid code duplication (#769)
Expected Behavior Unit tests should all pass.
Code Snippets N/A
System Details (please complete the following information):
- OS: Ubuntu 22.04
- CUDA version: 12.5.1
- g++ version: 11.4.0
- nvcc version: 12.5.82
Additional Context N/A