-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from yuhc/fix_legacy_manager
Port legacy manager
- Loading branch information
Showing
19 changed files
with
2,739 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
Install TensorFlow | ||
================== | ||
|
||
Install TensorFlow 1.14 from [yuhc/tensorflow-cudart-dynam](https://github.com/yuhc/tensorflow-cudart-dynam). | ||
Check out [BUILD.md](https://github.com/yuhc/tensorflow-cudart-dynam/blob/r1.14/BUILD.md) for build | ||
instructions. | ||
|
||
Build specification | ||
=================== | ||
|
||
Configure AvA in `~/ava-build` with | ||
|
||
```shell | ||
cmake -DAVA_GEN_TF_SPEC=ON -DAVA_MANAGER_LEGACY=ON ../ava | ||
make | ||
``` | ||
|
||
Run benchmark | ||
============= | ||
|
||
Dump CUDA binaries for the benchmark (Generally speaking, in most cases, CUDA | ||
binaries generated from a large TensorFlow benchmark can be used for most other | ||
benchmarks): | ||
|
||
```shell | ||
./install/bin/legacy_manager install/tf_dump/bin/worker | ||
LD_LIBRARY_PATH=~/ava-build/install/tf_dump/lib/ python3 your_tensorflow_benchmark.py | ||
sudo mkdir /cuda_dumps | ||
sudo cp /tmp/*.ava /cuda_dumps | ||
``` | ||
|
||
> CUDA version: search `10.1` in `tf_dump.c` and `tf_opt.c`. | ||
> Dump path: search `cuda_dumps` in `tf_opt.c`. | ||
The CUDA dumps should be copied to both local (where benchmarks run) and remote | ||
(where API servers run) servers. | ||
|
||
Finally restart AvA manager and run the benchmark: | ||
|
||
```shell | ||
./install/bin/legacy_manager install/tf_opt/bin/worker | ||
LD_LIBRARY_PATH=~/ava-build/install/tf_opt/lib/ python3 your_tensorflow_benchmark.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.