-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrai_build.yml
More file actions
28 lines (27 loc) · 1.15 KB
/
rai_build.yml
File metadata and controls
28 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
rai:
version: 0.2
image: cwpearson/ece408_mxnet_docker:amd64-gpu-2018sp-latest
resources:
cpu:
architecture: amd64
gpu:
architecture: pascal
count: 1
network: false
commands:
build:
- /bin/bash -c "cp -rv /ece408_src/* /mxnet/src/operator/custom" # copy golden files to mxnet source tree
- /bin/bash -c "cp -rv /src/* /build" # copy the project folder to /build so everything appears in the upload
- /bin/bash -c "for src in ece408_src/*; do cp -v $src /mxnet/src/operator/custom/.; done" # copy source files to mxnet tree
- nice -n20 make -C /mxnet # build mxnet
- pip2 install --user -e /mxnet/python # install python bindings
#- /usr/bin/time python m1.2.py # execute code
### For 2.1
#- /usr/bin/time python m2.1.py 10
## For 3
- python m3.1.py
# Trying to get time report using based on the suggestion provided online
#- nvprof -o timeline.nvvp --analysis-metrics --events all --metrics all --profile-from-start off python m3.1.py 100
## For 3, Getting timeline report
#- nvprof -o timeline.nvprof python m3.1.py 100
#- nvprof --analysis-metrics -o analysis.nvprof python m3.1.py 100