fixing core dump wehen no hipcc optmization (#989)

Tá an tiomantas seo le fáil i:
Gopesh Bhardwaj údaraithe agus GitHub tiomanta 2024-07-24 10:22:07 +05:30
1 tuismitheoir a35a81b060
tiomantas ba35562729
1 comhad athraithe
+2 -1
+2 -1
Féach ar an gComhad
@@ -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);