Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/scripts/gen_cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cd ${TEACLAVE_OUT_DIR} && ${LCOV} ${LCOVOPT} $(for tag in \
`find ${TEACLAVE_PROJECT_ROOT} -name sgx_cov*.gcda | cut -d'.' -f2`; \
do echo "--add modules_$tag.info"; done) \
--add modules.info -o merged.info
cd ${TEACLAVE_OUT_DIR} && python ${LCOV_REALPATH} merged.info > merged_realpath.info
cd ${TEACLAVE_OUT_DIR} && python3 ${LCOV_REALPATH} merged.info > merged_realpath.info
${LCOV} ${LCOVOPT} --extract ${TEACLAVE_OUT_DIR}/merged_realpath.info \
`find ${TEACLAVE_PROJECT_ROOT} -path ${TEACLAVE_PROJECT_ROOT}/third_party -prune -o \
-path ${TEACLAVE_PROJECT_ROOT}/build -prune -o \
Expand Down
7 changes: 7 additions & 0 deletions docker/build.ubuntu-1804.sgx-2.14.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ RUN git clone https://github.com/apache/tvm /tvm && \
cmake -DUSE_LLVM=ON .. && \
make -j$(nproc)

# Install llvm-cov version 11 from llvm-11
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 11 && \
update-alternatives --install /usr/bin/llvm-cov llvm-cov-11 /usr/bin/llvm-cov-11 11 && \
rm ./llvm.sh

# clean up apt caches

RUN apt-get clean && \
Expand Down
7 changes: 7 additions & 0 deletions docker/build.ubuntu-1804.sgx-dcap-1.11.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ RUN git clone https://github.com/apache/tvm /tvm && \
cmake -DUSE_LLVM=ON .. && \
make -j$(nproc)

# Install llvm-cov version 11 from llvm-11
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 11 && \
update-alternatives --install /usr/bin/llvm-cov llvm-cov-11 /usr/bin/llvm-cov-11 11 && \
rm ./llvm.sh

# clean up apt caches

RUN apt-get clean && \
Expand Down
7 changes: 7 additions & 0 deletions docker/build.ubuntu-2004.sgx-2.15.1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ RUN git clone https://github.com/apache/tvm /tvm && \
cmake -DUSE_LLVM=ON .. && \
make -j$(nproc)

# Install llvm-cov version 11 from llvm-11
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 11 && \
update-alternatives --install /usr/bin/llvm-cov llvm-cov-11 /usr/bin/llvm-cov-11 11 && \
rm ./llvm.sh

# clean up apt caches

RUN apt-get clean && \
Expand Down
7 changes: 7 additions & 0 deletions docker/build.ubuntu-2004.sgx-dcap-1.12.1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ RUN git clone https://github.com/apache/tvm /tvm && \
cmake -DUSE_LLVM=ON .. && \
make -j$(nproc)

# Install llvm-cov version 11 from llvm-11
RUN wget https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh 11 && \
update-alternatives --install /usr/bin/llvm-cov llvm-cov-11 /usr/bin/llvm-cov-11 11 && \
rm ./llvm.sh

# clean up apt caches

RUN apt-get clean && \
Expand Down
3 changes: 2 additions & 1 deletion examples/python/wasm_tvm_mnist_payload/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
# specific language governing permissions and limitations
# under the License.

TVM_HOME ?= /tvm
# export TVM_HOME to prebuilt tvm-sys, don't change
export TVM_HOME = /tvm
export PYTHONPATH = $(shell printenv PYTHONPATH):${TVM_HOME}/python

all:
Expand Down
2 changes: 1 addition & 1 deletion third_party/crates-sgx