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

Skip test cases testing unimplemented functions #503

Merged
merged 1 commit into from
Nov 13, 2024
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
1 change: 1 addition & 0 deletions tests/gpu/BlockUniTensor_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "BlockUniTensor_test.h"

TEST_F(BlockUniTensorTest, gpu_Trace) {
GTEST_SKIP() << "Calculating the trace of a matrix is not implemented on the GPU.";
// std::cout<<BUT4<<std::endl;
auto tmp = BUT4.Trace(0, 3);
// std::cout<<BUtrT4<<std::endl;
Expand Down
1 change: 1 addition & 0 deletions tests/gpu/DenseUniTensor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using namespace std;
using namespace cytnx;
using namespace std::complex_literals;
TEST_F(DenseUniTensorTest, gpu_Trace) {
GTEST_SKIP() << "Calculating the trace of a matrix is not implemented on the GPU.";
auto tmp = dense4trtensor.Trace(0, 3);
for (size_t j = 1; j <= 4; j++)
for (size_t k = 1; k <= 5; k++)
Expand Down
10 changes: 10 additions & 0 deletions tests/gpu/linalg_test/Arnoldi_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,49 +50,57 @@ namespace ArnoldiTest {
// corrected test
// 1-1, test for 'which' = 'LM'
TEST(Arnoldi, gpu_which_LM_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LM";
ExcuteTest(which);
}

// 1-2, test for 'which' = 'LR'
TEST(Arnoldi, gpu_which_LR_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LR";
ExcuteTest(which);
}

// 1-3, test for 'which' = 'LI'
TEST(Arnoldi, gpu_which_LI_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LI";
ExcuteTest(which);
}

// 1-4, test for 'which' = 'SM'
TEST(Arnoldi, gpu_which_SM_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "SM";
ExcuteTest(which);
}

// 1-5, test for 'which' = 'SR'
TEST(Arnoldi, gpu_which_SR_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "SR";
ExcuteTest(which);
}

// 1-6, test for 'which' = 'SI'
TEST(Arnoldi, gpu_which_SI_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "SI";
ExcuteTest(which);
}

// 1-7, test matrix is real type
TEST(Arnoldi, gpu_mat_type_real_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LM";
auto mat_type = Type.Double;
ExcuteTest(which, mat_type);
}

// 1-8, test eigenalue number k = 1
TEST(Arnoldi, gpu_k1_test) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LM";
auto mat_type = Type.ComplexDouble;
cytnx_uint64 k = 1;
Expand All @@ -101,6 +109,7 @@ namespace ArnoldiTest {

// 1-9, test eigenalue number k match maximum, that means k = dim.
TEST(Arnoldi, gpu_k_max) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LM";
auto mat_type = Type.ComplexDouble;
cytnx_uint64 k, dim;
Expand All @@ -110,6 +119,7 @@ namespace ArnoldiTest {

// 1-10, test the smallest matrix dimenstion.
TEST(Arnoldi, gpu_smallest_dim) {
GTEST_SKIP() << "Arnoldi is not implemented in CUDA.";
std::string which = "LM";
auto mat_type = Type.ComplexDouble;
cytnx_uint64 k, dim;
Expand Down
1 change: 1 addition & 0 deletions tests/gpu/linalg_test/ExpM_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "ExpM_test.h"

TEST(ExpM, gpu_ExpM_test) {
GTEST_SKIP() << "ExpM is not implemented on the GPU.";
// CompareWithScipy
std::complex<double> t_i_e[4][4] = {{{-2.0, 0}, {0, 0}, {0, 0}, {-1, 0}},
{{0, 0}, {0, 0}, {-1, 0}, {0, 0}},
Expand Down
Loading