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

Several solutions for problems I met #23

Open
Elody-07 opened this issue Dec 21, 2020 · 1 comment
Open

Several solutions for problems I met #23

Elody-07 opened this issue Dec 21, 2020 · 1 comment

Comments

@Elody-07
Copy link

Thanks for your great work! I have met several problems during compiling and find out corresponding solutions to share with everyone.

  1. About CUDA version
    I have tried CUDA-9.0, CUDA=10.1 and CUDA-11.1, turns out CUDA-11.1 works for me
    After compiling successfully in CUDA-9.0 and CUDA-10.1, it breaks down when I tried to import package:

mesh_intersection-0.1.0-py3.7-linux-x86_64.egg/bvh_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor6deviceEv

  1. double_vec_ops.h not found
    Turns out it's in this repo: ./include, move it to ./src

  2. AT_CHECK
    Adding following lines in bvh.cpp before using AT_CHECK

#ifndef AT_CHECK
#define AT_CHECK TORCH_CHECK
#endif

@OOF-dura
Copy link

Thanks for your great work! I have met several problems during compiling and find out corresponding solutions to share with everyone.

  1. About CUDA version
    I have tried CUDA-9.0, CUDA=10.1 and CUDA-11.1, turns out CUDA-11.1 works for me
    After compiling successfully in CUDA-9.0 and CUDA-10.1, it breaks down when I tried to import package:

mesh_intersection-0.1.0-py3.7-linux-x86_64.egg/bvh_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK2at6Tensor6deviceEv

  1. double_vec_ops.h not found
    Turns out it's in this repo: ./include, move it to ./src
  2. AT_CHECK
    Adding following lines in bvh.cpp before using AT_CHECK

#ifndef AT_CHECK
#define AT_CHECK TORCH_CHECK
#endif

Are you able to install it using conda?

sssphil added a commit to sssphil/torch-mesh-isect that referenced this issue Feb 22, 2023
expanded paths in bvh_include_dirs to absolute path, which seems to solve the problems of not finding double_vec_ops.h and helper_math.h (the latter from cuda-samples repo, which is now on github)
AT_CHECK from vchoutas#23
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