Skip to content

[MLAS] Correcting Compilation Errors: onnxruntime/onnxruntime/core/mlas/lib/riscv64/sconv_depthwise_kernel_rvv.cpp:138:18: error: unused variable 'pad_bottom'#28506

Merged
hariharans29 merged 1 commit into
microsoft:mainfrom
zte-riscv:feature/rvv-sgemm-kernel
May 20, 2026

Conversation

@zejianzhang1982
Copy link
Copy Markdown
Contributor

…riscv64/sconv_depthwise_kernel_rvv.cpp:138:18: error: unused variable 'pad_bottom'

Correcting Compilation Errors: onnxruntime/onnxruntime/core/mlas/lib/riscv64/sconv_depthwise_kernel_rvv.cpp:138:18: error: unused variable 'pad_bottom'

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a RISC-V RVV depthwise-convolution kernel build failure caused by -Werror=unused-variable for pad_bottom in release builds (where assert() is compiled out).

Changes:

  • Commented out the pad_bottom local and its corresponding assert(pad_bottom <= 1) in the RVV 3x3 depthwise kernel.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread onnxruntime/core/mlas/lib/riscv64/sconv_depthwise_kernel_rvv.cpp Outdated
@hariharans29
Copy link
Copy Markdown
Member

Can you please fix Copilot's comments ?

@hariharans29 hariharans29 changed the title Correcting Compilation Errors: onnxruntime/onnxruntime/core/mlas/lib/riscv64/sconv_depthwise_kernel_rvv.cpp:138:18: error: unused variable 'pad_bottom' [MLAS] Correcting Compilation Errors: onnxruntime/onnxruntime/core/mlas/lib/riscv64/sconv_depthwise_kernel_rvv.cpp:138:18: error: unused variable 'pad_bottom' May 19, 2026
@zejianzhang1982 zejianzhang1982 force-pushed the feature/rvv-sgemm-kernel branch from ca616ea to 470943c Compare May 20, 2026 01:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@hariharans29 hariharans29 merged commit 3a071a6 into microsoft:main May 20, 2026
93 of 94 checks passed
@zejianzhang1982 zejianzhang1982 deleted the feature/rvv-sgemm-kernel branch May 20, 2026 06:04
Sign up for free to 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