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
bitsandbytes
Commits
3e706031
Unverified
Commit
3e706031
authored
Jan 07, 2024
by
Tim Dettmers
Committed by
GitHub
Jan 07, 2024
Browse files
Merge pull request #905 from LucQueen/outofbounds
fix array index out of bounds in kgetColRowStats
parents
947db7cf
51d30913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
csrc/kernels.cu
csrc/kernels.cu
+6
-1
No files found.
csrc/kernels.cu
View file @
3e706031
...
...
@@ -2178,7 +2178,12 @@ template<typename T, int THREADS, int ITEMS_PER_THREAD, int TILE_ROWS, int TILE_
{
//smem_col_absmax_values[threadIdx.x + (j*THREADS)] = -FLT_MAX;
smem_row_absmax_values
[
threadIdx
.
x
+
(
j
*
THREADS
)]
=
-
FLT_MAX
;
smem_row_nnz_values
[
threadIdx
.
x
+
(
j
*
THREADS
)]
=
0
;
// smem_row_nnz_values[threadIdx.x + (j*THREADS)] = 0;
}
#pragma unroll TILE_ROWS
for
(
int
j
=
0
;
j
<
TILE_ROWS
;
j
++
)
{
smem_row_nnz_values
[
j
]
=
0
;
}
#pragma unroll ITEMS_PER_THREAD
...
...
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