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

Each version of org.bytedeco.cuda requires same version cuda toolkit? #1527

Open
Zain-Shamshad opened this issue Aug 12, 2024 · 1 comment
Open

Comments

@Zain-Shamshad
Copy link

Hi, @saudet,

Recently I switched to cuda support for opencv in java using org.bytedeco.cuda version 12.1-8.9-1.5.9. Javacpp version 1.5.9 and Opencv version 4.7.0-1.5.9.

The code compiled successfully But I kept encountering UnsatisfiedLinkError at runtime for different methods.

e.g.,

GpuMat gpuFrame1 = new GpuMat.....;

org. bytedeco. opencv. opencv_cudafilters.Filter f = org. bytedeco. opencv. global. opencv_cudafilters.createGaussianFilter(gpuFrame1.type(), -1, new Size(9, 9), 2);

Eventually I had to download and install Cuda Toolkit version 12.x to resolve this error. Now, my concern is that with this little change do I need to update/install same Cuda Toolkit version everywhere with code or is there any workaround for this as the jars are already packaged within code.

Kindly, is there anything we can do to get rid of this step maybe by packaging code with any .dlls and if yes then which ones please and if not then any help would be greatly appreciated. Thanks.

@saudet
Copy link
Member

saudet commented Aug 12, 2024

Please add a dependency on cuda-platform-redist like this:
https://github.com/bytedeco/javacpp-presets/blob/master/opencv/samples/pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants