Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
7be3181
uTVM interfaces (#14)
mutinifni Mar 26, 2019
9ebc55f
some minor interface changes
mutinifni Mar 28, 2019
1c3e449
implemented HostLowLevelDevice
mutinifni Mar 28, 2019
bd15740
added MicroDeviceAPI
mutinifni Apr 1, 2019
403a5d9
implemented micro_common and added Python interfaces
mutinifni Apr 1, 2019
d3cb9f3
current status, semi implemented micro session
mutinifni Apr 4, 2019
e6c4448
added micro_common implementation and python interfaces (#18)
mutinifni Apr 4, 2019
0ca1d97
current status, semi implemented
mutinifni Apr 4, 2019
059fdc2
added micro_common implementation and python interfaces (#18)
mutinifni Apr 4, 2019
1f6a1a6
host test working
mutinifni Apr 8, 2019
4ede248
updated interfaces for MicroSession arguments allocation
mutinifni Apr 17, 2019
cb1f2f1
make somewhat lint compatible
mutinifni Apr 17, 2019
8de60be
fix based on comments
mutinifni Apr 20, 2019
633d744
added rounding macro
mutinifni Apr 21, 2019
985689a
fix minor bug
mutinifni Apr 21, 2019
284905c
improvements based on comments
mutinifni Apr 23, 2019
5218619
Clean up `binutil.py` and make Python-3-compatible
Apr 25, 2019
e94e880
Change argument allocation design
Apr 25, 2019
c7a5c48
Address feedback and lint errors
weberlo Apr 25, 2019
cb497b8
Improve binutil tests
weberlo Apr 26, 2019
db01d8d
Simplify allocator (per @tqchen's suggestions)
weberlo Apr 29, 2019
6ae42ad
Doc/style fixes
weberlo Apr 29, 2019
9aa82dd
farts
weberlo May 7, 2019
3547a70
mcgee
weberlo May 7, 2019
d65c07f
rodata section werks
weberlo May 8, 2019
05856c9
simple graph runtime werk
weberlo May 15, 2019
d1dd841
TEMP
weberlo May 16, 2019
190cd37
ResNet works, yo
weberlo May 16, 2019
ace2e9b
First round of cleanup
weberlo May 19, 2019
f81160b
More cleanup
weberlo May 20, 2019
9fd33d5
runs a dyson over the code
weberlo May 20, 2019
e8c7046
Another pass
weberlo May 21, 2019
370bee7
Fix `make lint` issues
weberlo May 21, 2019
fe54690
ready to pr... probably
weberlo May 21, 2019
b1dca33
final
weberlo May 21, 2019
ae199c2
Undo change
weberlo May 21, 2019
c21cece
Fix rebase resolution
weberlo May 22, 2019
aa89ece
Minor fixes
weberlo May 22, 2019
660c8fe
Undo changes to C codegen tests
weberlo May 22, 2019
08c2a59
Add `obj_path` in `create_micro_lib`
weberlo May 22, 2019
1d43f2d
TEMP
weberlo May 22, 2019
32ba715
Address feedback
weberlo May 23, 2019
34811bc
Add missing TODO
weberlo May 23, 2019
7da9ced
Partially address feedback
weberlo May 25, 2019
327d8d5
Fix headers
weberlo May 25, 2019
4bc1633
Switch to enum class for `SectionKind`
weberlo May 27, 2019
2bc32ff
Add missing ASF header
weberlo May 28, 2019
43d44b0
Fix lint
weberlo May 28, 2019
49bf4e3
Fix lint again
weberlo May 29, 2019
3ee73da
Fix lint
weberlo May 29, 2019
6c62a03
Kill lint warnings
weberlo May 30, 2019
fc85816
Address feedback
weberlo May 31, 2019
81c367c
Change Python interface to MicroTVM
weberlo May 31, 2019
9f6fd46
Reorder LowLevelDevice interface
weberlo Jun 18, 2019
dbfe060
Store shared ptr to session in all alloced objects
weberlo Jun 18, 2019
a6d28ed
Move helper functions out of `tvm.micro`
weberlo Jun 18, 2019
52477a8
Switch static char arr to vector
weberlo Jul 2, 2019
35dc1d5
Improve general infra and code quality
weberlo Jul 3, 2019
260ec37
Forgot a rename
weberlo Jul 3, 2019
953d217
Fix lint
weberlo Jul 3, 2019
cf95739
Add ASF header
weberlo Jul 3, 2019
efdeb23
Fix lint
weberlo Jul 3, 2019
4d929e3
Partially address MarisaKirisame's feedback
weberlo Jul 3, 2019
6f30813
Lint
weberlo Jul 3, 2019
5cf5093
Expose `MicroSession` as a node to Python
weberlo Jul 5, 2019
4f27116
Revert to using `Session` constructor
weberlo Jul 5, 2019
297cbb1
Fix compiler error
weberlo Jul 5, 2019
105e3b3
(Maybe) fix CI error
weberlo Jul 5, 2019
29782bd
Debugging
weberlo Jul 6, 2019
03c0616
Remove
weberlo Jul 6, 2019
9057d3b
Quell lint
weberlo Jul 6, 2019
d3be1fb
Switch to stack-based session contexts
weberlo Jul 9, 2019
c5ef066
Make uTVM less intrusive to host codegen
weberlo Jul 11, 2019
b3d9369
Inline UTVMArgs into UTVMTask struct
weberlo Jul 11, 2019
c8cb63b
Remove `HostLowLevelDevice` header
weberlo Jul 11, 2019
8ffbf73
Remove `BaseAddr` class
weberlo Jul 11, 2019
5e9347f
Address feedback
weberlo Jul 11, 2019
7e1bae7
Add "utvm" prefix to global vars in runtime
weberlo Jul 11, 2019
bdb21e9
Fix lint
weberlo Jul 11, 2019
f22b880
Fix CI
weberlo Jul 11, 2019
40978cd
Fix `test_binutil.py`
weberlo Jul 12, 2019
7e8bcd9
Fix submodules
weberlo Jul 12, 2019
81b178e
Remove ResNet tests
weberlo Jul 12, 2019
1aae051
Make `test_binutil.py` work with nose
weberlo Jul 12, 2019
50f5b1b
Fix CI
weberlo Jul 12, 2019
e285275
I swear this actually fixes the binutil tests
weberlo Jul 12, 2019
e280703
lint
weberlo Jul 12, 2019
ad414da
lint
weberlo Jul 12, 2019
492b472
Add fcompile-compatible cross-compile func
weberlo Jul 13, 2019
e41d718
Add docs for uTVM runtime files
weberlo Jul 13, 2019
458bd7a
Move pointer patching into `MicroSession`
weberlo Jul 13, 2019
42be5ea
Fix lint
weberlo Jul 14, 2019
b1a3d91
First attempt at unifying cross-compile APIs
weberlo Jul 14, 2019
2553c04
Fix lint
weberlo Jul 15, 2019
f62ee28
Rename `cross_compile` back to `cc`
weberlo Jul 15, 2019
b731a46
Address feedback
weberlo Jul 15, 2019
56388ab
Remove commented code
weberlo Jul 15, 2019
d358684
Lint
weberlo Jul 16, 2019
ca671d6
Figure out failing function
weberlo Jul 16, 2019
7e45f89
Remove debugging code
weberlo Jul 18, 2019
71619e3
Change "micro_dev" target to "micro"
weberlo Jul 18, 2019
0c44fdf
Add checks in tests for whether uTVM is enabled
weberlo Jul 18, 2019
d63f2ff
Add TODO for 32-bit support
weberlo Jul 18, 2019
2d516ea
Rename more "micro_dev" to "micro"
weberlo Jul 18, 2019
2b7a269
Undo rename
weberlo Jul 18, 2019
9dd60a6
Fix failing CI
weberlo Jul 23, 2019
9d05c29
Address feedback
weberlo Jul 23, 2019
3c68727
Fix lint
weberlo Jul 24, 2019
810dcb6
Merge branch 'master' into micro-tvm
weberlo Jul 24, 2019
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
Prev Previous commit
Next Next commit
Doc/style fixes
  • Loading branch information
weberlo committed Jul 24, 2019
commit 6ae42ad38d0d9b3fe4f642ea683829a572a30b10
16 changes: 8 additions & 8 deletions src/runtime/micro/target_data_layout_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class TargetDataLayoutEncoder {
/*!
* \brief constructor
* \param parent pointer to parent encoder
* \param start_offs start byte offset of the slot in the backing buffer
* \param start_offset start byte offset of the slot in the backing buffer
* \param size size (in bytes) of the memory region allocated for this slot
* \param dev_start_addr start address of the slot in the device's memory
*/
Slot(TargetDataLayoutEncoder* parent, size_t start_offs, size_t size, void* dev_start_addr);
Slot(TargetDataLayoutEncoder* parent, size_t start_offset, size_t size, void* dev_start_addr);

~Slot();

Expand All @@ -47,7 +47,7 @@ class TargetDataLayoutEncoder {
* \param src_ptr address of the buffer to be read from
* \param num_elems number of elements in array (defaults to 1)
*/
void Write(const T* src_ptr, size_t num_elems=1);
void Write(const T* src_ptr, size_t num_elems = 1);

/*!
* \brief returns start address of the slot in device memory
Expand Down Expand Up @@ -91,14 +91,14 @@ class TargetDataLayoutEncoder {
* \return slot of size `sizeof(T) * num_elems` bytes
*/
template <typename T>
Slot<T> Alloc(size_t num_elems=1) {
Slot<T> Alloc(size_t num_elems = 1) {
size_t size = sizeof(T) * num_elems;
if (curr_offset_ + size > buf_.size()) {
buf_.resize(curr_offset_ + size);
}
size_t slot_start_offs = curr_offset_;
size_t slot_start_offset = curr_offset_;
curr_offset_ += size;
return Slot<T>(this, slot_start_offs, size, GetDevAddr(slot_start_offs));
return Slot<T>(this, slot_start_offset, size, GetDevAddr(slot_start_offset));
}

/*!
Expand Down Expand Up @@ -138,10 +138,10 @@ class TargetDataLayoutEncoder {
};

template <typename T>
TargetDataLayoutEncoder::Slot<T>::Slot(TargetDataLayoutEncoder* parent, size_t start_offs,
TargetDataLayoutEncoder::Slot<T>::Slot(TargetDataLayoutEncoder* parent, size_t start_offset,
Comment thread
weberlo marked this conversation as resolved.
Outdated
size_t size, void* dev_start_addr)
: parent_(parent),
start_offset_(start_offs),
start_offset_(start_offset),
curr_offset_(0),
size_(size),
dev_start_addr_(dev_start_addr) {}
Expand Down