[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

[microNPU] fix the CMake to keep utils.cc - #9630

Merged
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils
Dec 2, 2021
Merged

[microNPU] fix the CMake to keep utils.cc#9630
jroesch merged 1 commit into
apache:mainfrom
manupak:micronpu_cmake_to_keep_utils

Conversation

@manupak

Copy link
Copy Markdown
Contributor

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.

If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
@manupak

Copy link
Copy Markdown
ContributorAuthor

cc : @gromero@leandron

@gromero

Copy link
Copy Markdown
Contributor

@manupa-arm Thanks for fixing it. LGTM. I have no idea why CI didn't catch it. afaics it should ...

For the records, the trace for the issue fixed here is:

gromero@amd:~/git/tvm$ tvmc Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/__init__.py", line 24, in <module>
from . import autotuner
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/autotuner.py", line 37, in <module>
from . import common, composite_target, frontends
File "/home/gromero/git/tvm/python/tvm/driver/tvmc/composite_target.py", line 29, in <module>
from tvm.relay.op.contrib.ethosu import partition_for_ethosu
File "/home/gromero/git/tvm/python/tvm/relay/op/contrib/ethosu.py", line 39, in <module>
from tvm.relay.backend.contrib.ethosu import preprocess
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/__init__.py", line 18, in <module>
from . import util
File "/home/gromero/git/tvm/python/tvm/relay/backend/contrib/ethosu/util.py", line 218, in <module>
class CompilationArtifact(Object):
File "/home/gromero/git/tvm/python/tvm/_ffi/registry.py", line 69, in register
check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), ctypes.byref(tidx)))
File "/home/gromero/git/tvm/python/tvm/_ffi/base.py", line 348, in check_call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
183: 0xffffffffffffffff
182: _start
181: __libc_start_main
180: Py_BytesMain
179: Py_RunMain
178: 0x00000000006142ef
177: _PyFunction_Vectorcall
176: 0x0000000000514a74
175: _PyEval_EvalFrameDefault
174: _PyFunction_Vectorcall
173: 0x0000000000514a74
172: _PyEval_EvalFrameDefault
171: _PyFunction_Vectorcall
170: 0x0000000000514a74
169: _PyEval_EvalFrameDefault
168: _PyObject_MakeTpCall
167: 0x000000000054350b
166: 0x0000000000555be7
165: PyImport_ImportModuleLevelObject
164: _PyObject_CallMethodIdObjArgs
163: 0x000000000052ca22
162: _PyFunction_Vectorcall
161: _PyEval_EvalFrameDefault
160: _PyFunction_Vectorcall
159: _PyEval_EvalFrameDefault
158: _PyFunction_Vectorcall
157: _PyEval_EvalFrameDefault
156: _PyFunction_Vectorcall
155: _PyEval_EvalFrameDefault
154: _PyFunction_Vectorcall
153: 0x0000000000514a74
152: _PyEval_EvalFrameDefault
151: 0x000000000052de87
150: 0x00000000005ffe83
149: PyEval_EvalCode
148: _PyEval_EvalCodeWithName
147: 0x0000000000514a74
146: _PyEval_EvalFrameDefault
145: PyImport_ImportModuleLevelObject
144: _PyObject_CallMethodIdObjArgs
143: 0x000000000052ca22
142: _PyFunction_Vectorcall
141: 0x0000000000515376
140: _PyEval_EvalFrameDefault
139: _PyFunction_Vectorcall
138: 0x0000000000514a74
137: _PyEval_EvalFrameDefault
136: PyObject_Call
135: 0x000000000054350b
134: 0x0000000000555be7
133: PyImport_ImportModuleLevelObject
132: _PyObject_CallMethodIdObjArgs
131: 0x000000000052ca22
130: _PyFunction_Vectorcall
129: _PyEval_EvalFrameDefault
128: _PyFunction_Vectorcall
127: _PyEval_EvalFrameDefault
126: _PyFunction_Vectorcall
125: _PyEval_EvalFrameDefault
124: _PyFunction_Vectorcall
123: _PyEval_EvalFrameDefault
122: _PyFunction_Vectorcall
121: 0x0000000000514a74
120: _PyEval_EvalFrameDefault
119: 0x000000000052de87
118: 0x00000000005ffe83
117: PyEval_EvalCode
116: _PyEval_EvalCodeWithName
115: 0x0000000000514a74
114: _PyEval_EvalFrameDefault
113: PyImport_ImportModuleLevelObject
112: _PyObject_CallMethodIdObjArgs
111: 0x000000000052ca22
110: _PyFunction_Vectorcall
109: 0x0000000000515376
108: _PyEval_EvalFrameDefault
107: _PyFunction_Vectorcall
106: 0x0000000000514a74
105: _PyEval_EvalFrameDefault
104: PyObject_Call
103: 0x000000000054350b
102: 0x0000000000555be7
101: PyImport_ImportModuleLevelObject
100: _PyObject_CallMethodIdObjArgs
99: 0x000000000052ca22
98: _PyFunction_Vectorcall
97: _PyEval_EvalFrameDefault
96: _PyFunction_Vectorcall
95: _PyEval_EvalFrameDefault
94: _PyFunction_Vectorcall
93: _PyEval_EvalFrameDefault
92: _PyFunction_Vectorcall
91: _PyEval_EvalFrameDefault
90: _PyFunction_Vectorcall
89: 0x0000000000514a74
88: _PyEval_EvalFrameDefault
87: 0x000000000052de87
86: 0x00000000005ffe83
85: PyEval_EvalCode
84: _PyEval_EvalCodeWithName
83: 0x0000000000514a74
82: _PyEval_EvalFrameDefault
81: PyImport_ImportModuleLevelObject
80: _PyObject_CallMethodIdObjArgs
79: 0x000000000052ca22
78: _PyFunction_Vectorcall
77: _PyEval_EvalFrameDefault
76: _PyFunction_Vectorcall
75: _PyEval_EvalFrameDefault
74: _PyFunction_Vectorcall
73: _PyEval_EvalFrameDefault
72: _PyFunction_Vectorcall
71: _PyEval_EvalFrameDefault
70: _PyFunction_Vectorcall
69: 0x0000000000514a74
68: _PyEval_EvalFrameDefault
67: 0x000000000052de87
66: 0x00000000005ffe83
65: PyEval_EvalCode
64: _PyEval_EvalCodeWithName
63: 0x0000000000514a74
62: _PyEval_EvalFrameDefault
61: PyImport_ImportModuleLevelObject
60: _PyObject_CallMethodIdObjArgs
59: 0x000000000052ca22
58: _PyFunction_Vectorcall
57: _PyEval_EvalFrameDefault
56: _PyFunction_Vectorcall
55: _PyEval_EvalFrameDefault
54: _PyFunction_Vectorcall
53: _PyEval_EvalFrameDefault
52: _PyFunction_Vectorcall
51: _PyEval_EvalFrameDefault
50: _PyFunction_Vectorcall
49: 0x0000000000514a74
48: _PyEval_EvalFrameDefault
47: 0x000000000052de87
46: 0x00000000005ffe83
45: PyEval_EvalCode
44: _PyEval_EvalCodeWithName
43: 0x0000000000514a74
42: _PyEval_EvalFrameDefault
41: PyImport_ImportModuleLevelObject
40: _PyObject_CallMethodIdObjArgs
39: 0x000000000052ca22
38: _PyFunction_Vectorcall
37: 0x0000000000515376
36: _PyEval_EvalFrameDefault
35: _PyFunction_Vectorcall
34: 0x0000000000514a74
33: _PyEval_EvalFrameDefault
32: PyObject_Call
31: 0x000000000054350b
30: 0x0000000000555be7
29: PyImport_ImportModuleLevelObject
28: _PyObject_CallMethodIdObjArgs
27: 0x000000000052ca22
26: _PyFunction_Vectorcall
25: _PyEval_EvalFrameDefault
24: _PyFunction_Vectorcall
23: _PyEval_EvalFrameDefault
22: _PyFunction_Vectorcall
21: _PyEval_EvalFrameDefault
20: _PyFunction_Vectorcall
19: _PyEval_EvalFrameDefault
18: _PyFunction_Vectorcall
17: 0x0000000000514a74
16: _PyEval_EvalFrameDefault
15: 0x000000000052de87
14: 0x00000000005ffe83
13: PyEval_EvalCode
12: _PyEval_EvalCodeWithName
11: 0x0000000000514a74
10: _PyEval_EvalFrameDefault
9: _PyFunction_Vectorcall
8: 0x0000000000514a74
7: _PyEval_EvalFrameDefault
6: _PyObject_MakeTpCall
5: 0x00007faf615bc30c
4: 0x00007faf615c6368
3: 0x00007faf61314638
2: 0x00007faf61315248
1: TVMObjectTypeKey2Index
0: tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
File "/home/gromero/git/tvm/src/runtime/object.cc", line 159
TVMError: ---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: (it != type_key2index_.end()) is false: Cannot find type relay.ext.ethos-u.CompilationArtifact. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?

@jroesch
jroesch merged commit 5014b74 into apache:mainDec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
If the build does not use USE_ETHOSU ON,
it will report that Object definitions are missing.
This change will keep the file that has the Object
definitions.
Change-Id: I64776f941bf0475e10397ff2cdbfd73a909611a0
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@manupak@gromero@jroesch