Displaying gpus and memory on session card header

After a Batch Connect job is submitted, the session card header currently shows resource badges like:

1 node | 8 cores | Running

Since many interactive apps now support GPUs, I would like to show GPU and memory requests in that same top-right header area as badges, for example:

1 node | 8 cores | 2 GPUs | 64 GB memory | Running

In my app, I can add display: true to the GPU and memory form attributes, and that does show the values on the session card. However, they appear in the session card details area rather than as green resource badges in the header next to nodes and cores.

I found this related 2024 Discourse thread:

Is there currently a supported app-level way to add GPU and memory values to the session card header badges? If not, is this feature planned for a future Open OnDemand release?

If this still requires a site-level dashboard customization, could you point me to the relevant helper or partial that renders the nodes/cores badges?

Thanks!

The partial sits here: ondemand/apps/dashboard/app/views/batch_connect/sessions/card/_card_header.html.erb at master · OSC/ondemand · GitHub

But I will note that in the 4.1 release that feature was be enabled by default I think. You can see in the release notes here about it, though if you’re on 4.1 and still not seeing this render please let me know as that may be a bug on our end.

Thank you, we are running 4.0.7 right now, but have plan to upgrade to latest version. I will wait for the upgrade then.