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
2ff3006c
".github/vscode:/vscode.git/clone" did not exist on "9532032e157958820f28cd522cab45cb66f083cd"
Unverified
Commit
2ff3006c
authored
Apr 12, 2024
by
Muhammed Fatih BALIN
Committed by
GitHub
Apr 12, 2024
Browse files
[CUDA][Bug] CSR transpose bug in CUDA 12 (#7295)
parent
20e5e266
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/array/cuda/csr_transpose.cc
src/array/cuda/csr_transpose.cc
+4
-0
No files found.
src/array/cuda/csr_transpose.cc
View file @
2ff3006c
...
...
@@ -22,6 +22,7 @@ CSRMatrix CSRTranspose(CSRMatrix csr) {
template
<
>
CSRMatrix
CSRTranspose
<
kDGLCUDA
,
int32_t
>
(
CSRMatrix
csr
)
{
#if CUDART_VERSION < 12000
auto
*
thr_entry
=
runtime
::
CUDAThreadEntry
::
ThreadLocal
();
cudaStream_t
stream
=
runtime
::
getCurrentCUDAStream
();
// allocate cusparse handle if needed
...
...
@@ -76,6 +77,9 @@ CSRMatrix CSRTranspose<kDGLCUDA, int32_t>(CSRMatrix csr) {
return
CSRMatrix
(
csr
.
num_cols
,
csr
.
num_rows
,
t_indptr
,
t_indices
,
t_data
,
false
);
#else
return
COOToCSR
(
COOTranspose
(
CSRToCOO
(
csr
,
false
)));
#endif
}
template
<
>
...
...
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