fixing core dump wehen no hipcc optmization (#989)

Este cometimento está contido em:
Gopesh Bhardwaj criou e GitHub cometeu 2024-07-24 10:22:07 +05:30
1 ascendente a35a81b060
cometimento ba35562729
1 ficheiro modificado
+2 -1
+2 -1
Ver ficheiro
@@ -71,7 +71,8 @@ void
write_ring_buffer(Tp _v, domain_type type)
{
auto [_tmp_buf, _tmp_file] = get_tmp_file_buffer<ring_buffer_t<Tp>>(type);
auto* ptr = _tmp_buf->request(false);
if(_tmp_buf->capacity() == 0) return;
auto* ptr = _tmp_buf->request(false);
if(ptr == nullptr)
{
offload_buffer<ring_buffer_t<Tp>>(type);