Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled mixed precision tests for SpMM and SpMV #910

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/00_sparse/Matmul.cu
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected:

template <typename T> class MatmulSparseTestsAll : public MatmulSparseTest<T> { };

TYPED_TEST_SUITE(MatmulSparseTestsAll, MatXFloatNonHalfTypesCUDAExec);
TYPED_TEST_SUITE(MatmulSparseTestsAll, MatXFloatNonComplexHalfTypesCUDAExec);

TYPED_TEST(MatmulSparseTestsAll, MatmulCOO) {
MATX_ENTER_HANDLER();
Expand Down
2 changes: 1 addition & 1 deletion test/00_sparse/Matvec.cu
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected:

template <typename T> class MatvecSparseTestsAll : public MatvecSparseTest<T> { };

TYPED_TEST_SUITE(MatvecSparseTestsAll, MatXFloatNonHalfTypesCUDAExec);
TYPED_TEST_SUITE(MatvecSparseTestsAll, MatXFloatNonComplexHalfTypesCUDAExec);

TYPED_TEST(MatvecSparseTestsAll, MatvecCOO) {
MATX_ENTER_HANDLER();
Expand Down
4 changes: 4 additions & 0 deletions test/include/test_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ using MatXFloatNonComplexNonHalfTuple = cuda::std::tuple<float, double>;
using MatXNumericNonHalfTuple = cuda::std::tuple<uint32_t, int32_t, uint64_t, int64_t, float, double,
cuda::std::complex<float>, cuda::std::complex<double>>;
using MatXFloatNonHalfTuple = cuda::std::tuple<float, double, cuda::std::complex<float>, cuda::std::complex<double>>;
using MatXFloatNonComplexHalfTuple = cuda::std::tuple<matx::matxFp16, matx::matxBf16, float, double,
cuda::std::complex<float>, cuda::std::complex<double>>;
using MatXComplexNonHalfTuple = cuda::std::tuple<cuda::std::complex<float>, cuda::std::complex<double>>;
using MatXNumericNonComplexTuple = cuda::std::tuple<uint32_t, int32_t, uint64_t, int64_t, float, double>;
using MatXComplexTuple = cuda::std::tuple<cuda::std::complex<float>, cuda::std::complex<double>,
Expand Down Expand Up @@ -138,6 +140,7 @@ using MatXDoubleOnlyTuple = cuda::std::tuple<double>;
using MatXAllTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXAllTuple, ExecutorTypesCUDAOnly>::type>::type;
using MatXFloatTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXFloatTuple, ExecutorTypesCUDAOnly>::type>::type;
using MatXFloatNonHalfTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXFloatNonHalfTuple, ExecutorTypesCUDAOnly>::type>::type;
using MatXFloatNonComplexHalfTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXFloatNonComplexHalfTuple, ExecutorTypesCUDAOnly>::type>::type;
using MatXFloatNonComplexTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXFloatNonComplexTuple, ExecutorTypesCUDAOnly>::type>::type;
using MatXFloatHalfTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXFloatHalfTuple, ExecutorTypesCUDAOnly>::type>::type;
using MatXNumericTypesCUDAExec = TupleToTypes<TypedCartesianProduct<MatXNumericTuple, ExecutorTypesCUDAOnly>::type>::type;
Expand All @@ -153,6 +156,7 @@ using MatXDoubleOnlyTypeCUDAExec = TupleToTypes<TypedCartesianProdu
// All executor types
using MatXNumericNonComplexTypesAllExecs = TupleToTypes<TypedCartesianProduct<MatXNumericNonComplexTuple, ExecutorTypesAll>::type>::type;
using MatXFloatNonHalfTypesAllExecs = TupleToTypes<TypedCartesianProduct<MatXFloatNonHalfTuple, ExecutorTypesAll>::type>::type;
using MatXFloatNonComplexHalfTypesAllExecs = TupleToTypes<TypedCartesianProduct<MatXFloatNonComplexHalfTuple, ExecutorTypesAll>::type>::type;
using MatXFloatNonComplexNonHalfTypesAllExecs = TupleToTypes<TypedCartesianProduct<MatXFloatNonComplexNonHalfTuple, ExecutorTypesAll>::type>::type;
using MatXNumericNoHalfTypesAllExecs = TupleToTypes<TypedCartesianProduct<MatXNumericNonHalfTuple, ExecutorTypesAll>::type>::type;
using MatXComplexNonHalfTypesAllExecs = TupleToTypes<TypedCartesianProduct<MatXComplexNonHalfTuple, ExecutorTypesAll>::type>::type;
Expand Down