mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-23 14:15:01 +08:00
[Misc] fix tests failure by using current_platform (#25825)
Signed-off-by: Juechen Liu <jueliu@meta.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
cf0a7912ca
commit
eb447aff56
@ -137,7 +137,7 @@ def triton_reshape_and_cache_flash(
|
||||
|
||||
# heuristics instead of autotuning
|
||||
TILE_SIZE = min(2048, triton.next_power_of_2(n))
|
||||
if torch.version.hip or torch.version.xpu:
|
||||
if current_platform.is_rocm() or current_platform.is_xpu():
|
||||
num_stages = 4
|
||||
num_warps = 8
|
||||
else: # cuda
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user