Skip to content

Commit 7f65092

Browse files
committed
[Code] Minor tests fixes
1 parent 2b7a51f commit 7f65092

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ cuBool
339339
├── cubool - library core source code
340340
│ ├── include - library public C API
341341
│ ├── sources - source-code for implementation
342-
│ │ ├── backend - common interfaces
343342
│ │ ├── core - library core and state management
344-
│ │ ├── cpu - fallback cpu implementation
345-
│ │ └── cuda - cuda backend
343+
│ │ ├── backend - common interfaces
344+
│ │ ├── cuda - cuda backend
345+
│ │ └── sequential - fallback cpu backend
346346
│ ├── utils - testing utilities
347347
│ └── tests - gtest-based unit-tests collection
348348
├── python - pycubool related source

cubool/sources/core/matrix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ namespace cubool {
163163
index N = a->getNcols();
164164

165165
CHECK_RAISE_ERROR(M == b->getNrows(), InvalidArgument, "Passed matrices have incompatible size");
166-
CHECK_RAISE_ERROR(N == b->getNrows(), InvalidArgument, "Passed matrices have incompatible size");
166+
CHECK_RAISE_ERROR(N == b->getNcols(), InvalidArgument, "Passed matrices have incompatible size");
167167

168168
CHECK_RAISE_ERROR(M == this->getNrows(), InvalidArgument, "Matrix has incompatible size for operation result");
169-
CHECK_RAISE_ERROR(N == this->getNrows(), InvalidArgument, "Matrix has incompatible size for operation result");
169+
CHECK_RAISE_ERROR(N == this->getNcols(), InvalidArgument, "Matrix has incompatible size for operation result");
170170

171171
mHnd->eWiseAdd(*a->mHnd, *b->mHnd);
172172
}

scripts/tests_run_all.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Runs all tests executables
22
# Invoke this script within build directory
3-
./tests/test_basic_cuda
4-
./tests/test_library_api
5-
./tests/tests_matrix_ewiseadd
6-
./tests/tests_matrix_extract_sub_matrix
7-
./tests/tests_matrix_kronecker
8-
./tests/tests_matrix_misc
9-
./tests/tests_matrix_mxm
10-
./tests/tests_matrix_reduce
11-
./tests/tests_matrix_setup
12-
./tests/tests_matrix_transpose
3+
./cubool/tests/test_basic_cuda
4+
./cubool/tests/test_library_api
5+
./cubool/tests/test_matrix_ewiseadd
6+
./cubool/tests/test_matrix_extract_sub_matrix
7+
./cubool/tests/test_matrix_kronecker
8+
./cubool/tests/test_matrix_misc
9+
./cubool/tests/test_matrix_mxm
10+
./cubool/tests/test_matrix_reduce
11+
./cubool/tests/test_matrix_setup
12+
./cubool/tests/test_matrix_transpose

0 commit comments

Comments
 (0)