5090 XPU shader compilation error?

   169   2   1
User Avatar
Member
79 posts
Joined: 2月 2017
Offline
Just upgraded my GPU and I'm trying out H21 to test the new features. I'm getting this error when I try to render with XPU:

KarmaXPU: device Type:Optix ID:0 Name:"NVIDIA GeForce RTX 5090" has registered a critical error "Failed to create Optix pipeline due to shader compilation fault", so will now stop functioning.  Future error messages will be suppressed
User Avatar
Member
79 posts
Joined: 2月 2017
Offline
It appears that adding this to my houdini.env solves the issue:

KARMA_XPU_OPTIX_FORCE_OPTIXIR = 1


Found it in another thread with an unrelated issue. I'm not sure what it does, or if there are any downsides to this?
Edited by smbell - 2025年9月3日 15:04:20
User Avatar
スタッフ
581 posts
Joined: 5月 2019
Online
smbell
I'm not sure what it does, or if there are any downsides to this?

Optix has two different paths for compilation (PTX vs OptixIR). Each has different bugs in different drivers, so we internally choose one or the other depending on driver version. However, it's helpful to also have it on an environment variable for testing/debug purposes.

Any downside is that you might notice a performance difference (either faster or slower, depending on the scene).

I guess that you might have some cache corruption.
Could you try this?

remove the KARMA_XPU_OPTIX_FORCE_OPTIXIR envvar

delete these two directories
C:\Users\USERNAME\AppData\Local\NVIDIA\OptixCache
C:\Users\USERNAME\AppData\Local\Temp\houdini_temp\VEX_CodeCache

then try again. I guess that things should work again for you.
I've seen this cache corruption elsewhere, so we are starting to look into it.

Thanks
  • Quick Links