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

compile error with THC/THC.h #47

Open
Holmes-Alan opened this issue Oct 28, 2023 · 1 comment
Open

compile error with THC/THC.h #47

Holmes-Alan opened this issue Oct 28, 2023 · 1 comment

Comments

@Holmes-Alan
Copy link

compile error as follows,

src/ballquery/ballquery_cuda.cpp:3:10: fatal error: THC/THC.h: No such file or directory

Is it because the Pytorch version?

@Rambler30
Copy link

i set ballquery_cuda.cpp to
#include <torch/serialize/tensor.h>
#include
// #include <THC/THC.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAEvent.h>
#include "ballquery_cuda_kernel.h"
// extern THCState *state;
the problem solved. i hope it can help u.

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