undefined symbol: THPVariableClass

Ouverte
#6 13 commentaires 5 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
18/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
cpp, python, pytorch
Domaine
build-system

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

  • 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.

Langage dominant
Python
Étoiles
1.2k
Forks
250
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de pytorch/extension-cpp

Toutes les issues de pytorch/extension-cpp

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.