diff --git a/include/alpaka/mem/buf/BufUniformCudaHipRt.hpp b/include/alpaka/mem/buf/BufUniformCudaHipRt.hpp index 79340323ff01..d0083ed284c4 100644 --- a/include/alpaka/mem/buf/BufUniformCudaHipRt.hpp +++ b/include/alpaka/mem/buf/BufUniformCudaHipRt.hpp @@ -280,8 +280,8 @@ namespace alpaka # endif # if defined(ALPAKA_ACC_GPU_HIP_ENABLED) static_assert( - !std::is_same_v, - "HIP devices do not support stream-ordered memory buffers."); + std::is_same_v && TApi::version >= BOOST_VERSION_NUMBER(5, 2, 0), + "Support for stream-ordered memory buffers requires HIP/ROCm 5.2 or higher."); # endif static_assert( TDim::value <= 1,