[pr-fix][startup] The Resizable BAR notice now checks if the card can use it #99

Closed
CRCODE22 wants to merge 2 commits from CRCODE22/Darner:fix/issue-82-rebar-notice into main
First-time contributor

Summary

Cards that cannot use Resizable BAR (NVIDIA Turing/RTX 20, AMD Polaris/Vega) were told to turn it on in the BIOS, where the setting does nothing for them. Now the notice checks the adapter's vendor and device id:

  • NVIDIA RTX 30 series and newer (Ampere, device 0x22xx+) and AMD RX 5000 series and newer (RDNA 1, device 0x73xx+): get the BIOS advice ("turn it on in the BIOS")
  • Older cards (Turing, Polaris, Vega): get a line that says the card does not support it

The log line names the reason too, so reports can be sorted.

Testing

  • cargo check -p darner-gpu --lib — compiles

Fixes #82

## Summary Cards that cannot use Resizable BAR (NVIDIA Turing/RTX 20, AMD Polaris/Vega) were told to turn it on in the BIOS, where the setting does nothing for them. Now the notice checks the adapter's vendor and device id: - **NVIDIA RTX 30 series and newer** (Ampere, device 0x22xx+) and **AMD RX 5000 series and newer** (RDNA 1, device 0x73xx+): get the BIOS advice ("turn it on in the BIOS") - **Older cards** (Turing, Polaris, Vega): get a line that says the card does not support it The log line names the reason too, so reports can be sorted. ## Testing - cargo check -p darner-gpu --lib — compiles ## Related Fixes #82
#66: CS_TemporalResolve1_Alpha (and other WIDE_SKIP_DEFAULT programs) refused
with 'no wave32 lowering for this wave64 program' never reached the retry
ladder because needs_every_lane did not recognise that message. DARNER_EXACT64
and the other exact forms were never tried for them. Add the message to
needs_every_lane so the ladder opens and the folded form with ordered LDS can
be taken, as the test refused_programs_fold_with_ordered_lds promises.

#70: the default DARNER_MEMORY_FLOOR_MB of 1024 serialised first-seen
pipelines into 7 s freezes on a 32 GB PC (the title commits ~17 GB; the
driver's compiler takes several more; free RAM sits near 1 GB in a world
load). Lower the soft floor to 512 MB: compiles still go one at a time under
it, but the 4096 MB commit floor remains the hard limit that keeps the
process from ending in 'ptxas fatal: Memory allocation failure'.
Cards that cannot use Resizable BAR (NVIDIA Turing/RTX 20, AMD Polaris/Vega)
were told to turn it on in the BIOS, where the setting does nothing for them.
Check the adapter's vendor and device id: NVIDIA RTX 30 series and newer
(Ampere, device 0x22xx+) and AMD RX 5000 series and newer (RDNA 1, device
0x73xx+) get the BIOS advice; older cards get a line that says the card does
not support it. The log line names the reason too, so reports can be sorted.
CRCODE22 closed this pull request 2026-12-03 20:30:45 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!99
No description provided.