Skip to content

[BUG] Unit tests fault when CUB Cache Disablement is Disabled #773

@tmartin-gh

Description

@tmartin-gh

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 <30670611+cliffburdick@users.noreply.github.com>
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions