Skip to content

Commit

Permalink
Merge pull request #8 from apache/main
Browse files Browse the repository at this point in the history
upate
  • Loading branch information
jiangjiajun authored Aug 13, 2021
2 parents 5b39c79 + a06863a commit 74cc942
Show file tree
Hide file tree
Showing 302 changed files with 11,175 additions and 7,955 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ include(cmake/modules/contrib/ArmComputeLib.cmake)
include(cmake/modules/contrib/TensorRT.cmake)
include(cmake/modules/contrib/VitisAI.cmake)
include(cmake/modules/contrib/Verilator.cmake)
include(cmake/modules/contrib/PAPI.cmake)
include(cmake/modules/Git.cmake)
include(cmake/modules/LibInfo.cmake)
include(cmake/modules/RustExt.cmake)
Expand Down Expand Up @@ -458,6 +457,8 @@ target_compile_definitions(tvm_runtime PUBLIC DMLC_USE_LOGGING_LIBRARY=<tvm/runt
# logging option for libbacktrace
include(cmake/modules/Logging.cmake)

include(cmake/modules/contrib/PAPI.cmake)

if(USE_MICRO)
# NOTE: cmake doesn't track dependencies at the file level across subdirectories. For the
# Unix Makefiles generator, need to add these explicit target-level dependency)
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ We do encourage everyone to work anything they are interested in.
- [Trevor Morris](https://github.com/trevor-m): @trevor-m
- [Tatsuya Nishiyama](https://github.com/nishi-t): @nishi-t
- [Leandro Nunes](https://github.com/leandron): @leandron
- [Lily Orth-Smith](https://github.com/electriclilies): @electriclilies
- [Wei Pan](https://github.com/wpan11nv): @wpan11nv
- [Krzysztof Parzyszek](https://github.com/kparzysz-quic): @kparzysz-quic
- [Pariksheet Pinjari](https://github.com/PariksheetPinjari909): @PariksheetPinjari909
Expand Down
5 changes: 3 additions & 2 deletions Jenkinsfile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ci_gpu = "tlcpack/ci-gpu:v0.76"
ci_cpu = "tlcpack/ci-cpu:v0.75"
ci_wasm = "tlcpack/ci-wasm:v0.71"
ci_i386 = "tlcpack/ci-i386:v0.73"
ci_qemu = "tlcpack/ci-qemu:v0.06"
ci_qemu = "tlcpack/ci-qemu:v0.07"
ci_arm = "tlcpack/ci-arm:v0.06"
// <--- End of regex-scanned config.

Expand Down Expand Up @@ -188,7 +188,7 @@ stage('Build') {
sh "${docker_run} ${ci_cpu} ./tests/scripts/task_python_vta_tsim.sh"
// sh "${docker_run} ${ci_cpu} ./tests/scripts/task_golang.sh"
// TODO(@jroesch): need to resolve CI issue will turn back on in follow up patch
// sh "${docker_run} ${ci_cpu} ./tests/scripts/task_rust.sh"
sh "${docker_run} ${ci_cpu} ./tests/scripts/task_rust.sh"
junit "build/pytest-results/*.xml"
}
}
Expand Down Expand Up @@ -282,6 +282,7 @@ stage('Unit Test') {
timeout(time: max_time, unit: 'MINUTES') {
sh "${docker_run} ${ci_arm} ./tests/scripts/task_ci_setup.sh"
sh "${docker_run} ${ci_arm} ./tests/scripts/task_python_unittest.sh"
sh "${docker_run} ${ci_arm} ./tests/scripts/task_python_arm_compute_library.sh"
junit "build/pytest-results/*.xml"
// sh "${docker_run} ${ci_arm} ./tests/scripts/task_python_integration.sh"
}
Expand Down
4 changes: 2 additions & 2 deletions apps/bundle_deploy/crt_config/crt_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
/*! Maximum supported arguments in generated functions */
#define TVM_CRT_MAX_ARGS 10
/*! Maximum supported string length in dltype, e.g. "int8", "int16", "float32" */
#define TVM_CRT_STRLEN_DLTYPE 10
#define TVM_CRT_MAX_STRLEN_DLTYPE 10
/*! Maximum supported string length in function names */
#define TVM_CRT_STRLEN_NAME 80
#define TVM_CRT_MAX_STRLEN_FUNCTION_NAME 80

/*! Maximum number of registered modules. */
#define TVM_CRT_MAX_REGISTERED_MODULES 2
Expand Down
8 changes: 3 additions & 5 deletions apps/microtvm/reference-vm/base-box-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@

# List of microTVM platforms for testing.
ALL_MICROTVM_PLATFORMS = (
"stm32f746xx",
"stm32f746xx_nucleo",
"stm32f746xx_disco",
"nrf5340dk",
"mps2_an521",
)
Expand Down Expand Up @@ -177,10 +178,7 @@ def attach_vmware(uuid, vid_hex=None, pid_hex=None, serial=None):

# Extra scripts required to execute on provisioning
# in zephyr/base-box/base_box_provision.sh
EXTRA_SCRIPTS = (
"docker/install/ubuntu_init_zephyr_project.sh",
"docker/install/ubuntu_install_qemu.sh",
)
EXTRA_SCRIPTS = ("docker/install/ubuntu_init_zephyr_project.sh",)


def generate_packer_config(file_path, providers):
Expand Down
7 changes: 6 additions & 1 deletion apps/microtvm/reference-vm/zephyr/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ Vagrant.configure("2") do |config|
end
end

config.vm.provision "shell", path: "provision_setup.sh", env: {"TVM_HOME": dirs_to_mount[0]}, privileged: false
config.vm.provision "shell",
path: "provision_setup.sh",
env: {"TVM_HOME": dirs_to_mount[0],
"TVM_CI_NUM_CORES": num_cores
},
privileged: false

# Enable USB Controller on VirtualBox
vm_name = "microtvm-#{Time.now.tv_sec}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@ cd ~
# Using most recent commit that passes all the tests.
~/ubuntu_init_zephyr_project.sh ~/zephyr v2.5-branch --commit dabf23758417fd041fec2a2a821d8f526afac29d

# Build QEMU
sudo ~/ubuntu_install_qemu.sh --target-list arm-softmmu

# Cleanup
rm -f *.sh
6 changes: 5 additions & 1 deletion apps/microtvm/reference-vm/zephyr/base-box/test-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"stm32f746xx": {
"stm32f746xx_nucleo": {
"vid_hex": "0483",
"pid_hex": "374b"
},
"stm32f746xx_disco": {
"vid_hex": "0483",
"pid_hex": "374b"
},
Expand Down
1 change: 1 addition & 0 deletions apps/microtvm/reference-vm/zephyr/provision_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ poetry run pip3 install -r ${ZEPHYR_BASE}/scripts/requirements.txt
echo "export TVM_LIBRARY_PATH=\"$TVM_HOME\"/build-microtvm" >>~/.profile
echo "VENV_PATH=\$((cd \"$TVM_HOME\"/apps/microtvm/reference-vm/zephyr && poetry env list --full-path) | sed -E 's/^(.*)[[:space:]]\(Activated\)\$/\1/g')" >>~/.profile
echo "source \$VENV_PATH/bin/activate" >>~/.profile
echo "export PATH=\"\${PATH}:\${HOME}/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin\"" >>~/.profile
27 changes: 0 additions & 27 deletions apps/microtvm/zephyr/aot_demo/CMakeLists.txt

This file was deleted.

20 changes: 0 additions & 20 deletions apps/microtvm/zephyr/aot_demo/README.md

This file was deleted.

34 changes: 0 additions & 34 deletions apps/microtvm/zephyr/aot_demo/boards/nrf5340dk_nrf5340_cpuapp.conf

This file was deleted.

25 changes: 0 additions & 25 deletions apps/microtvm/zephyr/aot_demo/boards/qemu_cortex_r5.conf

This file was deleted.

28 changes: 0 additions & 28 deletions apps/microtvm/zephyr/aot_demo/boards/qemu_x86.conf

This file was deleted.

62 changes: 0 additions & 62 deletions apps/microtvm/zephyr/aot_demo/crt/crt_config.h

This file was deleted.

32 changes: 0 additions & 32 deletions apps/microtvm/zephyr/aot_demo/prj.conf

This file was deleted.

1 change: 0 additions & 1 deletion apps/microtvm/zephyr/aot_demo/qemu-hack

This file was deleted.

26 changes: 0 additions & 26 deletions apps/microtvm/zephyr/host_driven/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 74cc942

Please sign in to comment.