undefined symbol: THPVariableClass

Abierto
#6 13 comentarios 5 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp, python, pytorch
Área
build-system

Línea de trabajo

The failure is a runtime undefined symbol: THPVariableClass when loading the compiled extension lltm_cpp, reported against PyTorch 0.4.0 with CUDA 9.0. Start with the build and linking setup for the extension in the repository, since the reporter suspects a missing library link. Reproducing needs an old PyTorch 0.4.0 environment, and the thread has 13 comments with no linked fix, so the cause is still unresolved.

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

Descripción

  • OS: Ubuntu 16.04
  • PyTorch version: 0.4.0
  • How you installed PyTorch (conda, pip, source): conda
  • Python version: 3.6
  • CUDA/cuDNN version: 9.0
  • GPU models and configuration: Titan XP

I built an extension basing on this tutorial and it used to work. I was then doing some refactoring and fixes (in cuda/cpp code) and afterwards it started failing at runtime:

/home/jatentaki/anaconda3/lib/python3.6/site-packages/sort2_cuda-0.0.0-py3.6-linux-x86_64.egg/lltm_cpp.cpython-36m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

(both for CUDA and cpp versions). Then I tried if the original example still worked, and to my surprise, no longer.

Timeline:

  • My initial success was on some 0.4.0 pre-release source build for cuda8.0.
  • I broke it
  • Trying to troubleshoot, I reinstalled conda and torch for the release 0.4.0 version, with cuda9.0
  • Neither my code nor your original example work

I believe the error just means I am not linking against some static library, but I don't see when and how I could have introduced that change.

Lenguaje dominante
Python
Estrellas
1.2k
Forks
250
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 pytorch/extension-cpp

Todos los issues de pytorch/extension-cpp

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.