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
99937422
Unverified
Commit
99937422
authored
Feb 23, 2023
by
Kacper Pietkun
Committed by
GitHub
Feb 23, 2023
Browse files
[Bugfix] fixed leak in SpMMCreateBlocks (#5210)
* fixed leak in SpMMCreateBlocks * clang format
parent
45153fc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/array/cpu/spmm_blocking_libxsmm.h
src/array/cpu/spmm_blocking_libxsmm.h
+10
-4
No files found.
src/array/cpu/spmm_blocking_libxsmm.h
View file @
99937422
...
@@ -80,10 +80,16 @@ inline void SpMMCreateBlocks(
...
@@ -80,10 +80,16 @@ inline void SpMMCreateBlocks(
if
(
num_K_blocks
>
1
)
{
if
(
num_K_blocks
>
1
)
{
IdType
*
indptr_block_buf
=
reinterpret_cast
<
IdType
*>
(
aligned_alloc
(
IdType
*
indptr_block_buf
=
reinterpret_cast
<
IdType
*>
(
aligned_alloc
(
64
,
(
M_block_size
+
1
)
*
num_M_blocks
*
num_K_blocks
*
sizeof
(
IdType
)));
64
,
(
M_block_size
+
1
)
*
num_M_blocks
*
num_K_blocks
*
sizeof
(
IdType
)));
IdType
*
indices_block_buf
=
reinterpret_cast
<
IdType
*>
(
IdType
*
indices_block_buf
=
nullptr
;
aligned_alloc
(
64
,
indptr
[
M
]
*
sizeof
(
IdType
)));
if
(
use_lhs
)
{
IdType
*
edges_block_buf
=
reinterpret_cast
<
IdType
*>
(
indices_block_buf
=
reinterpret_cast
<
IdType
*>
(
aligned_alloc
(
64
,
indptr
[
M
]
*
sizeof
(
IdType
)));
aligned_alloc
(
64
,
indptr
[
M
]
*
sizeof
(
IdType
)));
}
IdType
*
edges_block_buf
=
nullptr
;
if
(
use_rhs
)
{
edges_block_buf
=
reinterpret_cast
<
IdType
*>
(
aligned_alloc
(
64
,
indptr
[
M
]
*
sizeof
(
IdType
)));
}
#pragma omp parallel
#pragma omp parallel
{
{
...
...
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