diff options
author | 2017-01-17 14:21:08 -0800 | |
---|---|---|
committer | 2017-01-17 14:51:08 -0800 | |
commit | 213f73d8435dd4d5c70b4ee1be2c2602a44695e1 (patch) | |
tree | e11eaf0bda7f2e8f245b7a1269f60338bb4296cf /tensorflow/contrib/hvx | |
parent | 511a753e8ddb19ba6ee25cac226b071a176dad58 (diff) |
Add Makefile for hexagon controller
Change: 144755322
Diffstat (limited to 'tensorflow/contrib/hvx')
3 files changed, 76 insertions, 0 deletions
diff --git a/tensorflow/contrib/hvx/hexagon_controller/Makefile b/tensorflow/contrib/hvx/hexagon_controller/Makefile new file mode 100644 index 0000000000..9fe2ed596a --- /dev/null +++ b/tensorflow/contrib/hvx/hexagon_controller/Makefile @@ -0,0 +1,19 @@ +# Copyright 2017 The TensorFlow Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +include glue/defines.min + +include target/make/android.min + +include $(RULES_MIN) diff --git a/tensorflow/contrib/hvx/hexagon_controller/src_log/include/tfm_log.h b/tensorflow/contrib/hvx/hexagon_controller/src_log/include/tfm_log.h index 55fc000ff4..e8615fd4ec 100644 --- a/tensorflow/contrib/hvx/hexagon_controller/src_log/include/tfm_log.h +++ b/tensorflow/contrib/hvx/hexagon_controller/src_log/include/tfm_log.h @@ -33,6 +33,12 @@ static inline bool IsLogOn(int log_level) { return log_level >= s_log_level; } static inline void SetLogLevel(int log_level) { s_log_level = log_level; } +#define TFMLOGV(fmt, ...) \ + do { \ + if (!IsLogOn(TFM_LOG_LEVEL_VERBOSE)) break; \ + printf(fmt "\n", ##__VA_ARGS__); \ + } while (0) + #define TFMLOGD(fmt, ...) \ do { \ if (!IsLogOn(TFM_LOG_LEVEL_DEBUG)) break; \ diff --git a/tensorflow/contrib/hvx/hexagon_controller/target/make/android.min b/tensorflow/contrib/hvx/hexagon_controller/target/make/android.min new file mode 100644 index 0000000000..8564b19be4 --- /dev/null +++ b/tensorflow/contrib/hvx/hexagon_controller/target/make/android.min @@ -0,0 +1,51 @@ +/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +INCDIRS += ../../../libs/common/adspmsgd/ship/android_Release + +INCDIRS += src_impl/include +INCDIRS += src_log/include +INCDIRS += src_soc_interface/include + +LIBDIRS += ../../../libs/common/adspmsgd/ship/android_Release + +BUILD_DLLS=libhexagon_controller + +hexagon_controller_lib_QAICIDLS += \ +interface/hexagon_nn \ +$(MAKE_D_DSPCV_INCDIR)/dspCV + +hexagon_controller_lib_C_SRCS += \ +src_impl/hexagon_controller \ +src_impl/graph_functions_wrapper \ +src_soc_interface/soc_interface + +hexagon_controller_lib_DLLS += libadsprpc +hexagon_controller_lib_LIBS += rpcmem adspmsgd +hexagon_controller_lib_LD_FLAGS += -llog +hexagon_controller_lib_DEFINES += VERIFY_PRINT_ERROR + +libhexagon_controller_QAICIDLS += $(hexagon_controller_lib_QAICIDLS) +libhexagon_controller_C_SRCS += $(hexagon_controller_lib_C_SRCS) +libhexagon_controller_DLLS += $(hexagon_controller_lib_DLLS) +libhexagon_controller_LIBS += $(hexagon_controller_lib_LIBS) +libhexagon_controller_LD_FLAGS += $(hexagon_controller_lib_LD_FLAGS) +libhexagon_controller_DEFINES += $(hexagon_controller_lib_DEFINES) + +BUILD_COPIES = \ + $(DLLS) \ + $(EXES) \ + $(LIBS) \ + $(SHIP_DIR)/ ; |