From 8ac9fa6194392daae1df2a3f0191046c96cbae9a Mon Sep 17 00:00:00 2001 From: Franklin He Date: Mon, 26 Apr 2021 11:26:35 +0800 Subject: [PATCH] Add a boost to NNAPI DarwiNN HAL for better perf&power See http://shortn/_X7vYHND2xN for testing with various NN models faster execution of NNAPI results in less execution time and in turn, less total power consumed. Bug: 183576817 Test: adb push'd rc file to a device `cat /dev/cpuctl/nnapi-hal/cpu.uclamp.min` == 15.00 ran MLPerf, got better scores Change-Id: I398c3741fc46958f95a9b608a27b52da47c69597 --- conf/init.gs101.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 03d8c99d..08c69111 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -178,6 +178,9 @@ on init # start watchdogd start watchdogd + # Add a boost for NNAPI HAL + write /dev/cpuctl/nnapi-hal/cpu.uclamp.min 15 + # For GKI kernel, no device specific modules on init setprop vendor.device.modules.ready 1