# (Standalone) Command line flag for GPU production

**URL:** <https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215>\
**Category:** General\
**Created:** [June 14, 2018, 12:36pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215 "2018-06-14T12:36:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricoholmes](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ricoholmes/32/71681_2.png) [@ricoholmes](https://forums.chaos.com/u/ricoholmes)\
**Post date:** [June 14, 2018, 12:36pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/1 "2018-06-14T12:36:33Z")

</div>

Hello there,

(from another thread)

> Just a note, Standalone -rtEngine=0 is not the same as production rendering with CUDA in Maya, it’s actually equal to production rendering with CPU in Maya.

If **-rtEngine = 0** is what we use to set **Production CPU** in standalone, what (if any) arguments are used to set **Production GPU ?**

Have a bit of an emergency situation here where Lightcache frames are working in Maya Production GPU UI but can’t get it to work in vray standalone. Big animation so can’t render it in UI.

---

<div class="post-metadata">

**Author:** ![ricoholmes](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ricoholmes/32/71681_2.png) [@ricoholmes](https://forums.chaos.com/u/ricoholmes)\
**Post date:** [June 14, 2018, 12:54pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/2 "2018-06-14T12:54:33Z")

</div>

Actually, scratch that .. it’s not the lighcache that’s causing issues in our scene. There’s a big disparity between UI and standalone. possibly clipper. Will update

---

<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:** [June 14, 2018, 1:24pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/3 "2018-06-14T13:24:55Z")

</div>

-rtengine=5 is CUDA.

---

<div class="post-metadata">

**Author:** ![ricoholmes](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ricoholmes/32/71681_2.png) [@ricoholmes](https://forums.chaos.com/u/ricoholmes)\
**Post date:** [June 14, 2018, 1:53pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/4 "2018-06-14T13:53:06Z")

</div>

Well, much testing. It’s the clipper. It goes to hell in Standalone.

---

<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:** [June 14, 2018, 2:20pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/5 "2018-06-14T14:20:56Z")

</div>

> [@ricoholmes](#):
>
> Well, much testing. It’s the clipper. It goes to hell in Standalone.

This is strange. Is this plane clipper (mesh clipper is not supproted in V-Ray GPU).

Best,  
Blago.

---

<div class="post-metadata">

**Author:** ![ricoholmes](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ricoholmes/32/71681_2.png) [@ricoholmes](https://forums.chaos.com/u/ricoholmes)\
**Post date:** [June 14, 2018, 2:43pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/6 "2018-06-14T14:43:15Z")

</div>

Edit: Goes to hell in standalone when exclusion list is used. Seems to work as expected with no inclusion/exclusion set

---

<div class="post-metadata">

**Author:** ![ricoholmes](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ricoholmes/32/71681_2.png) [@ricoholmes](https://forums.chaos.com/u/ricoholmes)\
**Post date:** [June 14, 2018, 2:46pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/7 "2018-06-14T14:46:29Z")

</div>

> This is strange. Is this plane clipper (mesh clipper is not supproted in V-Ray GPU).

Hey Blago 🙂  
Not mesh clipper, no. We never use mesh clipper as it’s a known GPU incompatibilty.  
It’s normal clipper plane. The interesting thing is that it works fine in Maya UI with inclusion/exclusion set. It’s purely a standalone issue we’re seeing here.

---

<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:** [June 14, 2018, 4:20pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/8 "2018-06-14T16:20:41Z")

</div>

That’s really, really strange. Does it work in the standalone with -rtengine=0?  
If you can send a scene to the support guys, we will look at it.

Best,  
Blago.

---

<div class="post-metadata">

**Author:** ![ricoholmes](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ricoholmes/32/71681_2.png) [@ricoholmes](https://forums.chaos.com/u/ricoholmes)\
**Post date:** [June 15, 2018, 5:54am UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/9 "2018-06-15T05:54:38Z")

</div>

It works fine with -rtengine=0, purely a CUDA glitch in standalone I’m afraid. I’ll do my best to strip down a scene for you (4x18gb alembics to replace etc).

---

<div class="post-metadata">

**Author:** ![duykhang](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@duykhang](https://forums.chaos.com/u/duykhang)\
**Post date:** [October 31, 2018, 10:01am UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/10 "2018-10-31T10:01:26Z")

</div>

> [@savage309](#):
>
> -rtengine=5 is CUDA.

I have try this flag and CPU working too, it’s hybrid mode or GPU only ? Please guide me to use 02 case : GPU only and hybrid.  
Besides If i have multi GPUs can i set for which nominated GPU instead of all GPU working (ex : exclude the one for display )

---

<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:** [October 31, 2018, 12:02pm UTC](https://forums.chaos.com/t/standalone-command-line-flag-for-gpu-production/89215/11 "2018-10-31T12:02:19Z")

</div>

> [@duykhang](#):
>
> I have try this flag and CPU working too, it’s hybrid mode or GPU only ? Please guide me to use 02 case : GPU only and hybrid.  
> Besides If i have multi GPUs can i set for which nominated GPU instead of all GPU working (ex : exclude the one for display )

With V-Ray GPU, you can use the CPU as a regular CUDA device. You can enable/disable it from the **“Select devices for V-Ray GPU rendering”** [https://drive.google.com/file/d/1L6lpd5-jDBw0yDTOp3uVWJ8IsPu4Fo6B/view?usp=drivesdk](https://drive.google.com/file/d/1L6lpd5-jDBw0yDTOp3uVWJ8IsPu4Fo6B/view?usp=drivesdk).  
You can also do it with env var, this enables both Hybrid and GPU rendering in Windows:  
**set VRAY\_GPU\_PLATFORMS=c++/cpu;nvidia**  
This enables only GPUs:  
**set VRAY\_GPU\_PLATFORMS=nvidia**

Please also check **[docs.chaosgroup.com](http://docs.chaosgroup.com)** where this is explained in details/

Best,  
Blago.
