Skip to content

[Tutorial] [O2AT6] Potential tutorial task for GPU execution of neural networks - #18471

Open
ChSonnabend wants to merge 8 commits into
AliceO2Group:masterfrom
ChSonnabend:o2at6
Open

ChSonnabend wants to merge 8 commits into
AliceO2Group:masterfrom
ChSonnabend:o2at6

Conversation

@ChSonnabend

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 13 warnings, 🔕 0 disabled

@github-actions github-actions Bot changed the title [O2AT6] Potential tutorial task for GPU execution of neural networks [Tutorial] [O2AT6] Potential tutorial task for GPU execution of neural networks Oct 26, 2026
Please consider the following formatting changes to AliceO2Group#18471
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 6eb5960 at 2026-10-26 22:28:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 12 errors and 10 warnings.'
Found 12 errors and 10 warnings.
++ [[ 12 -gt 0 ]]
++ cat /sw/BUILD/6c3d954c6f45538a5c5de125a14a77884b322db5/O2Physics-code-check/errors.txt
Tutorials/ML/benchmarkOnnxModel.cxx:59:42: error: no header providing "size_t" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:139:18: error: no header providing "ORT_LOGGING_LEVEL_WARNING" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:143:39: error: no header providing "GraphOptimizationLevel" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:154:9: error: no header providing "OrtCUDAProviderOptionsV2" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:163:9: error: no header providing "OrtMIGraphXProviderOptions" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:179:30: error: no header providing "ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT16" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:179:70: error: no header providing "ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:201:44: error: no header providing "OrtArenaAllocator" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:201:63: error: no header providing "OrtMemTypeDefault" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:210:7: error: 'emplace_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:214:7: error: 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:236:45: error: no header providing "std::ios" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 10 -gt 0 ]]
++ cat /sw/BUILD/6c3d954c6f45538a5c5de125a14a77884b322db5/O2Physics-code-check/warnings.txt
Tutorials/ML/benchmarkOnnxModel.cxx:57:22: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast]
Tutorials/ML/benchmarkOnnxModel.cxx:59:17: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast]
Tutorials/ML/benchmarkOnnxModel.cxx:75:3: warning: function 'used' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tutorials/ML/benchmarkOnnxModel.cxx:158:15: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:159:15: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:160:81: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
Tutorials/ML/benchmarkOnnxModel.cxx:160:87: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
Tutorials/ML/benchmarkOnnxModel.cxx:207:11: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:220:46: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:220:46: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
++ [[ 12 -gt 0 ]]
++ exit 1
--

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for ebbb7a4 at 2026-10-26 22:51:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 12 errors and 10 warnings.'
Found 12 errors and 10 warnings.
++ [[ 12 -gt 0 ]]
++ cat /sw/BUILD/6ea012a9d1e165f8da2eccf236e4a39dcb4b05b7/O2Physics-code-check/errors.txt
Tutorials/ML/benchmarkOnnxModel.cxx:59:42: error: no header providing "size_t" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:139:18: error: no header providing "ORT_LOGGING_LEVEL_WARNING" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:143:39: error: no header providing "GraphOptimizationLevel" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:154:9: error: no header providing "OrtCUDAProviderOptionsV2" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:163:9: error: no header providing "OrtMIGraphXProviderOptions" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:179:30: error: no header providing "ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT16" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:179:70: error: no header providing "ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:201:44: error: no header providing "OrtArenaAllocator" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:201:63: error: no header providing "OrtMemTypeDefault" is directly included [misc-include-cleaner,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:210:7: error: 'emplace_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:214:7: error: 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop [performance-inefficient-vector-operation,-warnings-as-errors]
Tutorials/ML/benchmarkOnnxModel.cxx:236:45: error: no header providing "std::ios" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 10 -gt 0 ]]
++ cat /sw/BUILD/6ea012a9d1e165f8da2eccf236e4a39dcb4b05b7/O2Physics-code-check/warnings.txt
Tutorials/ML/benchmarkOnnxModel.cxx:57:22: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast]
Tutorials/ML/benchmarkOnnxModel.cxx:59:17: warning: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast]
Tutorials/ML/benchmarkOnnxModel.cxx:75:3: warning: function 'used' should be marked [[nodiscard]] [modernize-use-nodiscard]
Tutorials/ML/benchmarkOnnxModel.cxx:158:15: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:159:15: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:160:81: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
Tutorials/ML/benchmarkOnnxModel.cxx:160:87: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
Tutorials/ML/benchmarkOnnxModel.cxx:207:11: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:220:46: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
Tutorials/ML/benchmarkOnnxModel.cxx:220:46: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
++ [[ 12 -gt 0 ]]
++ exit 1
--

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants