Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
e7ad4c9c
Unverified
Commit
e7ad4c9c
authored
Feb 24, 2022
by
sanchit-misra
Committed by
GitHub
Feb 23, 2022
Browse files
Fixes the bug when total_nnz is > integer limit (#3766)
parent
4b182b90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/array/cpu/spmm_blocking_libxsmm.h
src/array/cpu/spmm_blocking_libxsmm.h
+1
-1
No files found.
src/array/cpu/spmm_blocking_libxsmm.h
View file @
e7ad4c9c
...
...
@@ -454,7 +454,7 @@ void SpMMRedopCsrOpt(
const
IdType
K
=
csr
.
num_cols
;
const
IdType
*
indptr
=
csr
.
indptr
.
Ptr
<
IdType
>
();
CHECK_NOTNULL
(
indptr
);
const
int
total_nnz
=
indptr
[
M
];
const
IdType
total_nnz
=
indptr
[
M
];
if
(
M
<=
0
||
K
<=
0
||
N
<=
0
||
total_nnz
<=
0
)
return
;
const
double
avg_degree
=
total_nnz
*
1.0
/
M
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment