Skip to content

Conversation

@Roll249
Copy link
Contributor

@Roll249 Roll249 commented May 31, 2025

  • Implements mem_tryGetLocalRamCapacityInBytes() using sysinfo on Linux, sysctl on macOS, and GlobalMemoryStatusEx on Windows.
  • Moves platform-specific includes to the top of memory.cpp for clarity.
  • Cleans up indentation and newlines.
  • Removes build/ from the repository and adds it to .gitignore.
  • Supersedes previous PR to main; this one targets devel as requested.

Roll249 added 3 commits May 31, 2025 16:03
…cityInBytes() for Linux, macOS, and Windows. Falls back to exception if not available.
…e platform includes to top, improve clarity. Remove build/ from repo and add to .gitignore.
@Roll249
Copy link
Contributor Author

Roll249 commented May 31, 2025

@TysonRayJones ok let check it bro

This was referenced May 31, 2025
since the windows.h header otherwise defines a `min` and `max` macro which interferes with the existing functions used in this file
it's faster to just do it myself ¯\_(ツ)_/¯
@Roll249
Copy link
Contributor Author

Roll249 commented May 31, 2025

@TysonRayJones =)) oke

@TysonRayJones
Copy link
Member

TysonRayJones commented May 31, 2025

Hi there,
Brilliant, LGTM! It's working on all Github OS and on ARCHER2, reporting ~500GiB local RAM. Ignore the failing unit tests in the CI; those are because the new, working memory check is (correctly) changing the error message of some deliberately-failing functions. I'll update those myself (so please keep this PR open!). I'll assign you the unitaryHACK issue (#600) and close it 🎉

edit: please comment on that issue to appear among the 'assignees' list

@Roll249
Copy link
Contributor Author

Roll249 commented May 31, 2025

@TysonRayJones thank you

@TysonRayJones
Copy link
Member

Note to self:

  • test if any will overflow at spoofed max RAM
  • patch validation tests
  • add Mai Đức Khang to authorlist

@TysonRayJones TysonRayJones merged commit cd5120c into QuEST-Kit:devel Jun 3, 2025
126 of 130 checks passed
@TysonRayJones TysonRayJones mentioned this pull request Oct 13, 2025
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.

2 participants