Skip to content

Commit 8396551

Browse files
authored
Update memory deletion for scale add buffers
pointers are on host, not device
1 parent b54dd5e commit 8396551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resolve/workspace/LinAlgWorkspaceCUDA.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ namespace ReSolve
100100
if (buffer_spmv_ != nullptr)
101101
mem_.deleteOnDevice(buffer_spmv_);
102102
if (buffer_scale_add_i != nullptr)
103-
mem_.deleteOnDevice(buffer_scale_add_i);
103+
delete buffer_scale_add_i;
104104
if (buffer_scale_add_b != nullptr)
105-
mem_.deleteOnDevice(buffer_scale_add_b);
105+
delete buffer_scale_add_b;
106106
if (d_r_size_ != 0)
107107
mem_.deleteOnDevice(d_r_);
108108
if (norm_buffer_ready_)

0 commit comments

Comments
 (0)