Skip to content

Commit d9ed9d0

Browse files
authored
BLD: Package GPU Ops (#456)
* Run GPU docker image * Run without nvidia runtime * Update docs
1 parent 2d977c8 commit d9ed9d0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- stage: build
2929
name: "Build on Ubuntu 16.04 for Python 2.7 3.5 3.6 3.7"
3030
script:
31-
- bash -x -e tools/run_docker.sh -c 'tools/ci_build/builds/release_linux.sh'
31+
# Build GPU kernels without runtime=nvidia as there are no GPUs/Drivers
32+
- docker run -v ${PWD}:/addons -w /addons tensorflow/tensorflow:custom-op-gpu-ubuntu16 tools/ci_build/builds/release_linux.sh
3233
after_success:
3334
- twine upload -u $PYPI_USER -p $PYPI_PW wheelhouse/*.whl
3435

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ https://bazel.build/) build system.
7373
git clone https://github.com/tensorflow/addons.git
7474
cd addons
7575
76+
# If building GPU Ops (Requires CUDA 10.0 and CuDNN 7)
77+
export TF_NEED_CUDA=1
78+
7679
# This script links project with TensorFlow dependency
7780
./configure.sh
7881
@@ -93,6 +96,11 @@ User experience and project maintainability are core concepts in
9396
TF-Addons. In order to achieve these we require that our additions
9497
conform to established API patterns seen in core TensorFlow.
9598

99+
#### GPU/CPU Custom-Ops
100+
A major benefit of TensorFlow Addons is that there are precompiled ops. Should
101+
a CUDA 10 installation not be found then the op will automatically fall back to
102+
a CPU implementation.
103+
96104
#### Proxy Maintainership
97105
Addons has been designed to compartmentalize subpackages and submodules so
98106
that they can be maintained by users who have expertise and a vested interest

0 commit comments

Comments
 (0)