[Optimize]Change AI Vector core number getting function to glibc ABI free funcition (#1974)

### What this PR does / why we need it?
Change AI Vector core number getting function to glibc ABI free
function. After this PR merged in, there should been no glibc ABI
problems for bump torch version to 2.7.1.

### Does this PR introduce _any_ user-facing change?
No

- vLLM version: v0.9.2
- vLLM main:
f59ec35b7f

Signed-off-by: leo-pony <nengjunma@outlook.com>
This commit is contained in:
leo-pony
2025-07-24 10:00:19 +08:00
committed by GitHub
parent ac0bf133f4
commit b5ad70e1a6
2 changed files with 12 additions and 14 deletions

View File

@@ -5,6 +5,9 @@ import torch
import torch_npu # noqa: F401
import vllm_ascend.platform # noqa: F401
from vllm_ascend.utils import enable_custom_op
enable_custom_op()
# Test parameters
DTYPES = [torch.int32]