Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 954 Bytes

BUILDING.md

File metadata and controls

45 lines (28 loc) · 954 Bytes

Building and Testing PlaidML

PlaidML depends on Bazel v0.9.0 or higher.

Building PlaidML

Linux

bazel build plaidml:wheel plaidml/keras:wheel
sudo pip install -U bazel-bin/plaidml/*whl bazel-bin/plaidml/keras/*whl

macOS

The versions of bison and flex that are provided with xcode are too old to build PlaidML. It's easiest to use homebrew to install all the prerequisites:

brew install bazel bison flex

Then, use bazel to build, sepecifying the correct config from tools/bazel.rc:

bazel build plaidml:wheel plaidml/keras:wheel --config macos-10.12
sudo pip install -U bazel-bin/plaidml/*whl bazel-bin/plaidml/keras/*whl

Testing PlaidML

Unit tests are executed through bazel:

bazel test ...

Unit tests for frontends are marked manual and must be executed individually (requires running plaidml-setup prior to execution)

bazel test plaidml/keras:backend_test