Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Displacement not working (GPU)

9 REPLIES 9
Reply
Message 1 of 10
1608553
1530 Views, 9 Replies

Displacement not working (GPU)

I get this error almost every time I attach a displacement shader to a material on the gpu causing the render to fail and a fatal gpu error that requires a Maya restart:

// Error: [gpu] an error happened during rendering : Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (700): Illegal address, file: <internal>, line: 0) //

GPU: RTX 2070 Super, MtoA 4.0.4.2

The same displacement setup works on the CPU as normal but my CPU is very old and slow so any solution to allow me to continue to use my GPU would be greatly appreciated, cheers.

Labels (5)
9 REPLIES 9
Message 2 of 10
Stephen.Blair
in reply to: 1608553

Displacement happens on the CPU, and the geometry is then passed on to the GPU.

Can you upload a scene that causes this error?



// Stephen Blair
// Arnold Renderer Support
Message 3 of 10
1608553
in reply to: Stephen.Blair

Its all scenes, whenever the displacement shader is attached to the shader group and I'm using the gpu, any attempt to render again on the gpu after the error leads to a "fatal gpu error" and Maya needs a restart.

However if I switch to cpu at anytime the rendering works. GPU rendering only works when the displacement shader is detached, CPU rendering works with or without displacement.

I should also add that this error occurs using both image files and procedurals such as aiNoise for the displacement map.

Message 4 of 10
Stephen.Blair
in reply to: 1608553

I don't have any problems with displacement.

Can you get an Arnold log? (see the sidebar for a link to the "Instructions for generating full verbosity log files)



// Stephen Blair
// Arnold Renderer Support
Message 5 of 10
1608553
in reply to: Stephen.Blair

arnoldLog.txt

If all displacement occurs on the CPU and CPU rendering works fine, I suspect that the CUDA error talking about an illegal address means there is a problem with communication between my CPU & system memory and the GPU?

There haven’t been any other rendering issues on the gpu apart from a generic "fatal gpu error, please restart host application" or occasionally get an error that states there is no suitable GPU available for rendering. So it could be hardware related, my nvidia drivers are upto date but the error is talking about the CUDA driver.

Message 6 of 10
thiago.ize
in reply to: 1608553

As Stephen said, displacement happens on the CPU, but autobump still happens on the GPU. If you disable autobump does that fix it? If it does, you probably have a shader attached to the displacement that isn't playing well with GPU -- what shaders are in your displacement?

Message 7 of 10
1608553
in reply to: thiago.ize

Nope, unfortunately it doesn’t.

It’s the Maya displacement shader with anything attached that causes the error using the GPU (CPU rendering is fine). There’s a good chance its a problem with sharing displaced geo from the CPU to the GPU. Although the error is about the CUDA driver (all my nvidia drivers are upto date) so it could be software, but maybe its hardware as this seems to be a problem specific to me so far.

Message 8 of 10
thiago.ize
in reply to: 1608553

Even if it's all displacement scenes that fail, a simple scene (the simpler the better) could still be useful in case there's something special in how you're constructing all your scenes.

Finally, we just released a new version of Arnold. Would you mind testing that just in case it happens to contain a fix for this?

Message 9 of 10
sabrinasuppaK9EH2
in reply to: 1608553

I am dealing with very similar problem.
I am testing on a simple scene in which i am using an 8k disp map on a Aistandard surface.
It renders very slow using CPU, while it renders with no visible displacement on the mesh using GPU (but doesn't give error), also very slow.
This issue started when I upgraded from Arnold 6.1 to 6.2, before I didn't have any problems and the result between CPU and GPU rendering was the same, and very fast.
I already did a clean uninstall of Maya and re installed it (with previous version of Arnold 6.1, because with that my scene was working), and updated graphic card drivers.
I don't understand what could be the cause especially since was working fine till few days ago, and after the update it seems I cannot render displacement anymore with GPU.
Maya 2020.04
MtoA: 4.1.1

gpu-vs-cpu.jpg

Message 10 of 10

Did you Pre-populate the GPU Cache?

Lee Griggs
Arnold rendering specialist
AUTODESK

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report