Handle the return value
MODIFY
thrust/system/hip/detail/malloc_and_free.h
thrust/system/hip/detail/malloc_and_free.h
@@ -68,7 +68,9 @@ if (THRUST_IS_HOST_CODE) {
if(status != hipSuccess)
{
- hipGetLastError(); // Clear global hip error state.
+ // Clear global hip error state.
+ hipError_t clear_error_status = hipGetLastError();
+ THRUST_UNUSED_VAR(clear_error_status);
throw thrust::system::detail::bad_alloc(thrust::hip_category().message(status).c_str());
}
#endif

Handle the return value