Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] onnxruntime v1.15.0 with --enable_memory_profile fails #16190

Closed
barnou-psee opened this issue Jun 1, 2023 · 1 comment
Closed

[Build] onnxruntime v1.15.0 with --enable_memory_profile fails #16190

barnou-psee opened this issue Jun 1, 2023 · 1 comment
Labels
build build issues; typically submitted using template

Comments

@barnou-psee
Copy link

Describe the issue

I want to have a build with memory profiling enabled, but the build fails at some point because it looks for the attribute name in the structure OrtDevice which doesn't exist.

Urgency

Not very urgent.

Target platform

x86

Build script

./build.sh --config Release --build_shared_lib --use_cache --parallel 8 --skip_tests --enable_memory_profile --compile_no_warning_as_error

Error / output

.../onnxruntime/onnxruntime/core/framework/execution_frame.cc:424:73: error: ‘const struct OrtDevice’ has no member named ‘name’
  424 |                   static_activation_memory_sizes_in_byte_.find(location.name) ==
      |                                                                         ^~~~
.../onnxruntime/include/onnxruntime/core/common/common.h:174:11: note: in definition of macro ‘ORT_ENFORCE’
  174 |     if (!(condition)) {                                                                  \
      |           ^~~~~~~~~
.../onnxruntime/onnxruntime/core/framework/execution_frame.cc:427:28: error: ‘const struct OrtDevice’ has no member named ‘name’
  427 |                   location.name,
      |                            ^~~~
.../onnxruntime/include/onnxruntime/core/common/common.h:176:75: note: in definition of macro ‘ORT_ENFORCE’
  176 |                                                 ::onnxruntime::MakeString(__VA_ARGS__)); \
      |                                                                           ^~~~~~~~~~~
.../onnxruntime/onnxruntime/core/framework/execution_frame.cc:431:64: error: ‘const struct OrtDevice’ has no member named ‘name’
  431 |               static_activation_memory_sizes_in_byte_[location.name] = peak_size;

Visual Studio Version

No response

GCC / Compiler Version

9.4.0

@barnou-psee barnou-psee added the build build issues; typically submitted using template label Jun 1, 2023
@edgchen1
Copy link
Contributor

edgchen1 commented Jun 1, 2023

duplicate of #16124.

this should be fixed in main now.

@edgchen1 edgchen1 closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants