".github/vscode:/vscode.git/clone" did not exist on "9532032e157958820f28cd522cab45cb66f083cd"
Unverified Commit 2ff3006c authored by Muhammed Fatih BALIN's avatar Muhammed Fatih BALIN Committed by GitHub
Browse files

[CUDA][Bug] CSR transpose bug in CUDA 12 (#7295)

parent 20e5e266
......@@ -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 <>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment