Raytracing CUDA kernel error

Hey there,

I am a new user to rhino. the version i am using is rhino8.
The software runs fine on my notebook, beside a few crashes but i have a problem with raytracing.
When i switch to raytracing mode i get the following error:

I can overcome this issue when i change my render engine in options to my CPU, but i would like to use my graphics card for rendering. I also tried updating my GPU drivers, having no results.
With my graphics card selected the raytracing view looks like this:

Can someone help me to solve this issue to use my graphics card as render engine for raytracing?

Hardware list:

CPU: 13th Gen Intel(R) Core™ i7-13700H
GPU: NVIDIA GeForce RTX 4060 Laptop GPU

Best regards,
Nikolai

Hi Nikolai,

install the latest NVidia-driver, then it should render. Here more details:

Cheers

Michael

Hey Micheal,

Thanks for your suggestion, I tried performing a clean installation of the latest NVidia-driver after deleting all old ones and files related to them. I even wiped the registry.

Now i dont get the error message from above anymore, but rhino doesn’t respond anymore after switching to raytracing when my graphics card is selected as render device. Also the information bar where i got the error, still stays orange.

Maybe youe’ve got any other ideas how i can solve this issue.

Best regards
Nikolai

@nathanletwory, do you have ideas? Thanks

Rhino Cycles is probably compiling the kernels. This is in Rhino 8.0, Rhino 8.1 and Rhino 8.2 still happening in the main Rhino process. It means after switching to Raytraced or doing a Rhino Render you’ll have to give it time to do the compilation. On my RTX A6000 and RTX 6000 Ada gen GPUs I have times fluctuate between 5 and 12 minutes.

So, patience.

From Rhino 8.3 (probably becomes SRC in 2 weeks time or so) onwards compilation of kernels will happen outside of the main process in a separate process. While the compile is ongoing RhinoCycles will fallback to CPU rendering until the kernels are ready.

2 Likes

Alright, i guess i’ll stick to rendering with my cpu then for now.
Thanks for your help guys.
Cheers

Hey guys, quick update
the issue somehow resolved itself. After some restarts raytracing now works fine with my GPU selected as render device. Seems like installing the latest nvidia driver did the trick after all.
Thanks again!

That is what I said in two different ways, you have to switch to Raytraced, then wait for it to start actually rendering - kernel compilation is ongoing.

It has now managed to compile the kernels and you have working GPU rendering.

2 Likes

On rhino 8.6 Cycles refuses to use my RTX 4090 24GB card and is falling back to CPU . Drivers are updates computer brand new i7 13700KF with Gygabyte Z790 Elite x wifi7 motherboard 64 GB DDR5 RAM .
Everything on the computer is uptaded,
Any suggestions ?

Please run the Rhino command _SystemInfo and post the result in a reply.

Rhino 8 SR6 2024-4-2 (Rhino 8, 8.6.24093.11001, Git hash:master @ de3127ef7b7fd6e4c2fef07a9a1bc10c8e1942a3)
License type: Educational, build 2024-04-02
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 64GB)
.NET 7.0.0

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 4090 (NVidia) Memory: 24GB, Driver date: 4-2-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 552.12
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 4-2-2024
Driver Version: 31.0.15.5212
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 24564 MB

Rhino plugins that do not ship with Rhino
C:\Users\User\AppData\Roaming\McNeel\Rhinoceros\8.0\Plug-ins\OctaneRenderForRhino (f109bd23-4cf3-4c0b-9f83-06be474b0152)\2023.1.2.138\RHI Installer 7\Rhino 7.0\x64\OctaneRenderForRhino.rhp “OctaneRenderForRhino” 2023.1.2.138
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp “Datasmith Exporter” 5.3.2.0
C:\Program Files\Rhino 8\Plug-ins\Tibidabo\VisualARQ.rhp “VisualARQ”
C:\Program Files\Rhino 8\Plug-ins\Tibidabo\Tibidabo.rhp “Tibidabo”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.6.24093.11001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

Rhino 7 is doing ok

Please go to Tools > Options > Rhino Render. If the dots after your devices are orange then please click the Show compile log button and post the log here.

Just did . Thank you

COMPILER OUTPUT:

Compile started, waiting for results…

Start compile process with device count: 1 (Cuda)

Start compiling 0: NVIDIA GeForce RTX 4090

0: NVIDIA GeForce RTX 4090 (0) | Loading render kernels (may take a few minutes the first time):
Completed 0: NVIDIA GeForce RTX 4090
time: 00:02:41.2925572
Start compile process with device count: 1 (Optix)

Start compiling 1: NVIDIA GeForce RTX 4090 (Optix)

1: NVIDIA GeForce RTX 4090 (Optix) (0) | Loading render kernels (may take a few minutes the first time):
Completed 1: NVIDIA GeForce RTX 4090 (Optix)
time: 00:00:00.3671571

ERROR LOG:

No errors.
[OpenColorIO Info]: Color management disabled. (Specify the $OCIO environment variable to enable.)
[OpenColorIO Info]: Color management disabled. (Specify the $OCIO environment variable to enable.)

Compile start time: 04/11/2024 09:41:31
Compile end time : 04/11/2024 09:44:13

Now its working

1 Like

I’m having the same issue. Here’s my log:

COMPILER OUTPUT:

Compile started, waiting for results…

Start compile process with device count: 1 (Cuda)

Compile failed Compile started, waiting for results…

Start compile process with device count: 1 (Cuda)

Start compile process with device count: 1 (Hip)

Start compiling 0: NVIDIA GeForce RTX 4070 Laptop GPU

Start compiling 2: AMD Radeon 780M Graphics

0: NVIDIA GeForce RTX 4070 Laptop GPU (0) | Loading render kernels (may take a few minutes the first time):
2: AMD Radeon 780M Graphics (0) | Loading render kernels (may take a few minutes the first time):
2: AMD Radeon 780M Graphics (0) | Sample 0/1:
Completed 2: AMD Radeon 780M Graphics
time: 00:00:00.4892007
Start compile process with device count: 1 (Optix)

Start compiling 1: NVIDIA GeForce RTX 4070 Laptop GPU (Optix)

1: NVIDIA GeForce RTX 4070 Laptop GPU (Optix) (0) | Loading render kernels (may take a few minutes the first time):

ERROR LOG:

No errors.
System.InvalidOperationException: Cannot mix synchronous and asynchronous operation on process stream.
at System.Diagnostics.Process.get_StandardError()
at RhinoCyclesCore.Core.RcCore.StartCompileGpuKernels()

at System.Diagnostics.Process.get_StandardError()
at RhinoCyclesCore.Core.RcCore.StartCompileGpuKernels()
[OpenColorIO Info]: Color management disabled. (Specify the $OCIO environment variable to enable.)
[OpenColorIO Info]: Color management disabled. (Specify the $OCIO environment variable to enable.)
[OpenColorIO Info]: Color management disabled. (Specify the $OCIO environment variable to enable.)

Compile start time: 2024-08-12 4:45:14 PM

Windows 11 Garbage - “Windows Decides” what processor each program uses. You have to change it in settings. It’s a bit of a convoluted process which I’m willing to share if anyone asks. Seems to have been fixed. Windows 11 is pretty s**t so far in more ways than one.