# Ray.get\_gpu\_ids()

**URL:** <https://discuss.ray.io/t/ray-get-gpu-ids/3499>\
**Category:** RLlib\
**Created:** [September 10, 2021, 9:51pm UTC](https://discuss.ray.io/t/ray-get-gpu-ids/3499 "2021-09-10T21:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepgravity](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/deepgravity/32/2039_2.png) [@deepgravity](https://discuss.ray.io/u/deepgravity)\
**Post date:** [September 10, 2021, 9:51pm UTC](https://discuss.ray.io/t/ray-get-gpu-ids/3499/1 "2021-09-10T21:51:52Z")

</div>

Hi, I am using `RLlib` and training a `dqn` agent with default config on a custom env on my `Windows 10` and `colab`. I got the following warning which is so annoying as it gives this warning over 1000 times while training the agent so I lose my print information. I wonder if anyone knows how to fix it?

I already added the following lines to my code, but it did not work.

```auto
import warnings
warnings.filterwarnings('ignore')

```

2021-09-10 21:35:45,807 WARNING worker.py:499 – `ray.get_gpu_ids()` will always return the empty list when called from the driver. This is because Ray does not manage GPU allocations to the driver process.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/b/bc6bf50b4892c90104821816fa2c5bb7e9f98f33.png)

---

<div class="post-metadata">

**Author:** ![xwjiang2010](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/xwjiang2010/32/1476_2.png) [@xwjiang2010](https://discuss.ray.io/u/xwjiang2010)\
**Post date:** [September 10, 2021, 10:05pm UTC](https://discuss.ray.io/t/ray-get-gpu-ids/3499/2 "2021-09-10T22:05:15Z")

</div>

Hi @deepgravity,  
Thanks for the report. Yes, this is a known issue.  
The next official ray release 1.7.0 is coming out that includes the fix. Stay tuned!  
In the meantime, latest nightly wheel of Ray should also do.  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![deepgravity](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/deepgravity/32/2039_2.png) [@deepgravity](https://discuss.ray.io/u/deepgravity)\
**Post date:** [September 18, 2021, 5:43pm UTC](https://discuss.ray.io/t/ray-get-gpu-ids/3499/3 "2021-09-18T17:43:14Z")

</div>

Thanks. I updated my Ray to the new version, as you recommended. But, it did not solve the issue precisely. Actually, now it does not print that line many times, but prints an empty (new) line many times 🙂
