# How to add number of GPUs to session card

**URL:** <https://discourse.openondemand.org/t/how-to-add-number-of-gpus-to-session-card/3872>\
**Category:** Get Help\
**Created:** [November 14, 2024, 8:05pm UTC](https://discourse.openondemand.org/t/how-to-add-number-of-gpus-to-session-card/3872 "2024-11-14T20:05:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian-burlacu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/sebastian-burlacu/32/2440_2.png) [@sebastian-burlacu](https://discourse.openondemand.org/u/sebastian-burlacu)\
**Post date:** [November 14, 2024, 8:05pm UTC](https://discourse.openondemand.org/t/how-to-add-number-of-gpus-to-session-card/3872/1 "2024-11-14T20:05:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/d/d2bf8d67b6251b6ebd45937571ed5ee2a3c104a6.png)

I would like to show the number of GPUs assigned to an interactive desktop session, just like cores and nodes. Is this possible? I see this is generated by /var/www/ood/apps/sys/dashboard/app/helpers/batch\_connect/sessions\_helper.rb but I don’t think I should edit this (nor do I have the Ruby ability to).

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 22, 2024, 4:38pm UTC](https://discourse.openondemand.org/t/how-to-add-number-of-gpus-to-session-card/3872/2 "2024-11-22T16:38:05Z")

</div>

We don’t have support for that yet. I’d guess you’d have to not only edit the ruby file, but also the partial that displays it.

We do, however, have a ticket for this. So it may just get enabled at some point.

> <https://github.com/OSC/ondemand/issues/3910>
>
> Similar to #1007 in that this idea is for adding GPU request in addition to the …others we now show. Below / attached is a screenshot from issue #1007 illustrating this example with nodes, cores, and memory. GPU would be another listed. 
> 
> !\[gpu\](https://github.com/user-attachments/assets/98cc6f2e-c8d7-4a2e-8d66-05bab728563e)
> 
> At OSC, the support could only be for Slurm and possibly Kubernetes.

---

<div class="post-metadata">

**Author:** ![sebastian-burlacu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/sebastian-burlacu/32/2440_2.png) [@sebastian-burlacu](https://discourse.openondemand.org/u/sebastian-burlacu)\
**Post date:** [November 22, 2024, 4:41pm UTC](https://discourse.openondemand.org/t/how-to-add-number-of-gpus-to-session-card/3872/3 "2024-11-22T16:41:19Z")

</div>

I see - thanks! I will be hopeful for the future.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [May 21, 2025, 4:41pm UTC](https://discourse.openondemand.org/t/how-to-add-number-of-gpus-to-session-card/3872/4 "2025-05-21T16:41:53Z")

</div>

Closed on May 21, 2025, 4:41pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
