Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Build with custom cuda/cudnn version #770

Closed

Description

@Cospel

Describe the feature and the current behaviour/state.

Right now the build is locked to cuda 10.1. However tensorflow2+ is able to build from source with different CUDA versions (by specifying it through configure). Can this package mimic the tf2 build process?

For example I'm working mostly with docker containers and server instances which has cuda 10.0 and doing custom builds of tf2 for this cuda version.

Right now we are unable to install or build addons as it is locked to 10.1. It will be great if users are able to set during the configuration their own cuda version as it is in tensorflow2+.

This would also help when future versions of cuda are available and we want to test them.

Relevant information

  • Are you willing to contribute it (yes/no): -
  • Are you willing to maintain it going forward? (yes/no): -
  • Is there a relevant academic paper? (if so, where): -
  • Is there already an implementation in another framework? (if so, where):
  • Was it part of tf.contrib? (if so, where): -

Which API type would this fall under (layer, metric, optimizer, etc.)

Who will benefit with this feature?
Everyone.

Any other info.

Activity

  1. seanpmorgan commented on Dec 16, 2019

    @seanpmorgan
    Member

    Describe the feature and the current behaviour/state.

    Right now the build is locked to cuda 10.1. However tensorflow2+ is able to build from source with different CUDA versions (by specifying it through configure). Can this package mimic the tf2 build process?

    For example I'm working mostly with docker containers and server instances which has cuda 10.0 and doing custom builds of tf2 for this cuda version.

    Right now we are unable to install or build addons as it is locked to 10.1. It will be great if users are able to set during the configuration their own cuda version as it is in tensorflow2+.

    This would also help when future versions of cuda are available and we want to test them.

    Relevant information

    • Are you willing to contribute it (yes/no): -
    • Are you willing to maintain it going forward? (yes/no): -
    • Is there a relevant academic paper? (if so, where): -
    • Is there already an implementation in another framework? (if so, where):
    • Was it part of tf.contrib? (if so, where): -

    Which API type would this fall under (layer, metric, optimizer, etc.)

    Who will benefit with this feature?
    Everyone.

    Any other info.

    Hi @Cospel! Thanks for bringing this up. So we actually use the same script for identifying CUDA as TF-Core. This means it should be pretty straight forward to enable this.

    We're in the middle of some pretty big BUILD revamping (enable Windows, etc.) so this might get pushed a week or two, but we'll be sure to support this within the config script. Currently it does check for environment variables of alternative paths (cudNN/CUDA), but there may be some breakage and it hasn't been tested with other versions.

  2. SmileTM commented on Dec 19, 2019

    @SmileTM

    have a good news to you.
    I have successed to bazel and install the addons in cuda 9.0 and cudnn 7.
    You can refer
    http://s-tm.cn/2019/12/19/tensorflow-addons/

  3. seanpmorgan commented on Apr 28, 2020

    @seanpmorgan
    Member

    This should be significantly easier to manage if we can use an exported TF method for finding CUDA. This looks possible if tensorflow/tensorflow#38964 merges

  4. Cospel commented on Apr 29, 2020

    @Cospel
    Author

    Thanks for the great news! Let's hope that it will be merged soon 👍

  5. Cospel commented on May 21, 2020

    @Cospel
    Author

    After a lot of tries and nights, we were able to build tf-addons without segmentation fault #1298 #1277.

    Here is what I did: https://gist.github.com/Cospel/fb9c313cdb83d5e474aa0e3f956d14e0

    Here is the built pip for tf-addons on cuda10, cuddn7.5 for centos and python3.6 and tf2.2: https://github.com/Ximilar-com/tf2-wheels/blob/master/README.md#tf2-addons

  6. seanpmorgan commented on Mar 1, 2023

    @seanpmorgan
    Member

    TensorFlow Addons is transitioning to a minimal maintenance and release mode. New features will not be added to this repository. For more information, please see our public messaging on this decision:
    TensorFlow Addons Wind Down

    Please consider sending feature requests / contributions to other repositories in the TF community with a similar charters to TFA:
    Keras
    Keras-CV
    Keras-NLP

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions