mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix buffer overflow
This commit is contained in:
parent
411d8b6263
commit
c59829ad86
@ -435,6 +435,7 @@ oflow_end:
|
||||
__global__
|
||||
void flush_atom(uint64_t out_ptr, uint64_t atom_ptr, int nbins) {
|
||||
int i = (blockIdx.y * gridDim.x + blockIdx.x) * blockDim.x + threadIdx.x;
|
||||
if (i >= nbins) return;
|
||||
asm volatile ({{crep("""
|
||||
{
|
||||
.reg .u32 off, hi, lo, d, r, g, b;
|
||||
|
Loading…
Reference in New Issue
Block a user