THC and THCUNN not found on my machine

The PyTorch code hs the following core libraries (as also mentioned in this post):


When I am checking the installation on my own machine, I see the followings:

$ pwd

$ ls -lha
total 0
drwxr-xr-x    9 daniel  staff   288B Dec 30 15:48 .
drwxr-xr-x   20 daniel  staff   640B Dec 30 15:48 ..
drwxr-xr-x  143 daniel  staff   4.5K Dec 30 15:48 ATen
drwxr-xr-x   39 daniel  staff   1.2K Dec 30 15:48 TH
drwxr-xr-x    4 daniel  staff   128B Nov  1 16:26 THNN
drwxr-xr-x   14 daniel  staff   448B Dec 30 15:48 c10
drwxr-xr-x    5 daniel  staff   160B Dec 30 15:48 caffe2
drwxr-xr-x   21 daniel  staff   672B Dec 30 15:48 pybind11
drwxr-xr-x    6 daniel  staff   192B Dec 30 15:48 torch

There are two core libraries missing: THC and THCUNN. I checked my Linux installation and it contained the missing libraries.

Hi,have you ever solved this problem? I also meet the dilemma that my Pytorch do not have include dir. And maybe your solution will help.

The TH namespace was merged to e.g. Aten so these files shouldn’t be there anymore.