Giter Club home page Giter Club logo

Comments (3)

paroque28 avatar paroque28 commented on June 30, 2024 1

Hi @hongxu-jia
I have been working on enabling TensorFlow with GPU.
The most important thing is needed is getting the Crosstool wrapper for compiling CUDA programs:
https://github.com/tensorflow/tensorflow/blob/v1.13.0-rc2/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl

I am still working on it but I would thank any help getting Bazel working on with the yocto_compiler_configure.bzl. We need to change Windriver's GCC compiler for the wrapper that detects CUDA.

I have already been able to add the PACKAGECONFIG[cuda] and all the necessary flags and configs to enable the right do_configure.

PD: CUDA is available through meta-tegra.

Regards,
Pablo

from meta-tensorflow.

hongxu-jia avatar hongxu-jia commented on June 30, 2024

I did not try GPU, but in recipe tensorflow, we have var-TF_CONFIG:
...
TF_CONFIG ?= "
TF_NEED_CUDA=0
TF_NEED_OPENCL_SYCL=0
TF_NEED_OPENCL=0
TF_CUDA_CLANG=0
TF_DOWNLOAD_CLANG=0
TF_ENABLE_XLA=0
TF_NEED_MPI=0
TF_SET_ANDROID_WORKSPACE=0
"
...
Would you please re-assign it with TF_NEED_CUDA=1 or anything you require

from meta-tensorflow.

hongxu-jia avatar hongxu-jia commented on June 30, 2024

I am not sure about the cuda support on cross compiling, I suggest you to have a try on tensorflow-native recipe if the host support cuda, manually set s/TF_NEED_CUDA=0/TF_NEED_CUDA=1/

But I think it still require extra cuda packages, such as tensorflow/tensorflow#4827

from meta-tensorflow.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.