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

THC/THC.h doesn't exist #77

Closed
AinaraC opened this issue Dec 13, 2024 · 2 comments
Closed

THC/THC.h doesn't exist #77

AinaraC opened this issue Dec 13, 2024 · 2 comments

Comments

@AinaraC
Copy link

AinaraC commented Dec 13, 2024

Hi!

I'm trying to run a model on a Jetson Orin with CUDA 12.6 and PyTorch 2.5.0, but it seems like the THC library doesn't exist anymore. I really need to run the model with these versions because my Jetson doesn't support earlier versions.

If anyone is facing this problem, I would be very grateful for your help.

@AinaraC AinaraC closed this as completed Dec 17, 2024
@AinaraC
Copy link
Author

AinaraC commented Dec 17, 2024

In later versions of PyTorch, the THC library has been replaced by ATen.

I've found the solution on the OpenPCDet official repository. Some of the pcdet/ops scripts have been updated in this repository, so you can download them directly from there.

According to this issue, for the remaining scripts, you can remove the following lines:

#include THC/THC.h
extern THCState *state;

It works fine for me.

@Puiching-Memory
Copy link

After torch1.11, THC was removed

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

2 participants