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
92539874
There was an error fetching the commit references. Please try again later.
Commit
92539874
authored
4 years ago
by
Jakub Klinkovský
Committed by
Tomáš Oberhuber
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updating DistributedMatrix for segments
parent
de38db4a
No related branches found
No related tags found
1 merge request
!58
To/matrices
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TNL/Matrices/DistributedMatrix.h
+1
-17
1 addition, 17 deletions
src/TNL/Matrices/DistributedMatrix.h
src/TNL/Matrices/DistributedMatrix_impl.h
+4
-43
4 additions, 43 deletions
src/TNL/Matrices/DistributedMatrix_impl.h
with
5 additions
and
60 deletions
src/TNL/Matrices/DistributedMatrix.h
+
1
−
17
View file @
92539874
...
...
@@ -108,15 +108,10 @@ public:
IndexType
getRowLength
(
IndexType
row
)
const
;
bool
setElement
(
IndexType
row
,
void
setElement
(
IndexType
row
,
IndexType
column
,
RealType
value
);
__cuda_callable__
bool
setElementFast
(
IndexType
row
,
IndexType
column
,
RealType
value
);
RealType
getElement
(
IndexType
row
,
IndexType
column
)
const
;
...
...
@@ -124,17 +119,6 @@ public:
RealType
getElementFast
(
IndexType
row
,
IndexType
column
)
const
;
// __cuda_callable__
// bool setRowFast( IndexType row,
// const IndexType* columnIndexes,
// const RealType* values,
// IndexType elements );
// __cuda_callable__
// void getRowFast( IndexType row,
// IndexType* columns,
// RealType* values ) const;
__cuda_callable__
MatrixRow
getRow
(
IndexType
row
);
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Matrices/DistributedMatrix_impl.h
+
4
−
43
View file @
92539874
...
...
@@ -172,7 +172,8 @@ getCompressedRowLengths( CompressedRowLengthsVector& rowLengths ) const
{
if
(
getCommunicationGroup
()
!=
CommunicatorType
::
NullGroup
)
{
rowLengths
.
setDistribution
(
getLocalRowRange
(),
getRows
(),
getCommunicationGroup
()
);
localMatrix
.
getCompressedRowLengths
(
rowLengths
.
getLocalView
()
);
auto
localRowLengths
=
rowLengths
.
getView
();
localMatrix
.
getCompressedRowLengths
(
localRowLengths
);
}
}
...
...
@@ -188,27 +189,14 @@ getRowLength( IndexType row ) const
template
<
typename
Matrix
,
typename
Communicator
>
bool
void
DistributedMatrix
<
Matrix
,
Communicator
>::
setElement
(
IndexType
row
,
IndexType
column
,
RealType
value
)
{
const
IndexType
localRow
=
localRowRange
.
getLocalIndex
(
row
);
return
localMatrix
.
setElement
(
localRow
,
column
,
value
);
}
template
<
typename
Matrix
,
typename
Communicator
>
__cuda_callable__
bool
DistributedMatrix
<
Matrix
,
Communicator
>::
setElementFast
(
IndexType
row
,
IndexType
column
,
RealType
value
)
{
const
IndexType
localRow
=
localRowRange
.
getLocalIndex
(
row
);
return
localMatrix
.
setElementFast
(
localRow
,
column
,
value
);
localMatrix
.
setElement
(
localRow
,
column
,
value
);
}
template
<
typename
Matrix
,
...
...
@@ -234,33 +222,6 @@ getElementFast( IndexType row,
return
localMatrix
.
getElementFast
(
localRow
,
column
);
}
//template< typename Matrix,
// typename Communicator >
//__cuda_callable__
//bool
//DistributedMatrix< Matrix, Communicator >::
//setRowFast( IndexType row,
// const IndexType* columnIndexes,
// const RealType* values,
// IndexType elements )
//{
// const IndexType localRow = localRowRange.getLocalIndex( row );
// return localMatrix.setRowFast( localRow, columnIndexes, values, elements );
//}
//template< typename Matrix,
// typename Communicator >
//__cuda_callable__
//void
//DistributedMatrix< Matrix, Communicator >::
//getRowFast( IndexType row,
// IndexType* columns,
// RealType* values ) const
//{
// const IndexType localRow = localRowRange.getLocalIndex( row );
// return localMatrix.getRowFast( localRow, columns, values );
//}
template
<
typename
Matrix
,
typename
Communicator
>
__cuda_callable__
...
...
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