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
51d30913
Commit
51d30913
authored
Dec 09, 2023
by
修艺
Browse files
fix errors about array index out of bounds in kgetColRowStats
parent
f2e4b6d0
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 @
51d30913
...
@@ -2178,7 +2178,12 @@ template<typename T, int THREADS, int ITEMS_PER_THREAD, int TILE_ROWS, int TILE_
...
@@ -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_col_absmax_values[threadIdx.x + (j*THREADS)] = -FLT_MAX;
smem_row_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
#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