# GPU is not found when using Tensorflow on a HP laptop

**URL:** <https://discuss.ai.google.dev/t/gpu-is-not-found-when-using-tensorflow-on-a-hp-laptop/31470>\
**Category:** General Discussion\
**Tags:** tf215, cuda, gpu-comptibilty\
**Created:** [March 26, 2024, 2:56am UTC](https://discuss.ai.google.dev/t/gpu-is-not-found-when-using-tensorflow-on-a-hp-laptop/31470 "2024-03-26T02:56:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![381509563](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/381509563/32/7477_2.png) [@381509563](https://discuss.ai.google.dev/u/381509563)\
**Post date:** [March 26, 2024, 2:56am UTC](https://discuss.ai.google.dev/t/gpu-is-not-found-when-using-tensorflow-on-a-hp-laptop/31470/1 "2024-03-26T02:56:26Z")

</div>

The CUDA version is 12.2.0.  
cudnn version is 8.8.1.3  
Tensorflow version is 2.15  
I have tried various methods but still cannot get TensorFlow to detect the GPU,so I hope to get help from everyone

---

<div class="post-metadata">

**Author:** ![Ajay\_Krishna](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/ajay_krishna/32/11706_2.png) [@Ajay\_Krishna](https://discuss.ai.google.dev/u/Ajay_Krishna)\
**Post date:** [March 26, 2024, 3:43am UTC](https://discuss.ai.google.dev/t/gpu-is-not-found-when-using-tensorflow-on-a-hp-laptop/31470/3 "2024-03-26T03:43:49Z")

</div>

Do you have Tensorflow GPU version in your laptop?  
Check whether the Tensorflow installed in your laptop supports GPU.  
I use jupyter notebook in my laptop and there is no problem for me connecting to it.  
Check if environmental variables are correctly set. If you are not sure you can add them explicitly in your code using python.
