[Compile] Fix compile warning #177-D (#56609)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -84,7 +84,9 @@ void swap_blocks(torch::stable::Tensor& src, torch::stable::Tensor& dst,
|
|||||||
namespace {
|
namespace {
|
||||||
// ROCm hipMemcpyBatchAsync faults for count > 8192 (MI350X/gfx950), so chunk
|
// ROCm hipMemcpyBatchAsync faults for count > 8192 (MI350X/gfx950), so chunk
|
||||||
// at that ceiling.
|
// at that ceiling.
|
||||||
|
#if defined(USE_ROCM)
|
||||||
constexpr int64_t kRocmDefaultMaxBatchDescriptors = 8192;
|
constexpr int64_t kRocmDefaultMaxBatchDescriptors = 8192;
|
||||||
|
#endif
|
||||||
|
|
||||||
constexpr const char* kMaxBatchDescriptorsEnv =
|
constexpr const char* kMaxBatchDescriptorsEnv =
|
||||||
"VLLM_KV_OFFLOAD_MAX_BATCH_DESCRIPTORS";
|
"VLLM_KV_OFFLOAD_MAX_BATCH_DESCRIPTORS";
|
||||||
|
|||||||
Reference in New Issue
Block a user