Comments (3)
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.
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.
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)
- tensorflow: build for genericx86-64 target fails HOT 8
- meta-python2 is dead HOT 2
- tensorflow 2.4 on armv7 does not build HOT 4
- Archive script failure
- tensorflow on riscv64
- tensorflow building is failed with glibc 2.29.
- meta-tensorflow/meta-demo/conf/layer.conf needs zeus compatibility added HOT 1
- build fail with bazel-native HOT 1
- Bazel Checksum missmatch @icu component HOT 1
- Build fails with Yocto zeus
- using `bazel sync` in `do_fetch`
- https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-tensorflow.