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

Replace pycuda with torch extensions #82

Open
nexuslrf opened this issue Mar 28, 2023 · 5 comments
Open

Replace pycuda with torch extensions #82

nexuslrf opened this issue Mar 28, 2023 · 5 comments

Comments

@nexuslrf
Copy link

Hi,

I made a fork of this repo (https://github.com/nexuslrf/pointnerf/tree/master/models/neural_points/c_ext) and replaced all pycuda modules with torch extension, the CUDA kernels are almost the same as before. I verified the modifications by running w_n360/lego.sh & dtu_test_inf/inftest_scan1.sh.

For those who are still struggling with pycuda, you can give it try.

I am willing to create a pull request for this, but it might need more verifications from the community.

@nexuslrf nexuslrf mentioned this issue Mar 28, 2023
@RuixiangXue
Copy link

Hi @nexuslrf , I also meet the same question about pycuda, but I have no idea about how to try your thought. Can u share your code about this file?

@nexuslrf
Copy link
Author

Hi @RuixiangXue , you can replace/add all the changed files in this commit:
master...nexuslrf:pointnerf:master

After that, run the cmd shown in https://github.com/nexuslrf/pointnerf/blob/master/models/neural_points/c_ext/README.md

@Xharlie
Copy link
Owner

Xharlie commented Apr 25, 2023

hi, we have updated the pytorch cuda extension 5 months ago, is your extension similar?

@CTouch
Copy link

CTouch commented Dec 12, 2023

goooooood job!

@xiaoc57
Copy link

xiaoc57 commented Dec 15, 2023

If you have any doubts, you can replace the orgin models folder directly. This work is helpful for me.

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

5 participants