-
Notifications
You must be signed in to change notification settings - Fork 5.6k
OP benchmark 调试手册
GaoWei8 edited this page Dec 21, 2020
·
15 revisions
$ git clone https://github.com/PaddlePaddle/benchmark.git
$ cd benchmark
$ nvidia-docker run -it --net=host --privileged --rm -v $(pwd):/home/benchmark paddlepaddle/paddle:latest-dev-cuda10.1-cudnn7-gcc82 /bin/bash
$ export PATH=/usr/local/bin:${PATH}
$ ln -fs /usr/local/bin/python3.7 /usr/local/bin/python
$ ln -fs /usr/local/bin/pip3.7 /usr/local/bin/pip
$ pip install –U pip
$ wget -q https://paddle-wheel.bj.bcebos.com/0.0.0-gpu-cuda10-cudnn7-mkl/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl
$ pip install paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl
$ pip install tensorflow==2.3.0
$ bash run.sh api_name config_id
- api_name: 将要测试的OP名字
- config_id :使用 benchmark/api/tests_v2/configs/OP.json 中第几个配置,默认为第0
$ bash run.sh abs 0
$ bash run.sh api_name config_id speed
$ bash run.sh abs 0 speed
目前仅要求内部用户添加OP测试脚本和配置,可参考OP测试脚本和配置增加手册