Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with THC/THC.h #54

Closed
Ngheissari opened this issue Nov 2, 2022 · 3 comments
Closed

problem with THC/THC.h #54

Ngheissari opened this issue Nov 2, 2022 · 3 comments

Comments

@Ngheissari
Copy link

I tried both containers. They result in this error:

GLIP/maskrcnn_benchmark/csrc/cuda/ROIAlign_cuda.cu:5:10: fatal error: THC/THC.h: No such file or directory
#include <THC/THC.h>
^~~~~~~~~~~
compilation terminated.

@KeitaOtani
Copy link

Hello, @Ngheissari.
What version of Pytorch do you use?
THC.h is obsolete in the latest Pytorch.
I used Pytorch 1.9 and it compiled fine.

@amira-essawy
Copy link

Hello @KeitaOtani, have you used the given containers or you installed pytorch by yourself? I tried both options but didn't work fine. Can you help?

@KeitaOtani
Copy link

Hello @amira-essawy !
Are you have the same problem as Ngheissari?
I tried to build GLIP now, and I could compile it correctly.
The commands I used are as follows.

docker run -it --rm --gpus=all pengchuanzhang/pytorch:ubuntu20.04_torch1.9-cuda11.3-nccl2.9.9 /bin/bash
pip install einops shapely timm yacs tensorboardX ftfy prettytable pymongo
pip install transformers
git clone https://github.com/microsoft/GLIP.git
cd GLIP
python setup.py build develop --user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants