mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
Updated dhrystone to use the new resource resoultion mechanics.
This commit is contained in:
parent
15886ffa29
commit
84c1fc2bcf
@ -18,10 +18,7 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from wa import Workload, Parameter, ConfigError
|
from wa import Workload, Parameter, ConfigError, Executable
|
||||||
|
|
||||||
|
|
||||||
this_dir = os.path.dirname(__file__)
|
|
||||||
|
|
||||||
|
|
||||||
class Dhrystone(Workload):
|
class Dhrystone(Workload):
|
||||||
@ -75,7 +72,8 @@ class Dhrystone(Workload):
|
|||||||
]
|
]
|
||||||
|
|
||||||
def initialize(self, context):
|
def initialize(self, context):
|
||||||
host_exe = os.path.join(this_dir, 'dhrystone')
|
resource = Executable(self, self.target.abi, 'dhrystone')
|
||||||
|
host_exe = context.resolver.get(resource)
|
||||||
Dhrystone.target_exe = self.target.install(host_exe)
|
Dhrystone.target_exe = self.target.install(host_exe)
|
||||||
|
|
||||||
def setup(self, context):
|
def setup(self, context):
|
||||||
|
BIN
wa/workloads/dhrystone/bin/arm64/dhrystone
Executable file
BIN
wa/workloads/dhrystone/bin/arm64/dhrystone
Executable file
Binary file not shown.
BIN
wa/workloads/dhrystone/bin/armeabi/dhrystone
Executable file
BIN
wa/workloads/dhrystone/bin/armeabi/dhrystone
Executable file
Binary file not shown.
Binary file not shown.
10
wa/workloads/dhrystone/src/build.sh → wa/workloads/dhrystone/src/Makefile
Executable file → Normal file
10
wa/workloads/dhrystone/src/build.sh → wa/workloads/dhrystone/src/Makefile
Executable file → Normal file
@ -13,11 +13,5 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
dhrystone: dhrystone.c
|
||||||
ndk-build
|
$(CROSS_COMPILE)gcc -O3 -static dhrystone.c -o dhrystone
|
||||||
if [[ -f libs/armeabi/dhrystone ]]; then
|
|
||||||
echo "Dhrystone binary updated."
|
|
||||||
cp libs/armeabi/dhrystone ..
|
|
||||||
rm -rf libs
|
|
||||||
rm -rf obj
|
|
||||||
fi
|
|
@ -1,11 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_SRC_FILES:= dhrystone.c
|
|
||||||
LOCAL_MODULE := dhrystone
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
LOCAL_STATIC_LIBRARIES := libc
|
|
||||||
LOCAL_SHARED_LIBRARIES := liblog
|
|
||||||
LOCAL_LDLIBS := -llog
|
|
||||||
LOCAL_CFLAGS := -O2
|
|
||||||
include $(BUILD_EXECUTABLE)
|
|
Loading…
x
Reference in New Issue
Block a user