Skip to content

Commit 9a2d4d5

Browse files
linbinyufacebook-github-bot
authored andcommittedAug 27, 2020
update build flags for benchmark binaries
Summary: Suggested by Shoaib Meenai, we should use mode/ndk_libcxx to replace mode/gnustl. This diff updated all build flags for caffe2 and pytorch in aibench. For easy management, I created two mode files in xplat/caffe2/mode, and delete buckconfig.ptmobile.pep. Test Plan: caffe2 ``` buck run aibench:run_bench -- -b aibench/specifications/models/caffe2/squeezenet/squeezenet.json --remote --devices s9f ``` https://our.intern.facebook.com/intern/aibench/details/433604719423848 full jit ``` buck run aibench:run_bench -- -b aibench/specifications/models/pytorch/fbnet/fbnet_mobile_inference.json --platform android/full_jit --framework pytorch --remote --devices SM-G960F-8.0.0-26 ``` https://our.intern.facebook.com/intern/aibench/details/189359776958060 lite interpreter ``` buck run aibench:run_bench -- -b aibench/specifications/models/pytorch/fbnet/fbnet_mobile_inference.json --platform android --framework pytorch --remote --devices s9f ``` https://our.intern.facebook.com/intern/aibench/details/568178969092066 Reviewed By: smeenai Differential Revision: D23338089 fbshipit-source-id: 62f4ae2beb004ceaab1f73f4de8ff9e0c152d5ee
1 parent 01f974e commit 9a2d4d5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎mode/aibench_caffe2_android

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--config
2+
caffe2.strip_glog=0
3+
@fbsource//fbandroid/mode/ndk_libcxx

‎mode/aibench_pytorch_android

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--config
2+
user.ndk_cxxflags='-g1'
3+
--config
4+
pt.disable_per_op_profiling=0
5+
@fbsource//fbandroid/mode/ndk_libcxx

0 commit comments

Comments
 (0)
Please sign in to comment.