Javacpp-presets: [Question] about while including dependency in maven Repository for javacpp

Created on 15 Oct 2020  路  8Comments  路  Source: bytedeco/javacpp-presets

when including dependency in pom.xml


org.bytedeco
opencv-platform
4.1.0-1.5.1

    <!-- Additional dependencies required to use CUDA and cuDNN -->
    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>opencv</artifactId>
        <version>4.1.0-1.5.1</version>
        <classifier>linux-x86_64-gpu</classifier>
    </dependency>

    <!-- Additional dependencies to use bundled CUDA and cuDNN -->
    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>cuda-platform</artifactId>
        <version>10.1-7.6-1.5.1</version>
        <classifier>linux-x86_64-redist</classifier>
    </dependency>

the above dependency working with GPUMAT HAD NO ISSUE

but,when i try for latest version of 4.4.0-1.5.4


org.bytedeco
opencv-platform
4.4.0-1.5.4

    ;
    <dependency>
        <groupId>org.bytedeco</groupId>
        <artifactId>opencv-platform-gpu</artifactId>
        <version>4.4.0-1.5.4</version>
    </dependency>

it gives these error
Exception in thread "main" java.lang.RuntimeException: OpenCV(4.4.0) /home/travis/build/javacpp-presets/opencv/cppbuild/linux-x86_64-gpu/opencv-4.4.0/modules/core/src/cuda/gpu_mat.cu:116: error: (-217:Gpu API call) CUDA driver version is insufficient for CUDA runtime version in function 'allocate'

at org.bytedeco.opencv.opencv_core.GpuMat.upload(Native Method)
at Testjar.main(Testjar.java:7)

please tell how to add latest version of javacpp-preset

question

All 8 comments

You'll need to upgrade to CUDA 11.

i add cuda dependency version 11.0-8.0-1.5.4


org.bytedeco
opencv-platform
4.4.0-1.5.4

   <dependency>
       <groupId>org.bytedeco</groupId>
       <artifactId>opencv-platform-gpu</artifactId>
       <version>4.4.0-1.5.4</version>
   </dependency>

   <dependency>
       <groupId>org.bytedeco</groupId>
       <artifactId>opencv</artifactId>
       <version>4.4.0-1.5.4</version>
   </dependency>

   <dependency>
       <groupId>org.bytedeco</groupId>
       <artifactId>cuda</artifactId>
       <version>11.0-8.0-1.5.4</version>
   </dependency>

i am getting same error.
Exception in thread "main" java.lang.RuntimeException: OpenCV(4.4.0) C:/projects/javacpp-presets/opencv/cppbuild/windows-x86_64-gpu/opencv-4.4.0/modules/core/src/cuda/gpu_mat.cu:116: error: (-217:Gpu API call) CUDA driver version is insufficient for CUDA runtime version in function '::DefaultAllocator::allocate'

at org.bytedeco.opencv.opencv_core.GpuMat.upload(Native Method)
at ExampleImageStitching.main(ExampleImageStitching.java:76)

what i am doing wrong?

That's fine for CUDA's runtime, but you will need to update your video driver.
That requires admin permission so we can't do that with Maven.

ok then,i need to download cuda 11 toolkit.
and i also need to set for environment path right.

No, just the video driver: https://www.nvidia.com/Download/index.aspx

thank you!

I have updated my driver.
My driver => GeForce GTX 1050 Ti.Whether it capable for 10.2 or 11.0 cuda toolkit to use GpuMat .
driver old version => 440.0 to updated Driver Version: 450.80.02

after update my driver.
it works! thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

archenroot picture archenroot  路  23Comments

mmanco picture mmanco  路  20Comments

oneengineer picture oneengineer  路  34Comments

blueberry picture blueberry  路  32Comments

nanguantong picture nanguantong  路  25Comments