# Dl4j cuda 11.2 running out of memory on evaluation on ubuntu 20.04

**URL:** <https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377>\
**Category:** DL4J\
**Created:** [May 10, 2021, 6:19pm UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377 "2021-05-10T18:19:26Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![ajmakoni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/ajmakoni/32/497_2.png) [@ajmakoni](https://community.konduit.ai/u/ajmakoni)\
**Post date:** [October 26, 2021, 7:28am UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377/21 "2021-10-26T07:28:42Z")

</div>

@agibsonccc hi, i sent you a dm and shared the code with you on github on Friday - 22 October, 2022, did you receive my message and request?

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [October 26, 2021, 11:40am UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377/22 "2021-10-26T11:40:00Z")

</div>

@ajmakoni yes I did sorry I also did see the github repo, just not enough time to get to it yet. Thanks for following up. Please ping me by end of week again.

---

<div class="post-metadata">

**Author:** ![ajmakoni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/ajmakoni/32/497_2.png) [@ajmakoni](https://community.konduit.ai/u/ajmakoni)\
**Post date:** [October 27, 2021, 3:01pm UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377/23 "2021-10-27T15:01:57Z")

</div>

@agibsonccc okay, thanks. will ping you again at the end of the week

---

<div class="post-metadata">

**Author:** ![ajmakoni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/ajmakoni/32/497_2.png) [@ajmakoni](https://community.konduit.ai/u/ajmakoni)\
**Post date:** [October 31, 2021, 4:31pm UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377/24 "2021-10-31T16:31:27Z")

</div>

@agibsonccc hi, did you manage to find time to look at the code?

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [November 3, 2021, 12:32pm UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377/25 "2021-11-03T12:32:37Z")

</div>

@ajmakoni so a few things in your project:

You need to add the new cudnn backend support specifically.  
See:

> **[Cudnn](https://deeplearning4j.konduit.ai/multi-project/explanation/configuration/backends/cudnn#using-cudnn-via-nd4j)**
>
> Using the NVIDIA cuDNN library with DL4J.

Remove the old deeplearning4j-cuda and ensure that you either have a compatible version of cuda installed or you use the cuda redist artifacts if you won’t have the version of cuda and cudnn installed locally.

See:

> **[Javacpp](https://deeplearning4j.konduit.ai/multi-project/how-to-guides/developer-docs/javacpp#redist-artifacts)**
>
> DL4J and Javacpp

Based on what I’m seeing in the project a lot of the basic steps are missing for the upgrade. Start there and let me know how it goes.

---

<div class="post-metadata">

**Author:** ![ajmakoni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/ajmakoni/32/497_2.png) [@ajmakoni](https://community.konduit.ai/u/ajmakoni)\
**Post date:** [November 6, 2021, 5:50am UTC](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377/26 "2021-11-06T05:50:48Z")

</div>

@agibsonccc thank you for the feedback. will keep you posted with results after making the necessary changes

[Previous page](https://community.konduit.ai/t/dl4j-cuda-11-2-running-out-of-memory-on-evaluation-on-ubuntu-20-04/1377.md?page=1)
