Windows prefill and the NPU's 4 KB page translations (driver request: amd/xdna-driver#1817)

Abierto
#1,080 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, linux

Línea de trabajo

Start by comparing FastFlowLM’s Windows and Linux prefill paths and measuring DMA behavior with different page sizes; the issue names no source files or tests. The driver request amd/xdna-driver#1817 is the starting reference for 2 MB host memory mappings. Done looks like Windows/Linux prefill measurements that show whether page size affects performance.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

On Windows the NPU driver maps host memory in 4 KB pages, and every page a shim DMA row lands on costs a translation: past a cache of about 512 pages, all DMA channels together get 70-80 million translations a second (Krackan Point, Windows 11). On Linux the NPU gets 2 MB pages (transparent huge pages) and pays nothing. Krackan Point, Linux on one laptop and Windows 11 on another:

16 channels, rows 64 KB + one row apart Linux (2 MB pages) Windows 11
gather 256 B rows 89.6 GB/s 15.6 GB/s
write 128 B rows 73.2 GB/s 6.0 GB/s
read stream 96.9 GB/s 81.0 GB/s

A prefill that writes a GEMM's output as one short row per token, a whole activation row apart, pays one translation per row on Windows: for Llama 3.2 1B, 7.5 M per 1024-token chunk with 4 KB pages, 0.22 M with 2 MB pages, ~100 ms of DMA per chunk at Windows' rate. If FastFlowLM's prefill on Windows trails Linux on the same machine, this is likely part of it.

A request to map the NPU's host memory with 2 MB pages, with measurements by page size: amd/xdna-driver#1817. FastFlowLM's Windows / Linux numbers there would strengthen it.

Lenguaje dominante
C++
Estrellas
2.1k
Forks
184
Merge medio
12 h 22 min
PR fusionados (30 d)
239

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ROCm/FastFlowLM

Todos los issues de ROCm/FastFlowLM

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.