aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-08-18 11:47:49 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-08-18 13:02:59 -0700
commit08a32f1488d732ddef8d4a070f27a70695729cc2 (patch)
tree8d21bc898e967a59d514095c3d1cde20df311e55
parent34b4c9bd78cfb838489f1bdbd292bb3914bf86e4 (diff)
Add a header for hexagon shared library
Change: 130671228
-rw-r--r--tensorflow/core/platform/hexagon/gemm_wrapper.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tensorflow/core/platform/hexagon/gemm_wrapper.h b/tensorflow/core/platform/hexagon/gemm_wrapper.h
new file mode 100644
index 0000000000..30890d4655
--- /dev/null
+++ b/tensorflow/core/platform/hexagon/gemm_wrapper.h
@@ -0,0 +1,34 @@
+/* Copyright 2016 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.
+==============================================================================*/
+
+#ifndef TENSORFLOW_PLATFORM_HEXAGON_GEMM_WRAPPER_H_
+#define TENSORFLOW_PLATFORM_HEXAGON_GEMM_WRAPPER_H_
+
+// Declaration of APIs provided by hexagon shared library. This header is shared
+// with both hexagon library built with qualcomm SDK and tensorflow.
+// All functions defined here must have prefix "hexagon_gemm_wrapper" to avoid
+// naming conflicts.
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+// Returns the version of loaded hexagon shared library. Assert if the version
+// matches the expected version.
+int hexagon_gemm_wrapper_GetVersion();
+// TODO(satok): Support gemm APIs via RPC
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+#endif // TENSORFLOW_PLATFORM_HEXAGON_GEMM_WRAPPER_H_