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
d89f825d
Unverified
Commit
d89f825d
authored
Nov 12, 2020
by
Zihao Ye
Committed by
GitHub
Nov 12, 2020
Browse files
upd (#2336)
parent
92a3d07d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/array/cuda/sddmm.cuh
src/array/cuda/sddmm.cuh
+4
-1
No files found.
src/array/cuda/sddmm.cuh
View file @
d89f825d
...
...
@@ -106,8 +106,11 @@ __global__ void SDDMMCooTreeReduceKernel(
const
Idx
lhs_add
=
UseBcast
?
__ldg
(
lhs_off
+
i
)
:
i
;
const
Idx
rhs_add
=
UseBcast
?
__ldg
(
rhs_off
+
i
)
:
i
;
DType
val
=
0.
;
for
(
int
j
=
tx
;
j
<
reduce_size
;
j
+=
32
)
for
(
int
j
=
tx
;
j
<
reduce_size
;
j
+=
64
)
{
val
+=
lhsoff
[
lhs_add
*
reduce_size
+
j
]
*
rhsoff
[
rhs_add
*
reduce_size
+
j
];
if
(
j
+
32
<
reduce_size
)
val
+=
lhsoff
[
lhs_add
*
reduce_size
+
j
+
32
]
*
rhsoff
[
rhs_add
*
reduce_size
+
j
+
32
];
}
#pragma unroll
for
(
int
offset
=
16
;
offset
>
0
;
offset
/=
2
)
val
+=
__shfl_down_sync
(
full_mask
,
val
,
offset
);
...
...
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