[AMD] Guard ROCm 7.0 build from using hipMemcpyBatchAsync (#35128)
This commit is contained in:
@@ -995,9 +995,9 @@ inline void transfer_kv_page_first_direct_impl(
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if defined(USE_ROCM) || !defined(CUDA_VERSION) || CUDA_VERSION < 12080
|
#if defined(USE_ROCM) || !defined(CUDA_VERSION) || CUDA_VERSION < 12080
|
||||||
#if defined(USE_ROCM)
|
#if defined(USE_ROCM) && defined(HIP_VERSION) && HIP_VERSION >= 70200000
|
||||||
// Opt-in HIP batch copy path (mirrors cudaMemcpyBatchAsync); disabled by
|
// Opt-in HIP batch copy path (mirrors cudaMemcpyBatchAsync); requires
|
||||||
// default, falls back to per-page copy below.
|
// ROCm >= 7.2. Disabled by default, falls back to per-page copy below.
|
||||||
constexpr bool kEnableHipBatch = false;
|
constexpr bool kEnableHipBatch = false;
|
||||||
if (kEnableHipBatch) {
|
if (kEnableHipBatch) {
|
||||||
std::vector<void*> b_srcs, b_dsts;
|
std::vector<void*> b_srcs, b_dsts;
|
||||||
|
|||||||
Reference in New Issue
Block a user