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
4177f729
Unverified
Commit
4177f729
authored
May 12, 2022
by
nv-dlasalle
Committed by
GitHub
May 12, 2022
Browse files
Fix launch parameters index select kernel in sparse push (#3524)
parent
cb39eae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/runtime/cuda/nccl_api.cu
src/runtime/cuda/nccl_api.cu
+2
-2
No files found.
src/runtime/cuda/nccl_api.cu
View file @
4177f729
...
@@ -445,13 +445,13 @@ NDArray SparsePull(
...
@@ -445,13 +445,13 @@ NDArray SparsePull(
// and then index select them into place
// and then index select them into place
Workspace
<
DType
>
filled_response_value
(
device
,
ctx
,
Workspace
<
DType
>
filled_response_value
(
device
,
ctx
,
response_prefix_host
.
back
()
*
num_feat
);
response_prefix_host
.
back
()
*
num_feat
);
if
(
re
quest
_prefix_host
.
back
()
>
0
)
{
if
(
re
sponse
_prefix_host
.
back
()
>
0
)
{
dim3
block
(
256
,
1
);
dim3
block
(
256
,
1
);
while
(
block
.
x
>=
2
*
num_feat
)
{
while
(
block
.
x
>=
2
*
num_feat
)
{
block
.
x
/=
2
;
block
.
x
/=
2
;
block
.
y
*=
2
;
block
.
y
*=
2
;
}
}
const
dim3
grid
((
re
quest
_prefix_host
.
back
()
+
block
.
y
-
1
)
/
block
.
y
);
const
dim3
grid
((
re
sponse
_prefix_host
.
back
()
+
block
.
y
-
1
)
/
block
.
y
);
aten
::
impl
::
IndexSelectMultiKernel
<<<
grid
,
block
,
0
,
stream
>>>
(
aten
::
impl
::
IndexSelectMultiKernel
<<<
grid
,
block
,
0
,
stream
>>>
(
static_cast
<
const
DType
*>
(
local_tensor
->
data
),
static_cast
<
const
DType
*>
(
local_tensor
->
data
),
...
...
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