Skip to content

[cpullvm] upgrade ram size for riscv variants#375

Merged
apazos merged 1 commit into
qualcomm:qualcomm-softwarefrom
bojle:ram_upgrade_riscv
Jun 4, 2026
Merged

[cpullvm] upgrade ram size for riscv variants#375
apazos merged 1 commit into
qualcomm:qualcomm-softwarefrom
bojle:ram_upgrade_riscv

Conversation

@bojle

@bojle bojle commented May 21, 2026

Copy link
Copy Markdown
Contributor

Tests such as dynamic_cast14.pass.cpp in libcxxabi fail due to
infsufficient RAM size. This patch fixes it by increasing the RAM size
allocated to qemu.

Tests such as dynamic_cast14.pass.cpp in libcxxabi fail due to
infsufficient RAM size. This patch fixes it by increasing the RAM size
allocated to qemu. The sizes are derived from the reports of failed test
cases empirically. dynamic_cast14 overflows by 7.7MB, its executable
size is 2MB, which implies a requirement of ~9.5MB. Therefore, a size
of 10MB is chosen for all riscv variants. Other tests, as they're
uncovered may demand a higher size, in which case this can be adjusted.

@bojle

bojle commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

related #374

@jonathonpenix

jonathonpenix commented May 22, 2026

Copy link
Copy Markdown
Contributor

Can you include a mention in the commit message/PR description about where the new size is coming from (is it just a value that was large enough experimentally for the tests in question?) would be helpful.

@bojle

bojle commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

@jonathonpenix I've updated the description with a reference to where the sizes come from.

@apazos

apazos commented May 30, 2026

Copy link
Copy Markdown
Contributor

@bojle, can you add the information about how you adjusted the sizes to the commit message? It is helpful for future maintainers. @quic-garvgupt will do a combo run with his additional patches to confirm the issues are resolved.

Tests such as dynamic_cast14.pass.cpp in libcxxabi fail due to
infsufficient RAM size. This patch fixes it by increasing the RAM size
allocated to qemu.

Tests such as dynamic_cast14.pass.cpp in libcxxabi fail due to
infsufficient RAM size. This patch fixes it by increasing the RAM size
allocated to qemu. The sizes are derived from the reports of failed test
cases empirically. dynamic_cast14 overflows by 7.7MB, its executable
size is 2MB, which implies a requirement of ~9.5MB. Therefore, a size
of 10MB is chosen for all riscv variants. Other tests, as they're
uncovered may demand a higher size, in which case this can be adjusted.

Signed-off-by: Shreeyash Pandey <shrpand@qti.qualcomm.com>
@bojle bojle force-pushed the ram_upgrade_riscv branch from 7dfafb6 to e49b9c2 Compare June 1, 2026 07:27
@bojle

bojle commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Added the method of deciding on the ram size to the commit message and the PR description. @apazos please check it out.

@apazos apazos merged commit ebeb56d into qualcomm:qualcomm-software Jun 4, 2026
8 of 9 checks passed
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