Skip to content

Compiling from source, cuDNN version is not compatible? How can I change the cuDNN compile version? #500

Open

Description

@Jefftu1024

I use mvn install java-0.5.0 in jetson with below environment. Finally it completed and generated the "tensorflow-core-api-0.5.0-linux-arm64-gpu.jar".

System information

  • OS Platform and Distribution : Linux Ubuntu 20.04 arm64
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: 2.10.1
  • Java version (i.e., the output of java -version): openjdk version "11.0.20"
  • Java command line flags (e.g., GC parameters):
  • Installed from Maven Central?:
  • Bazel version (if compiling from source): 5.4.1
  • GCC/Compiler version (if compiling from source): 9.4.0
  • CUDA/cuDNN version: CUDA11.4+CuDNN8.6.0
  • GPU model and memory:

But when I run the model , the error is occured. Here is the error log:
"2023-08-01 09:57:03.793190: E external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_dnn.cc:377] Loaded runtime CuDNN library: 8.6.0 but source was compiled with: 8.9.0. CuDNN library needs to have matching major version and equal or higher minor version. If using a binary install, upgrade your CuDNN library. If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration."
453ad32b83ae0637ea2e646e0504851

I have tried upgrade CuDNN to 8.9.0 and run again, but it's run failed with error-"tensorflow/core/framework/op_kernel.cc:1780] OP_REQUIRES failed at conv_ops.cc:1143 : NOT_FOUND: No algorithm worked! Error messages:". I think this may be the environment doesn't match.
614c484dff4a18d1c0a9bd186efcfa2

So how can I resolve this problem? I think this is a way to fix the problem that is to change the cuDNN compile version, but I can't find any info about this.
P.S.: I run the model successfully in my local machine(windows11 x86_64...)

Best Regards

Activity

  1. Craigacp commented on Aug 3, 2023

    @Craigacp
    Collaborator

    When you ran it after upgrading cuDNN it ran in Python? TF-Java doesn't have a python VM running, so what error message do you get out of TF-Java after cuDNN has been upgraded?

  2. Jefftu1024 commented on Aug 4, 2023

    @Jefftu1024
    Author

    I've got the same error like python. I forget print the screen so replace it with python. Now I reproducing it below.
    图片
    图片

  3. priyanshuvishwakarma273403 commented on Jul 2, 2026

    @priyanshuvishwakarma273403

    hi @maintainer can i fix this issue??

  4. Craigacp commented on Jul 2, 2026

    @Craigacp
    Collaborator

    Since this issue was filed we've moved our binary generation over so that we directly use the ones provided by Google, meaning if it still happens (which I've no evidence of) then it is an issue for the main TensorFlow repo.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions