Skip to content

Commit

Permalink
Removing unsupported tests on cuBLAS (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
daineAMD authored Mar 26, 2021
1 parent 6c07dbf commit 4deab90
Show file tree
Hide file tree
Showing 53 changed files with 535 additions and 267 deletions.
14 changes: 10 additions & 4 deletions clients/gtest/axpy_ex_gtest.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ************************************************************************
* dotright 2016 Advanced Micro Devices, Inc.
* Copyright 2016-2021 Advanced Micro Devices, Inc.
*
* ************************************************************************ */

Expand Down Expand Up @@ -74,9 +74,11 @@ const int batch_count_range[] = {-1, 0, 1, 2, 10};

// Supported rocBLAS configs
const vector<vector<hipblasDatatype_t>> precisions{
// No cuBLAS support
// No cuBLAS support
#ifndef __HIP_PLATFORM_NVCC__
{HIPBLAS_R_16F, HIPBLAS_R_16F, HIPBLAS_R_16F, HIPBLAS_R_16F},
{HIPBLAS_R_16F, HIPBLAS_R_16F, HIPBLAS_R_16F, HIPBLAS_R_32F},
#endif

{HIPBLAS_R_32F, HIPBLAS_R_16F, HIPBLAS_R_16F, HIPBLAS_R_32F},
{HIPBLAS_R_32F, HIPBLAS_R_32F, HIPBLAS_R_32F, HIPBLAS_R_32F},
Expand Down Expand Up @@ -144,6 +146,8 @@ TEST_P(axpy_ex_gtest, axpy_ex)
}
}

#ifndef __HIP_PLATFORM_NVCC__

TEST_P(axpy_ex_gtest, axpy_batched_ex)
{
Arguments arg = setup_axpy_ex_arguments(GetParam());
Expand All @@ -157,7 +161,7 @@ TEST_P(axpy_ex_gtest, axpy_batched_ex)
}
else
{
EXPECT_EQ(HIPBLAS_STATUS_NOT_SUPPORTED, status); // for CUDA
EXPECT_EQ(HIPBLAS_STATUS_SUCCESS, status); // fail
}
}
}
Expand All @@ -175,11 +179,13 @@ TEST_P(axpy_ex_gtest, axpy_strided_batched_ex)
}
else
{
EXPECT_EQ(HIPBLAS_STATUS_NOT_SUPPORTED, status); // for CUDA
EXPECT_EQ(HIPBLAS_STATUS_SUCCESS, status); // fail
}
}
}

#endif

// Values is for a single item; ValuesIn is for an array
// notice we are using vector of vector
// so each elment in xxx_range is a avector,
Expand Down
Loading

0 comments on commit 4deab90

Please sign in to comment.