diff --git a/.gitignore b/.gitignore index e24bb3325979c9e6151ae090b853f733d2151dea..769047a4de7baaf6c9682196b76f08f9ba631ab0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,5 @@ tags cmake-build-debug/ *.pyc mace/codegen/models/ -mace/codegen/opencl/ mace/codegen/opencl_bin/ -mace/codegen/tuning/ mace/codegen/version/ diff --git a/mace/codegen/opencl/opencl_compiled_program.cc b/mace/codegen/opencl/opencl_compiled_program.cc new file mode 100644 index 0000000000000000000000000000000000000000..35c5d6417e8e11205799f20c1d9d533eb13271a7 --- /dev/null +++ b/mace/codegen/opencl/opencl_compiled_program.cc @@ -0,0 +1,16 @@ +// +// Copyright (c) 2017 XiaoMi All rights reserved. +// + +// This is a generated file, DO NOT EDIT + +#include +#include +#include + +namespace mace { + +extern const std::map> + kCompiledProgramMap = {}; + +} // namespace diff --git a/mace/codegen/tuning/tuning_params.cc b/mace/codegen/tuning/tuning_params.cc new file mode 100644 index 0000000000000000000000000000000000000000..12b5199bc2dcff7dab6bbd3fb68e0c9c7addd0f6 --- /dev/null +++ b/mace/codegen/tuning/tuning_params.cc @@ -0,0 +1,16 @@ +// +// Copyright (c) 2017 XiaoMi All rights reserved. +// + +// This is a generated file, DO NOT EDIT + +#include +#include +#include + +namespace mace { + +extern const std::map> + kTuningParamsData = {}; + +} // namespace diff --git a/tools/validate_gcn.sh b/tools/validate_gcn.sh index d6dec6417b94e8d30d804d6f3c127936464b8b31..ed7d1875a2575344352022c1dab7d6dc8fbdba23 100755 --- a/tools/validate_gcn.sh +++ b/tools/validate_gcn.sh @@ -23,7 +23,7 @@ MACE_SOURCE_DIR=`/bin/pwd` INPUT_FILE_NAME='model_input' OUTPUT_FILE_NAME='gcn.out' OUTPUT_LIST_FILE='gcn.list' -PHONE_DATA_DIR="/data/local/tmp/${MODEL_TAG}" +PHONE_DATA_DIR="/data/local/tmp/mace_gcn" KERNEL_DIR="${PHONE_DATA_DIR}/cl/" CODEGEN_DIR=${MACE_SOURCE_DIR}/mace/codegen MODEL_CODEGEN_DIR=${CODEGEN_DIR}/models/${MODEL_TAG} @@ -51,7 +51,7 @@ build_and_run() bazel build --verbose_failures -c opt --strip always mace/examples:mace_run \ --crosstool_top=//external:android/crosstool \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ - --cpu=arm64-v8a \ + --cpu=armeabi-v7a \ --copt="-std=c++11" \ --copt="-D_GLIBCXX_USE_C99_MATH_TR1" \ --copt="-Werror=return-type" \