Skip to content

Commit f6a60c0

Browse files
committed
misc fixes
1 parent b446008 commit f6a60c0

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff 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: >-

apps/android_rpc/app/src/main/jni/Android.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ LOCAL_SRC_FILES := org_apache_tvm_native_c_api.cc
3737
LOCAL_LDFLAGS := -L$(SYSROOT)/usr/lib/ -llog
3838

3939
LOCAL_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

ffi/src/ffi/traceback_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

jvm/native/linux-x86_64/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>

jvm/native/osx-x86_64/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)