Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
01e2ad3d
There was an error fetching the commit references. Please try again later.
Commit
01e2ad3d
authored
6 years ago
by
Lukas Cejka
Browse files
Options
Downloads
Patches
Plain Diff
Changed function title formatting from 'testFunctionName' to 'test_FunctionName'.
parent
3d4c4c49
No related branches found
No related tags found
1 merge request
!16
Matrices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnitTests/Matrices/SparseMatrixTest.h
+10
-10
10 additions, 10 deletions
src/UnitTests/Matrices/SparseMatrixTest.h
with
10 additions
and
10 deletions
src/UnitTests/Matrices/SparseMatrixTest.h
+
10
−
10
View file @
01e2ad3d
...
@@ -26,7 +26,7 @@ using CSR_cuda_int = TNL::Matrices::CSR< int, TNL::Devices::Cuda, int >;
...
@@ -26,7 +26,7 @@ using CSR_cuda_int = TNL::Matrices::CSR< int, TNL::Devices::Cuda, int >;
template
<
typename
MatrixHostFloat
,
typename
MatrixHostInt
>
template
<
typename
MatrixHostFloat
,
typename
MatrixHostInt
>
void
host_testGetType
()
void
host_test
_
GetType
()
{
{
MatrixHostFloat
mtrxHostFloat
;
MatrixHostFloat
mtrxHostFloat
;
MatrixHostInt
mtrxHostInt
;
MatrixHostInt
mtrxHostInt
;
...
@@ -39,7 +39,7 @@ void host_testGetType()
...
@@ -39,7 +39,7 @@ void host_testGetType()
// CUDA into the function in the TEST, to be tested, then we could have a problem.
// CUDA into the function in the TEST, to be tested, then we could have a problem.
template
<
typename
MatrixCudaFloat
,
typename
MatrixCudaInt
>
template
<
typename
MatrixCudaFloat
,
typename
MatrixCudaInt
>
void
cuda_testGetType
()
void
cuda_test
_
GetType
()
{
{
MatrixCudaFloat
mtrxCudaFloat
;
MatrixCudaFloat
mtrxCudaFloat
;
MatrixCudaInt
mtrxCudaInt
;
MatrixCudaInt
mtrxCudaInt
;
...
@@ -49,7 +49,7 @@ void cuda_testGetType()
...
@@ -49,7 +49,7 @@ void cuda_testGetType()
}
}
template
<
typename
Matrix
>
template
<
typename
Matrix
>
void
testSetDimensions
()
void
test
_
SetDimensions
()
{
{
Matrix
m
;
Matrix
m
;
m
.
setDimensions
(
9
,
8
);
m
.
setDimensions
(
9
,
8
);
...
@@ -59,7 +59,7 @@ void testSetDimensions()
...
@@ -59,7 +59,7 @@ void testSetDimensions()
}
}
template
<
typename
Matrix
>
template
<
typename
Matrix
>
void
testSetCompressedRowLengths
()
void
test
_
SetCompressedRowLengths
()
{
{
Matrix
m
;
Matrix
m
;
const
int
rows
=
10
;
const
int
rows
=
10
;
...
@@ -90,37 +90,37 @@ void testSetCompressedRowLengths()
...
@@ -90,37 +90,37 @@ void testSetCompressedRowLengths()
TEST
(
SparseMatrixTest
,
CSR_GetTypeTest_Host
)
TEST
(
SparseMatrixTest
,
CSR_GetTypeTest_Host
)
{
{
host_testGetType
<
CSR_host_float
,
CSR_host_int
>
();
host_test
_
GetType
<
CSR_host_float
,
CSR_host_int
>
();
}
}
#ifdef HAVE_CUDA
#ifdef HAVE_CUDA
TEST
(
SparseMatrixTest
,
CSR_GetTypeTest_Cuda
)
TEST
(
SparseMatrixTest
,
CSR_GetTypeTest_Cuda
)
{
{
cuda_testGetType
<
CSR_cuda_float
,
CSR_cuda_int
>
();
cuda_test
_
GetType
<
CSR_cuda_float
,
CSR_cuda_int
>
();
}
}
#endif
#endif
TEST
(
SparseMatrixTest
,
CSR_SetDimensionsTest_Host
)
TEST
(
SparseMatrixTest
,
CSR_SetDimensionsTest_Host
)
{
{
testSetDimensions
<
CSR_host_int
>
();
test
_
SetDimensions
<
CSR_host_int
>
();
}
}
#ifdef HAVE_CUDA
#ifdef HAVE_CUDA
TEST
(
SparseMatrixTest
,
CSR_SetDimensionsTest_Cuda
)
TEST
(
SparseMatrixTest
,
CSR_SetDimensionsTest_Cuda
)
{
{
testSetDimensions
<
CSR_cuda_int
>
();
test
_
SetDimensions
<
CSR_cuda_int
>
();
}
}
#endif
#endif
TEST
(
SparseMatrixTest
,
CSR_setCompressedRowLengthsTest_Host
)
TEST
(
SparseMatrixTest
,
CSR_setCompressedRowLengthsTest_Host
)
{
{
testSetCompressedRowLengths
<
CSR_host_int
>
();
test
_
SetCompressedRowLengths
<
CSR_host_int
>
();
}
}
#ifdef HAVE_CUDA
#ifdef HAVE_CUDA
TEST
(
SparseMatrixTest
,
CSR_setCompressedRowLengthsTest_Cuda
)
TEST
(
SparseMatrixTest
,
CSR_setCompressedRowLengthsTest_Cuda
)
{
{
testSetCompressedRowLengths
<
CSR_cuda_int
>
();
test
_
SetCompressedRowLengths
<
CSR_cuda_int
>
();
}
}
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment