Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[bug] Can't compile varlen mamba with base image 25.11

Abierto
#416 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp, python

Línea de trabajo

Start with csrc/selective_scan/reverse_scan.cuh, where the three errors occur at lines 132 (cub::LaneId()) and 335 and 353 (cub::CTA_SYNC()), and with the hard-coded -gencode architectures in setup.py. Reproduce the build in a container on the 25.11 base image. Done means the extension compiles there, which likely requires updating the architecture list and replacing the removed CUB APIs. The fix belongs to the external varlen_mamba repo, so confirm with maintainers which project should receive it.

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

Descripción

bug

🐞 Describe the Bug

We cannot compile the varlen implementation of Mamba from https://github.com/jxiw/varlen_mamba in the new base image 25.11. setup.py hard-codes some cuda architectures which are no longer supported, which is easily fixable, but then I'm getting cpp compile errors, ex.

      [6/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /workspace/varlen_mamba/build/temp.linux-aarch64-cpython-312/csrc/selective_scan/selective_scan_bwd_fp16_complex.o.d -I/workspace/varlen_mamba/csrc/selective_scan -I/usr/local/lib/python3.12/dist-packages/torch/include -I/usr/local/lib/python3.12/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/cuda/include -I/usr/include/python3.12 -c -c /workspace/varlen_mamba/csrc/selective_scan/selective_scan_bwd_fp16_complex.cu -o /workspace/varlen_mamba/build/temp.linux-aarch64-cpython-312/csrc/selective_scan/selective_scan_bwd_fp16_complex.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -std=c++17 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_BFLOAT16_OPERATORS__ -U__CUDA_NO_BFLOAT16_CONVERSIONS__ -U__CUDA_NO_BFLOAT162_OPERATORS__ -U__CUDA_NO_BFLOAT162_CONVERSIONS__ --expt-relaxed-constexpr --expt-extended-lambda --use_fast_math --ptxas-options=-v -lineinfo -gencode arch=compute_80,code=sm_80 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_90,code=sm_90 --threads 4 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=selective_scan_cuda
      FAILED: [code=255] /workspace/varlen_mamba/build/temp.linux-aarch64-cpython-312/csrc/selective_scan/selective_scan_bwd_fp16_complex.o
      /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /workspace/varlen_mamba/build/temp.linux-aarch64-cpython-312/csrc/selective_scan/selective_scan_bwd_fp16_complex.o.d -I/workspace/varlen_mamba/csrc/selective_scan -I/usr/local/lib/python3.12/dist-packages/torch/include -I/usr/local/lib/python3.12/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/cuda/include -I/usr/include/python3.12 -c -c /workspace/varlen_mamba/csrc/selective_scan/selective_scan_bwd_fp16_complex.cu -o /workspace/varlen_mamba/build/temp.linux-aarch64-cpython-312/csrc/selective_scan/selective_scan_bwd_fp16_complex.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -std=c++17 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_BFLOAT16_OPERATORS__ -U__CUDA_NO_BFLOAT16_CONVERSIONS__ -U__CUDA_NO_BFLOAT162_OPERATORS__ -U__CUDA_NO_BFLOAT162_CONVERSIONS__ --expt-relaxed-constexpr --expt-extended-lambda --use_fast_math --ptxas-options=-v -lineinfo -gencode arch=compute_80,code=sm_80 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_90,code=sm_90 --threads 4 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=selective_scan_cuda
      /workspace/varlen_mamba/csrc/selective_scan/reverse_scan.cuh(132): error: namespace "cub" has no member "LaneId"
                : lane_id(cub::LaneId())
                               ^
      
      /workspace/varlen_mamba/csrc/selective_scan/reverse_scan.cuh(335): error: namespace "cub" has no member "CTA_SYNC"
                    cub::CTA_SYNC();
                         ^
      
      /workspace/varlen_mamba/csrc/selective_scan/reverse_scan.cuh(353): error: namespace "cub" has no member "CTA_SYNC"
                    cub::CTA_SYNC();
                         ^
      
      3 errors detected in the compilation of "/workspace/varlen_mamba/csrc/selective_scan/selective_scan_bwd_fp16_complex.cu".
Lenguaje dominante
Python
Estrellas
337
Forks
52
Métricas de merge de PR
Sin PR fusionados en 30 d

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 ServiceNow/Fast-LLM

Todos los issues de ServiceNow/Fast-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.