File tree Expand file tree Collapse file tree 5 files changed +21
-18
lines changed
apps/android_rpc/app/src/main/jni Expand file tree Collapse file tree 5 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -49,22 +49,22 @@ jobs:
4949 run : >-
5050 conda build --output-folder=conda/pkg conda/recipe &&
5151 conda install tvm -c ./conda/pkg
52- - name : Build iOS RPC
53- run : |
54- IOS_VERSION="14.0"
55- CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release \
56- -DCMAKE_SYSTEM_NAME=iOS \
57- -DCMAKE_SYSTEM_VERSION=${IOS_VERSION} \
58- -DCMAKE_OSX_SYSROOT=iphonesimulator \
59- -DCMAKE_OSX_ARCHITECTURES=x86_64 \
60- -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
61- -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
62- -DUSE_IOS_RPC=ON"
63-
64- mkdir build-ios-simulator
65- cd build-ios-simulator
66- cmake .. ${CMAKE_FLAGS}
67- cmake --build . --target ios_rpc
52+ # - name: Build iOS RPC
53+ # run: |
54+ # IOS_VERSION="14.0"
55+ # CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release \
56+ # -DCMAKE_SYSTEM_NAME=iOS \
57+ # -DCMAKE_SYSTEM_VERSION=${IOS_VERSION} \
58+ # -DCMAKE_OSX_SYSROOT=iphonesimulator \
59+ # -DCMAKE_OSX_ARCHITECTURES=x86_64 \
60+ # -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \
61+ # -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
62+ # -DUSE_IOS_RPC=ON"
63+ #
64+ # mkdir build-ios-simulator
65+ # cd build-ios-simulator
66+ # cmake .. ${CMAKE_FLAGS}
67+ # cmake --build . --target ios_rpc
6868 - name : Test
6969 shell : bash -l {0}
7070 run : >-
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ LOCAL_SRC_FILES := org_apache_tvm_native_c_api.cc
3737LOCAL_LDFLAGS := -L$(SYSROOT ) /usr/lib/ -llog
3838
3939LOCAL_C_INCLUDES := $(ROOT_PATH ) /include \
40- $(ROOT_PATH ) /3rdparty/dlpack/include \
40+ $(ROOT_PATH ) /ffi/include \
41+ $(ROOT_PATH ) /ffi/3rdparty/dlpack/include \
4142 $(ROOT_PATH ) /3rdparty/dmlc-core/include \
4243 $(ROOT_PATH ) /3rdparty/OpenCL-Headers
4344
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ std::string Traceback() {
122122} // namespace ffi
123123} // namespace tvm
124124
125- const TVMFFIByteArray* TVMFFITraceback () {
125+ const TVMFFIByteArray* TVMFFITraceback (const char * filename, int lineno, const char * func ) {
126126 static thread_local std::string traceback_str;
127127 static thread_local TVMFFIByteArray traceback_array;
128128 traceback_str = ::tvm::ffi::Traceback ();
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ under the License.
118118 </compilerStartOptions >
119119 <compilerEndOptions >
120120 <compilerEndOption >-I../../../include</compilerEndOption >
121+ <compilerEndOption >-I../../../ffi/include</compilerEndOption >
121122 <compilerEndOption >-I${JAVA_HOME} /include</compilerEndOption >
122123 <compilerEndOption >-I${JAVA_HOME} /include/linux</compilerEndOption >
123124 <compilerEndOption >${cflags} </compilerEndOption >
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ under the License.
119119 </compilerStartOptions >
120120 <compilerEndOptions >
121121 <compilerEndOption >-I../../../include</compilerEndOption >
122+ <compilerEndOption >-I../../../ffi/include</compilerEndOption >
122123 <compilerEndOption >-I${JAVA_HOME} /include</compilerEndOption >
123124 <compilerEndOption >-I${JAVA_HOME} /include/darwin</compilerEndOption >
124125 <compilerEndOption >${cflags} </compilerEndOption >
You can’t perform that action at this time.
0 commit comments