# GPUs out of memory?

**URL:** <https://forums.chaos.com/t/gpus-out-of-memory/87247>\
**Category:** Issues\
**Created:** [February 24, 2018, 11:14am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247 "2018-02-24T11:14:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [February 24, 2018, 11:14am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/1 "2018-02-24T11:14:46Z")

</div>

Hello,

I keep getting an out of memory error when I try to use the IPR preview using vray RT with my GPUs. I have 2x GTX 970s. I’ve tried using both of them, one of them and Hybrid with the CPU but the same thing. What I don’t understand is why it’s happening when I can use IPR with my CPU only no problems. The scene isn’t even big. It’s just a experimental scene with 2x hairs, a floor and some books…

 ![Capture.PNG](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/a/9a1a035175910d3a220aae7fa215611c951d3222.png)  
 ![Capture2.PNG](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/3/a392be4d5a3972734077337a7bf6e33548e4c6e1.png)

---

<div class="post-metadata">

**Author:** ![savage309](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/savage309/32/40144_2.png) [@savage309](https://forums.chaos.com/u/savage309)\
**Post date:** [February 24, 2018, 12:05pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/2 "2018-02-24T12:05:06Z")

</div>

What happens if you change the texture mode from “full size” to “resize textures” (the default 512 is a bit too low, you can try 1024 or a bit more for example)?  
Also, keep in mind that the scene has to fit on both GPUs. If you use one of them for display, the viewport (or other apps) could have allocated some memory on it as well. Windows 10 had some version which could allocate up to 1GB of GPU memory by default. The GPUs that are used for monitor are marked with \* in the V-Ray GPU device select list.

Best,  
Blago.

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [February 24, 2018, 1:15pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/3 "2018-02-24T13:15:22Z")

</div>

> [@savage309](#):
>
> What happens if you change the texture mode from “full size” to “resize textures” (the default 512 is a bit too low, you can try 1024 or a bit more for example)?  
> Also, keep in mind that the scene has to fit on both GPUs. If you use one of them for display, the viewport (or other apps) could have allocated some memory on it as well. Windows 10 had some version which could allocate up to 1GB of GPU memory by default. The GPUs that are used for monitor are marked with \* in the V-Ray GPU device select list.
> 
> Best,  
> Blago.

Neither worked. I’ve got my spare GPU enabled and left the other for the viewport and tried what you suggested but neither worked.

---

<div class="post-metadata">

**Author:** ![savage309](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/savage309/32/40144_2.png) [@savage309](https://forums.chaos.com/u/savage309)\
**Post date:** [February 24, 2018, 1:19pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/4 "2018-02-24T13:19:33Z")

</div>

> [@dylan86.exe](#):
>
> Neither worked. I’ve got my spare GPU enabled and left the other for the viewport and tried what you suggested but neither worked.

Uh, sorry for that.  
Is it possible for you to share the scene so we can check what is going on?

Best,  
Blago.

---

<div class="post-metadata">

**Author:** ![savage309](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/savage309/32/40144_2.png) [@savage309](https://forums.chaos.com/u/savage309)\
**Post date:** [February 24, 2018, 4:14pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/5 "2018-02-24T16:14:33Z")

</div>

Our QAs will inspect the scene and we will get back. Thanks!

Best,  
Blago.

---

<div class="post-metadata">

**Author:** ![MANUEL\_MOUSIOL](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/manuel_mousiol/32/2905_2.png) [@MANUEL\_MOUSIOL](https://forums.chaos.com/u/MANUEL_MOUSIOL)\
**Post date:** [February 25, 2018, 12:03pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/6 "2018-02-25T12:03:06Z")

</div>

> [@dylan86.exe](#):
>
> Also, while your at it - the light in my scene I’m having a problem with. 1500lm for it seems too dark for the room. But I know this is a realistic number. However, if I turn the value up to 100  
> ,000lm, the lighting seems more realistic - but then the light cover that is covering the light (2sided material) it’s exposure gets blown out… What should I do?

but thats how it would be in real life, no? unless you compress the shit out of it with a slog or vlog. In the end, if you would photograph it and edit the RAW file, you would bring down the highlights to get as much info out of the lamp as possible. But since you can export HDR images, you wont have any problem editing the blown out parts in post…

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [February 26, 2018, 10:03am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/7 "2018-02-26T10:03:23Z")

</div>

> [@dylan86.exe](#):
>
> Hello,
> 
> I keep getting an out of memory error when I try to use the IPR preview using vray RT with my GPUs. I have 2x GTX 970s. I’ve tried using both of them, one of them and Hybrid with the CPU but the same thing. What I don’t understand is why it’s happening when I can use IPR with my CPU only no problems. The scene isn’t even big. It’s just a experimental scene with 2x hairs, a floor and some books…

What is your V-Ray version? Can you update and try rendering the scene again?

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [February 27, 2018, 7:46am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/8 "2018-02-27T07:46:07Z")

</div>

This is really confusing. What should I be using for previewing and working in real-time? There’s 3x options in the target: active shade, production and iteractive. At the moment it’s in productive where I’ve left it from the beginning. I read the documentation but I couldnt understand the difference.

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [February 27, 2018, 8:32am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/9 "2018-02-27T08:32:30Z")

</div>

First you must choose what will be your Production (final) engine. For keeping things the same between the real-time work and final frames, the engine for both must be the same.

So if you want to use your GPUs (as you pointed out) it will be best if you update to the newest beta (Next 2), as it contains the best V-Ray GPU version released yet.

3.04 (I guess you mean 3.4) is pretty old and V-Ray GPU has evolved a lot since that.

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [February 27, 2018, 8:55am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/10 "2018-02-27T08:55:19Z")

</div>

> [@matanov](#):
>
> First you must choose what will be your Production (final) engine. For keeping things the same between the real-time work and final frames, the engine for both must be the same.
> 
> So if you want to use your GPUs (as you pointed out) it will be best if you update to the newest beta (Next 2), as it contains the best V-Ray GPU version released yet.
> 
> 3.04 (I guess you mean 3.4) is pretty old and V-Ray GPU has evolved a lot since that.

Sorry I meant 3.60. I don’t know why i said 3.04. I don’t believe I have access to the Beta versions as I’m on a EDU licence?

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [February 28, 2018, 7:24am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/11 "2018-02-28T07:24:23Z")

</div>

@matanov any chance of getting a solution to this??

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [March 4, 2018, 10:56pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/12 "2018-03-04T22:56:51Z")

</div>

> [@matanov](#):
>
> What is your V-Ray version? Can you update and try rendering the scene again?

any chance of getting a solution to this??

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [March 6, 2018, 8:09am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/13 "2018-03-06T08:09:00Z")

</div>

You’ve sent only the scene file without the textures and it renders fine on my machine (3.60.04).

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [March 6, 2018, 8:43am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/14 "2018-03-06T08:43:22Z")

</div>

> [@matanov](#):
>
> You’ve sent only the scene file without the textures and it renders fine on my machine (3.60.04).

I’ve sent you screenshots of the error I’m getting and I’ve waited patiently (10 days now). So what exactly do you suggest I do considering I’m paying money for this and getting very little support?.  
Please see attached.

[https://drive.google.com/open?id=1x3iPD2jDJBCwF1jdo0SsBQnUia1U-Yyi](https://drive.google.com/open?id=1x3iPD2jDJBCwF1jdo0SsBQnUia1U-Yyi)

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [March 6, 2018, 1:54pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/15 "2018-03-06T13:54:40Z")

</div>

Try rendering with resized textures (the default mode is Full size).

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [March 7, 2018, 12:55am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/16 "2018-03-07T00:55:59Z")

</div>

> [@matanov](#):
>
> Try rendering with resized textures (the default mode is Full size).

This was already suggested in the 2nd comment by Blago…

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [March 7, 2018, 8:19am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/17 "2018-03-07T08:19:19Z")

</div>

Lower the resize value more OR use less textures OR buy a GPU with more then 4 GB OR use only the device that is not connected to the monitor (Windows and 3ds max use a lot of memory too).

---

<div class="post-metadata">

**Author:** ![dylan86.exe](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/dylan86.exe/32/6749_2.png) [@dylan86.exe](https://forums.chaos.com/u/dylan86.exe)\
**Post date:** [March 7, 2018, 8:37am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/18 "2018-03-07T08:37:12Z")

</div>

> [@matanov](#):
>
> Lower the resize value more OR use less textures OR buy a GPU with more then 4 GB OR use only the device that is not connected to the monitor (Windows and 3ds max use a lot of memory too).

1. Lowering the resize does nothing  
2. Turning off textures all together and using just an override ‘grey’ vray material produced the same error, leading me to believe it’s not a materiel problem.  
3. I have 2x 970s in SLI (8GB) ram, not 4gb  
4. I’ve tried 1x GPU, 2x GPUs, and Hybrid - same error.

Did it render on your end after I re-sent you the scene with all the textures?

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [March 7, 2018, 9:11am UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/19 "2018-03-07T09:11:33Z")

</div>

1. There should be a noticeable change in the memory consumption. I’m getting around 2.8 GB usage with Resize textures = 512  
2. I get 2.2 GB usage with grey override on a card that is not connected to the monitor. Are you sure you are setting the override in the right place?  
3. RAM does not stack that way, all resources must be loaded on every GPU, so you are limited by the card with the less memory (this rule does not apply on cards that support NVLINK)  
4. The 1xGPU try - was it with the card that is not connect to the monitor? There is a little star in front of the connected GPU in the device selector

There are 3rd party softwares that can monitor your GPU usage, like MSI AfterBurner. Also you can check these pages -

> **[Chaos Docs](https://documentation.chaos.com/)**

> **[Chaos Docs](https://documentation.chaos.com/)**

---

<div class="post-metadata">

**Author:** ![matanov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/matanov/32/21656_2.png) [@matanov](https://forums.chaos.com/u/matanov)\
**Post date:** [March 7, 2018, 12:04pm UTC](https://forums.chaos.com/t/gpus-out-of-memory/87247/20 "2018-03-07T12:04:31Z")

</div>

Also try with removed SLI connection.
