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
6e1c6990
Unverified
Commit
6e1c6990
authored
Feb 28, 2022
by
Quan (Andy) Gan
Committed by
GitHub
Feb 28, 2022
Browse files
[Build or bug?] Fix VS2019 compilation error in randomwalk GPU kernel (#3788)
* Update randomwalk_gpu.cu * Update randomwalk_gpu.cu
parent
8425c936
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/graph/sampling/randomwalks/randomwalk_gpu.cu
src/graph/sampling/randomwalks/randomwalk_gpu.cu
+2
-2
No files found.
src/graph/sampling/randomwalks/randomwalk_gpu.cu
View file @
6e1c6990
...
...
@@ -110,7 +110,7 @@ std::pair<IdArray, IdArray> RandomWalkUniform(
IdType
*
traces_data
=
traces
.
Ptr
<
IdType
>
();
IdType
*
eids_data
=
eids
.
Ptr
<
IdType
>
();
GraphKernelData
<
IdType
>
h_graphs
[
num_etypes
]
;
std
::
vector
<
GraphKernelData
<
IdType
>
>
h_graphs
(
num_etypes
)
;
DGLContext
ctx
;
for
(
int64_t
etype
=
0
;
etype
<
num_etypes
;
++
etype
)
{
const
CSRMatrix
&
csr
=
hg
->
GetCSRMatrix
(
etype
);
...
...
@@ -127,7 +127,7 @@ std::pair<IdArray, IdArray> RandomWalkUniform(
device
->
AllocWorkspace
(
ctx
,
(
num_etypes
)
*
sizeof
(
GraphKernelData
<
IdType
>
)));
auto
d_metapath_data
=
metapath_data
;
// copy graph metadata pointers to GPU
device
->
CopyDataFromTo
(
h_graphs
,
0
,
d_graphs
,
0
,
device
->
CopyDataFromTo
(
h_graphs
.
data
()
,
0
,
d_graphs
,
0
,
(
num_etypes
)
*
sizeof
(
GraphKernelData
<
IdType
>
),
DGLContext
{
kDLCPU
,
0
},
ctx
,
...
...
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