Skip to content

Commit

Permalink
Fix hip device side buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
G-071 committed Aug 21, 2023
1 parent 8b4d15b commit 9fa7e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/hip_buffer_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct hip_device_buffer {
: allocator{device_id}, number_of_elements(number_of_elements) {
assert(device_id < max_number_gpus);
device_side_buffer =
recycle_allocator_hip_device<T>{}.allocate(number_of_elements);
allocator.allocate(number_of_elements);
}
~hip_device_buffer() {
allocator.deallocate(device_side_buffer, number_of_elements);
Expand Down

0 comments on commit 9fa7e44

Please sign in to comment.