Skip to content

Commit

Permalink
small update per issue #158
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyeli committed Jan 5, 2025
1 parent eac44cf commit 6574d1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SRC/complex16/zSchCompUdt-gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ if ( msg0 && msg2 ) { /* L(:,k) and U(k,:) are not empty. */
size_t C_stream_size = nbrow * num_col_stream * sizeof(doublecomplex);

// Sherry: Check dC buffer of *buffer_size* is large enough
assert(nbrow*(st_col+num_col_stream) < buffer_size);
assert(nbrow*(st_col+num_col_stream) <= buffer_size);

gpuMemcpyAsync(dB+b_offset, tempu+b_offset, B_stream_size,
gpuMemcpyHostToDevice, streams[stream_id]);
Expand Down
2 changes: 1 addition & 1 deletion SRC/double/dSchCompUdt-gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if ( msg0 && msg2 ) { /* L(:,k) and U(k,:) are not empty. */
size_t C_stream_size = nbrow * num_col_stream * sizeof(double);

// Sherry: Check dC buffer of *buffer_size* is large enough
assert(nbrow*(st_col+num_col_stream) < buffer_size);
assert(nbrow*(st_col+num_col_stream) <= buffer_size);

gpuMemcpyAsync(dB+b_offset, tempu+b_offset, B_stream_size,
gpuMemcpyHostToDevice, streams[stream_id]);
Expand Down
2 changes: 1 addition & 1 deletion SRC/single/sSchCompUdt-gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ if ( msg0 && msg2 ) { /* L(:,k) and U(k,:) are not empty. */
size_t C_stream_size = nbrow * num_col_stream * sizeof(float);

// Sherry: Check dC buffer of *buffer_size* is large enough
assert(nbrow*(st_col+num_col_stream) < buffer_size);
assert(nbrow*(st_col+num_col_stream) <= buffer_size);

gpuMemcpyAsync(dB+b_offset, tempu+b_offset, B_stream_size,
gpuMemcpyHostToDevice, streams[stream_id]);
Expand Down

0 comments on commit 6574d1f

Please sign in to comment.