diff --git a/include/mgard-x/RuntimeX/DeviceAdapters/DeviceAdapterHip.h b/include/mgard-x/RuntimeX/DeviceAdapters/DeviceAdapterHip.h index 5689be9fd1..77e40b0458 100644 --- a/include/mgard-x/RuntimeX/DeviceAdapters/DeviceAdapterHip.h +++ b/include/mgard-x/RuntimeX/DeviceAdapters/DeviceAdapterHip.h @@ -2341,7 +2341,8 @@ template <> class DeviceCollective { AbsMaxOp absMaxOp; hipStream_t stream = DeviceRuntime::GetQueue(queue_idx); hipcub::DeviceReduce::Reduce(d_temp_storage, temp_storage_bytes, v.data(), - result.data(), n, absMaxOp, 0, stream); + result.data(), n, absMaxOp, static_cast(0), + stream); ErrorAsyncCheck(hipGetLastError(), "DeviceCollective::AbsMax"); if (DeviceRuntime::SyncAllKernelsAndCheckErrors) { ErrorSyncCheck(hipDeviceSynchronize(), "DeviceCollective::AbsMax");