-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[microTVM]Gemmini code generation using microTVM #13770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
294 commits
Select commit
Hold shift + click to select a range
8bcef00
[Hexagon] Skip test if "onnx" module not available (#13585)
5e20a14
[FQ2I] Support converting `dense` -> `add` to `qnn.dense` -> `add` ->…
masahi 9a3bec8
[ci][docker] Allow usage of ECR images in PRs (#13590)
driazati 3008e78
[TIR][Schedule] Support for specific consumer block targeting in cach…
wrongtest-intellif f0f23d1
[LLVM] Fix get tm allow_missing check pos (#13591)
wrongtest-intellif ed52610
[Torch] Stable diffusion support (#13594)
masahi dc9ac6d
[OpenCL][CI] Enable OpenCL cpp tests in CI (#13400)
echuraev 4a5032b
[Relay] Bug fix in relay.squeeze function for issue #12400 (#12684)
padreofthegame e3968c1
[Relay] Fix `CombineParallelDense` slicing axis (#13597)
masahi 4aa8c55
[Fix] Task scheduler error prompt upon build/run failure (#13601)
MasterJH5574 c8ffabc
[TIR] Fix PlanAndUpdateBufferAllocationLocation not visiting constant…
masahi 0d4a2cd
[Hexagon] Enable depthwise conv2d NHWC with an HWIO kernel layout (#1…
farshidsp c48c063
[Relay][Frontend][Onnx] SequenceAt and SplitToSequence Operators (#13…
e181045
[Relay][TIR] Add utility to lower Relay func to TIR prim func (#13606)
masahi 1a6798f
[microNPU] Disable copying weights to SRAM for FullyConnected ops in …
Aleksei-grovety 2024e63
[microTVM][Zephyr] Fix TVMC test on hardware (#13598)
mehrdadh f566e61
[LLVM] Use std::nullopt instead of llvm::None (#13617)
69e3509
[Hexagon] Switch from default_rng to random in Hexagon tests (#13616)
f04ec55
[Metaschedule] Aligning get_top_k logic in MemoryDatabase and JSONDat…
Icemist 1938273
[TOPI] Fix batch_matmul tensorcore legalize for transpose_b = False c…
masahi 0a3535e
[Relay] Remove overwriting of matmul shapes when they are static (#13…
dfdaab7
[Frontend] [ONNX] Support sequence_lens of GRU (#13587)
jacquesguan 662ccfb
[ETHOSN] Add support for experimental compiler option (#13410)
lhutton1 af59d45
[TVMScript] Fix print round-tripable multi thread env binding (#13622)
wrongtest-intellif 6f8f450
[TOPI][Hexagon] Implement global_avg_pool2d for hexagon (#13614)
trahman-quic 9e162f4
Add check for non-contiguous memory access when lowering to async dma…
nverke ac92ad9
[MetaSchedule] Fix tensorcore winograd task extraction (#13625)
masahi 80c0233
[COMMUNITY] Min Chen -> Reviewer (#13628)
junrushao 54358e0
[BugFix][UMA] Protect target registration (#13624)
cbalint13 cc8ad69
[Arith] Allow const folding on fp16 involving one and zero (#13631)
masahi 23c509a
[Hexagon][runtime] Make HexagonThreadManager::CheckSemaphore thread s…
janetsc 005a463
[Relay][Testing][Bugfix] `py_converter` should use correct AST for ve…
slyubomirsky 2799a3e
[Relay][Runtime] Add `set_input/output_zero_copy` in python (#13623)
8427852
[BugFix][TVMScript] Parser crash (#13630)
lightzhan-intellif c798ed1
[TRANSFORM] Fix virtual device annotation issue with BYOC subgraphs (…
srkreddy1238 8798c93
[BugFix][TVMScript]fix var capturing order error (#13640)
lightzhan-intellif 16677d4
[TVMScript] Remove obsolete modules (#13638)
junrushao 7e2b8dd
[CI] Fix android build by constraining numpy version (#13648)
lhutton1 5ae63ac
[ETHOSN] Update driver stack version to 22.11 (#13637)
asparkhi 9b0de0a
[CMSIS-NN] Add Cortex-M85 support (#13644)
NicolaLancellotti 323ec09
[ETHOSN] Fix for the mock inference after NPU driver update (#13650)
asparkhi c9001a0
[RPC] Add fail-guard for termination time exception (#13651)
tqchen 3ec03f7
[CMSIS-NN] Global function that provides range based on dtype (#13652)
asparkhi 05ffab9
[Pytorch][Relay] aten::_weight_norm implementation (#13661)
valmat07 a9c8494
[Relay][Frontend] Span filling common API (#13402)
chunit-quic 46bc136
[QNN] Change in Pass Context for lookup table calculation (#13660)
ibsidorenko a6337ca
[CLML][RELAY] Enable Pad and Conv2d layer fusion (#13649)
krishnaraj36 9c16365
[TVMScript] More accurate hints for ImportError (#13662)
standbyme 96d55ec
[TIR] Create Layout with specified axis dtype (#13663)
MasterJH5574 a188e7c
[MetaSchedule] Add "disabled_pass" option in tuning API (#13659)
ibsidorenko cede850
[CONTAINER] Struct Hash/Equal and JSON support for ShapeTuple (#13671)
tqchen e9cd558
[RUNTIME][OPENCL] OpenCL host pointer support to acheive zero copy (#…
srkreddy1238 0fad2de
[BugFix] Pylance emits the warnning 'Code is unreachable' (#13673)
lightzhan-intellif 59e7a5c
[TOPI][bugfix] Fix a bug in arm_cpu int8 dotprod schedule and moderni…
ekalda a1df230
[fix] MXNet dot for all tensor dimensions (#11760)
petuca a4ec3a2
[Build] Expose missing USE_VERILATOR in cmake (#13676)
cbalint13 30a513a
[BENCHMARK][ADRENO] Adreno Benchmarks with texture (#13675)
srkreddy1238 f121fd7
[Bug][CodeGen,Cuda]fix cast fp16 to int8/uint8 in cuda (#13641)
ninesheep aa0699c
[TOPI] Expose mem_scope from generic conv2d variants to be more reusa…
cbalint13 ed6a407
[CLML] Version compatibility and various test cases (#13670)
srkreddy1238 444e3a1
[BENCHMARKS][ADRENO] Documentation for Adreno (Texture) benchmarks (#…
srkreddy1238 381476e
[ONNX] Add converter for QAttention from Microsoft onnxruntime contri…
KJlaccHoeUM9l d375d0e
[BugFix][Runtime] Add missing check for `PackedFunc` (#13687)
cyx-6 43f1913
[COMMUNITY] @blackkker -> Reviewer (#13686)
junrushao f554f35
[Git] Ignore python/requirements directory (#13684)
Lunderberg 5a043c9
[Schedule][Bugfix] Fix decompose padding wrt the single child subtree…
wrongtest-intellif 942abff
[Hexagon] Remove temporary VTCM workspace APIs (#13681)
janetsc 91c8004
[Contrib][Sort] Faster Top-K Implementation (#13599)
AndrewZhaoLuo 47fc772
[Build][Bugfix] Use CMAKE_ prefix for <LANG>_COMPILER_LAUNCHER (#13697)
Lunderberg 4d816b7
[microTVM]Add default value to unspecified project options in project…
mehrdadh 77a39da
Add header files for GraphExecutorDebug (#13694)
zhaojinxi e1ff1c4
[Relay][Docs] Fixed examples in relay/transform.py documentation (#13…
padreofthegame 38bf0ed
[Hexagon] Denote DMA cache bypass as experimental feature (#13699)
adstraw 38e2d2d
[BENCHMARKS][CLML] Adreno benchmarks with CLML BYOC path added (#13696)
srkreddy1238 9f82ee6
[VTA] Provide zero-initialization for VTAGenericInsn (#13698)
Lunderberg 0ad67e8
[Tensorize][runtime] Add support for AMX(Advanced Matrix Extensions) …
Qianshui-Jiang dd2525f
[BugFix][TVMScript] Fix the roundtripability of intrinsic pow (#13692)
lightzhan-intellif 3db5946
[BugFix][Runtime] Fix Incorrect node information (#13693)
zhaojinxi 50d2154
[microTVM] Build standalone_crt with cmake instead of makefile (#13600)
alanmacd f2bbb7e
[microTVM] Fix MacOS build with USE_MICRO=ON (#13711)
alanmacd 391b659
[tir] Add line level debug info (#13012)
driazati ef7dabb
[microTVM][Zephyr]Add project files for mlperftiny submission (#13690)
mehrdadh e1b4877
[docs] Add "Open with Colab" button to documentation (#13627)
guberti 9d929d9
[TIR] Fix dtype mismatch error due to LetStmt (#13710)
masahi a49f448
[Fix,AutoScheduler] Handle 0-dim buffers in featurization (#13718)
691c28f
[TVMScript] Linter-friendly function definitions (#13713)
cyx-6 469acae
[Tests] Replace pytest.main with tvm.testing.main (#13717)
Mousius b05e918
[TVMScript] Refactor IRDocsifier (#13593)
junrushao c78bc8a
[TIR][Arith] Add common sub expr analyzer (#13702)
multiverstack-intellif 9c2f249
[microTVM] Replace arm_nnsupportfunctions.h with arm_acle.h (#13363)
Mousius ba1e41c
[AOT] Added a test for detecting output size post MLF export (#13655)
asparkhi 9abe71c
[Fix,Roofline] Fix roofline handling of multiple peak flops (#13716)
bf7d667
Add support for named outputs in MLF archive (#13704)
Mousius f8d2311
[HotFix][docs] Use correct Colab button URL (#13725)
guberti b075bda
[microNPU] Add support for TFLite PAD (#13732)
Aleksei-grovety 923a2fb
[Web] Try to upgrade WebGPU API usage to the latest (#13731)
LancerComet 77b5b4c
[Relay][Frontend] Span Filling TFLite (#13727)
chunit-quic e61f60b
[Relay][Frontend] Span Filling TensorFlow 1 (#13728)
chunit-quic e41a89c
Add DisallowAsyncStridedMemCopy post processor to rem (#13720)
nverke 0ddeb28
[microTVM][Zephyr] Fix flash command for nrfjprog (#13723)
mehrdadh 7f74170
[CI] Fix MLF input and output name map (#13740)
mehrdadh 9d0caeb
[TE][PrimFunc] Fix create primfunc from te extern with explicit buffe…
wrongtest-intellif 46546e0
Add Name Transforms for Rust style (#13706)
Mousius 28c09f6
[COLLAGE] Add more customization to support more targets (#13450)
krishnaraj36 dcf05ef
[Docker update] Update ci_cpu tag to the latest from tlcpackstaging (…
asparkhi b53706e
[CMSIS-NN] Support CMSIS NN from new GitHub location (#13656)
NicolaLancellotti 4c1da54
[microNPU] Add a legalization test for TFLite PAD (#13750)
Aleksei-grovety 77d9574
[Arith] Use ConstIntBound to remove negative numerator when lowering …
Lunderberg 00e81e9
[Profiler] Allow user to flush L2 cache in `time_evalutor` function f…
yzh119 8c7bbdd
[CMake][OpenCL] Remove warning for OpenCL wrapper (#13683)
Lunderberg 12fe0e9
[AOT]Aot module post-test error workaround (#13685)
janetsc a13648f
[microTVM] tuning on micro targets with meta-schedule (#13514)
mkatanbaf 9edabfe
[Tensorize][TOPI] Add AMX Tensorizing for int8 batch matmul (#13745)
Qianshui-Jiang 4c5264c
[Hexagon][QNN] Improve performance wo QNN canonicalization (#13734)
ibsidorenko 7eae01f
[CI][Docker][Cortex-M]Update scripts to update ci_cortexm to Ubuntu 2…
mehrdadh 3f8926a
[Fix,TOPI] Consolidate generic and x86 scatter nd (#13755)
b249b9a
[Docs] Add `typing-extensions` dependency guide (#13730)
KokeCacao 292d088
[MetaSchedule] Add pass instrument to MetaSchedule api (#13688)
6fe6cd7
[Relay][Frontend] Span Filling ONNX (#13767)
chunit-quic 4557d6b
[TOPI][OP] Support grouped conv2d_NCHWc (#13733)
liangW-intellif 412135a
[CI][microTVM]Update ci_cortexm image (#13764)
mehrdadh 39c0ef2
[microNPU] Add relu6 relu_n1_to_1 test cases for Ethos-U (#13645)
Aleksei-grovety 0da41e2
[docs] Remove empty code blocks (#13689)
driazati 31e3ca6
[ci][docker] Make branch names valid before using them as tags (#13738)
driazati a6538c9
[ONNX,FIX] onnx Pad operator `constant_value` omit use default value …
fantasyRqg 18ea96f
Remove tutorials CMSIS dependency when not needed (#13762)
NicolaLancellotti 254e8f5
[Target] Make `key=arm_cpu` --> `key=arm_cpu,cpu` on AArch64 (#13775)
AndrewZhaoLuo b8169d6
[CI] Update ci_minimal docker image to cross-compile TVM to aarch64 (…
gigiblender 96a1089
[UnitTest] Parametrized test_arith_iter_affine_map::test_padding (#13…
Lunderberg aa9ff23
[ETHOSN] Remove support for NPU driver 22.08 (#13763)
asparkhi b3ca506
[TVMScript] IR Fragment Printing (#13742)
junrushao bd5e54b
[COMMUNITY] Hongyi Jin -> Committer (#13784)
junrushao 54069dc
[COMMUNITY] Yaxing Cai -> Committer (#13787)
7c816bf
[MeteSchedule] Bugfix: Add checks for nullable `run_secs` (#13790)
spectrometerHBH be6a334
[TIR][Fix] Buffer slicing using index dtype as extent (#13788)
MasterJH5574 94403f4
[TIR][Fix] IndexDataTypeNormalizer not unwrapping float casting (#13789)
MasterJH5574 b2997b7
[TIR] Fix cache_write bug with allocate const node (#13792)
quic-sanirudh 94fd43f
[FIX] Fix Typos in Docs and Comments (#13793)
QuqqU cd1fa03
[TOPI] Fix tuple unpack in conv2d NCHWc int8 (#13761)
michalpiszczek 174277f
[FIX] Minor Compilation Warning Fixes (#13794)
bd0d605
[Hexagon] Add hexagon user DMA intrins for tensorization (#13719)
nverke a466614
[CMSIS-NN] Remove support for the old CMSIS NN project (#13760)
NicolaLancellotti 3ef5a2f
[TIR][TOPI][x86][CI] Support skylake avx512 (#13621)
vvchernov 03e1501
[CI] Cross-compile libtvm_runtime to Aarch64 and run tests (#13714)
gigiblender 1feb73e
[TVMScript] Migrate More to TVMScripr Printer (#13785)
junrushao f560a46
[skip ci][ci][docker] Add cross compilation libs (#13800)
driazati 1a6dfda
[TVMScript] `T.axis.remap` syntax sugar for TVMScript printer (#13743)
cyx-6 fcc06f3
[TVMScript] Use TVMScript for all TIR Printing (#13795)
junrushao 5bb7344
[microNPU] Upgrade to 22.08 version of Arm(R) Ethos(TM)-U NPU drivers…
Aleksei-grovety d25feaf
[microNPU] Add hardware constraints for binary elementwise (#13772)
Aleksei-grovety 8f864f6
[Bugfix][TIR] Fix version conflict with typing for Python 3.8.0 (#13744)
Ever-Kid b516451
[TOPI] Making test_strided_set require a GPU for testing (#13804)
53f5148
[TIR]Fix the crash of the pass RemoveNoOp (#13808)
lightzhan-intellif ada1caf
[Adreno] Update interface of AnnotateMemoryScope pass (#13779)
echuraev bb215d2
[ONNX] Extend converter for Attention from Microsoft onnxruntime cont…
KJlaccHoeUM9l c373077
[Docker]Add dialout group by default on login (#13810)
mehrdadh 64619f4
[microTVM] Add tutorial on how to generate MLPerfTiny submissions (#1…
mehrdadh d4aedac
[TVMScript] `T.match_buffer` syntax sugar in arguments for TVMScript …
cyx-6 693f92a
[TIR][Schedule] Improve cache_index to cache common subexpressions (#…
multiverstack-intellif f570a8c
[TVMScript] `T.allocate` with `T.decl_buffer` syntax sugar for TVMScr…
cyx-6 25d278b
[TESTING] Enable execution of test_packed_8x8x32_resnet50 (#13799)
abhikran-quic cdd2095
[COMMUNITY] alanmacd -> Reviewer (#13814)
leandron c613b89
[docker][microTVM]Update zephyr version to 3.2 and Zephyr SDK to 0.15…
mehrdadh f889774
[CI] Update rerun list for tvm-bot (#13817)
gigiblender 2488257
[Frontend][PaddlePaddle] Add topk op and Fix bug, when the output is …
woobinw 498eb94
[TVMScript] Implicit root block syntax sugar for TVMScript printer (#…
cyx-6 55c9c97
[Bugfix][TIR] Fix version conflict with typing for different Python v…
sunggg c73f982
[microTVM][CRT]Separate CRT template project from standalone CRT buil…
mehrdadh e1d447c
[MetaSchedule] add fp16-16-32 TensorCores rule to default settings (#…
1ff77ae
[TVMScript] Add ObjectPath to LiteralDoc (#13821)
junrushao 1d3139b
[Metaschedule] get_top_k should not return not built records (#13824)
Icemist cf48327
[Hexagon][Metaschedule] Add timeout_sec arg to get_hexagon_local_buil…
Icemist f7b5c10
[TVMScript] More concise `T.allocate` syntax printing (#13830)
cyx-6 2d63357
[TOOL][NATIVE] Android native application for deploy and run (#13791)
srkreddy1238 76a16c4
[TVMScript] Introduce `PrinterConfig` (#13831)
junrushao 66ef2a3
[Hexagon]Float and quantized dense operators with schedules (#12873)
joshherr-quic 1e35674
[RUNTIME] Fix determination of big/little cores domains (#13832)
elvin-n ea2cdc8
[docker][microTVM]Fix Zephyr 0.15.2 SDK installation and separate Zep…
mehrdadh 7218986
[Adreno] Optimize reduction schedule (#13781)
elvin-n a9831a2
[TVMScript] Default to T.Buffer than T.buffer_decl (#13838)
junrushao 4fc4ad0
[TVMScript] Consolidate folder structure (#13841)
junrushao f3b8ae2
Enhance the --help message of composite target (#13842)
MNGanesan 1881cfd
[microTVM] Allow multiple runners in tuning micro models with meta-sc…
mkatanbaf 3d42755
[TVMScript] Comments and docstrings printing (#13839)
cyx-6 427b548
[ONNX] QGemm support (#13747)
chengven027 4f1f8c5
[microTVM] Fix host-driven AOT memory workspaces (#13807)
alanmacd d2bacff
[ROCM] Fixes compiling on ROCM 5 and accuracy on dense op (#13847)
masahi 9c382e1
[MetaSchedule] Fix for RewriteLayout + AllocateConst when the rank of…
masahi f2b6283
[CLML][RUNTIME] Enable more ops in CLML runtime (#13834)
krishnaraj36 08d202f
[Relay] Convert negative axes to positive when importing ONNX Unsquee…
balaram-cadence 5620926
[ETHOSN] Apply FoldConstant before NPU partitioning (#13848)
asparkhi 4a992b5
[Hexagon][CI] Updated sha for builder LLVM (#13418)
joshherr-quic 998f894
[microTVM] Update tutorials (#13845)
mehrdadh d239d58
[ONNX] Support Bernoulli op on ONNX front-end (#13802)
vvchernov 40e6649
[Arith] Support eq in detect_clip_bound (#13746)
wrongtest-intellif ed25753
[topi] remove comment redundancy in resize.py (#13860)
terrance-liang 6563998
[WASM][FIX] test tests/node/websock_rpc_test.py (#13862)
fantasyRqg e5cc9ca
[RUNTIME][CLML] OpenCLML tuning and profiling enhanced (#13843)
srkreddy1238 5b669b5
[ONNX] Support SequenceLength op (#13863)
vvchernov e11e8d4
Enable C++17 for cmake modules (#13869)
echuraev b02c5ff
[Hexagon][CI] Update the docker image ID to reflect newer LLVM (#13870)
82fedb3
[LLVM] Remove call to EmitDebugLocation from AddAliasInfo (#13872)
d8b0991
[TIR][FIX] check args size when creating prim_func by runtime::Regist…
Ever-Kid 18d7d82
[TVMScript] Robustify the Highlight Printer (#13861)
b95130d
[ONNX] Support SequenceErase op (#13865)
vvchernov 23cf2f7
[ONNX] Support SequenceEmpty op (#13866)
vvchernov f258e2c
[CI] NNPACK build issue workaround (#13873)
Liam-Sturge 044a693
[microTVM]Refactor test and add skip to current failing tests/boards …
mehrdadh 14462f7
[TIR][TOPI][CI] Fix number of arguments in calls of llvm_pure_intrin …
vvchernov 9be25a2
[ARITH] support floordiv in deduce bound (#13880)
wrongtest-intellif e02f3c3
CI fixes
fzi-peccia 1fb1231
LINT changes
fzi-peccia a83f00d
LINT fix
fzi-peccia 6fd5287
Lint fix
fzi-peccia ccb5732
LINT fix
fzi-peccia e2cffed
pylint fixes
fzi-peccia db3646f
more lint fixes
fzi-peccia 9ce2b62
Small makefile addition to enable use of math.h functions
fzi-peccia cc6ab72
moved gemmini how tos to tutorials
fzi-peccia d6dedc9
Fix docs
fzi-peccia 99f69f2
lint changes
fzi-peccia 6483608
More lint improvements
fzi-peccia dcb2845
Fixed ALL pylint "Line too long"
fzi-peccia e340fab
Pending pylint fixes
fzi-peccia 99756b2
Pending pylint fixes
fzi-peccia d7e6a93
Docs fix
fzi-peccia 1eaaee0
Added missing license text
fzi-peccia 60cbfd1
Small lint fixes
fzi-peccia 3075026
Merge remote-tracking branch 'upstream/main' into gemmini-microtvm
fzi-peccia d563c00
Recommended changes for merge
fzi-peccia a96bcaf
Merge branch 'gemmini-microtvm' of github.com:fzi-peccia/tvm into gem…
fzi-peccia 6316f83
Fixed merge issues
fzi-peccia 0315a7c
Fix merge
fzi-peccia 0e84cfe
Fixed lint problem
fzi-peccia 8ce1222
Merge remote-tracking branch 'upstream/main' into gemmini-microtvm
fzi-peccia 2f0308f
.utils does not exist!
fzi-peccia 81c82df
Added docstrings to all Python files
fzi-peccia 0cecb86
Lint fixes
fzi-peccia f0e5f5c
Merge remote-tracking branch 'upstream/main' into gemmini-microtvm
fzi-peccia d53013a
Fixed merge error
fzi-peccia 17369a4
Small lint fix
fzi-peccia 777816d
Test fix
fzi-peccia cb3fdaa
Lint fix
fzi-peccia 0ecb826
Changed URL in tutorial to the standard one used in other tutorials
fzi-peccia d498f88
Lint fix
fzi-peccia aff88a1
Merge fix
fzi-peccia fb6330f
Lint fix
fzi-peccia ad8b883
Merge remote-tracking branch 'upstream/main' into gemmini-microtvm
fzi-peccia 7236a8b
Fix test
fzi-peccia 3b07a14
Merge branch 'main' into gemmini-microtvm
fzi-peccia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <!--- Licensed to the Apache Software Foundation (ASF) under one --> | ||
| <!--- or more contributor license agreements. See the NOTICE file --> | ||
| <!--- distributed with this work for additional information --> | ||
| <!--- regarding copyright ownership. The ASF licenses this file --> | ||
| <!--- to you 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. --> | ||
|
|
||
| This directory contains code to create code for the Gemmini accelerator using microTVM. These tests are then executed on the Spike RISC-V ISA simulator. | ||
|
|
||
| In order to use this correctly, the Spike simulator has to be installed. This can be done by following the steps found on the [Chipyard](https://chipyard.readthedocs.io/en/stable/) repository. The instructions to also install the patch of the Spike simulator that adds the Gemmini functional simulator can be found in the [Gemmini](https://github.com/ucb-bar/gemmini) repository. |
57 changes: 57 additions & 0 deletions
57
apps/microtvm/gemmini/template_project/crt_config/crt_config.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you 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. | ||
| */ | ||
|
|
||
| /*! | ||
| * \brief CRT configuration for the host-linked CRT. | ||
| */ | ||
| #ifndef TVM_RUNTIME_MICRO_CRT_CONFIG_H_ | ||
| #define TVM_RUNTIME_MICRO_CRT_CONFIG_H_ | ||
|
|
||
| /*! Log level of the CRT runtime */ | ||
| #define TVM_CRT_LOG_LEVEL TVM_CRT_LOG_LEVEL_DEBUG | ||
|
|
||
| /*! Support low-level debugging in MISRA-C runtime */ | ||
| #define TVM_CRT_DEBUG 0 | ||
|
|
||
| /*! Maximum supported dimension in NDArray */ | ||
| #define TVM_CRT_MAX_NDIM 6 | ||
| /*! 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_MAX_STRLEN_DLTYPE 10 | ||
| /*! Maximum supported string length in function names */ | ||
| #define TVM_CRT_MAX_STRLEN_FUNCTION_NAME 120 | ||
| /*! Maximum supported string length in parameter names */ | ||
| #define TVM_CRT_MAX_STRLEN_PARAM_NAME 80 | ||
|
|
||
| /*! Maximum number of registered modules. */ | ||
| #define TVM_CRT_MAX_REGISTERED_MODULES 2 | ||
|
|
||
| /*! Size of the global function registry, in bytes. */ | ||
| #define TVM_CRT_GLOBAL_FUNC_REGISTRY_SIZE_BYTES 512 | ||
|
|
||
| /*! Maximum packet size, in bytes, including the length header. */ | ||
| #define TVM_CRT_MAX_PACKET_SIZE_BYTES 8 * 1024 | ||
|
|
||
| /*! \brief Maximum length of a PackedFunc function name. */ | ||
| #define TVM_CRT_MAX_FUNCTION_NAME_LENGTH_BYTES 30 | ||
|
|
||
| // #define TVM_CRT_FRAMER_ENABLE_LOGS | ||
|
|
||
| #endif // TVM_RUNTIME_MICRO_CRT_CONFIG_H_ | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.