-
Notifications
You must be signed in to change notification settings - Fork 747
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
add cuda build for librealsense2 #1032
base: master
Are you sure you want to change the base?
Conversation
CUDA is only available for linux-arm64, linux-ppc64le, linux-x86_64, and windows-x86_64, but it won't work with linux-arm64 and linux-ppc64le because we would need first to get the cross-compiler working on GitHub Actions, so please adjust the workflows/librealsense2.yml and platform/gpu/pom.xml files with only linux-x86_64 and windows-x86_64, for now anyway. Thanks! |
I modified to add CUDA option for only linux-x86_64 and windows-x86_64. BTW, CUDA option is originally for ARM platform because librealsense2 supports only SSE and CUDA backend, NEON is not implemented. |
If you would like to figure how to get the cross-compiler working for ARM, please do!
|
Actually I don't understand GitHub Actions at all, but I'll try to learn. |
No need to learn GitHub Actions. We first need to get it working, somewhere, anywhere, it doesn't matter, for now. We'll worry about GitHub Actions later.
|
I did build success on pure arm platform with CUDA, but I'm not sure whether we can build CUDA with cross compiling. |
Maybe, I don't think that it works well though. Please try to make it work either way.
|
I found CUDA is not supported by ARM except for Jetson. So I removed ARM build from GitHub Actions workflow, but cuda build option is left so that we can get linux-arm64-gpu.jar if we build with physical arm platform such as Jetson. |
CUDA does support ARM since 11.0: |
In any case, please fix the workflow and let's see if there are any build errors. Thanks! |
Add cuda build option
BUILD_WITH_CUDA
for librealsense2.We can get benefits of cuda for some processes such as alignment.