GafferHQ / gaffer

Gaffer is a node-based application for lookdev, lighting and automation
http://www.gafferhq.org
BSD 3-Clause "New" or "Revised" License
961 stars 207 forks source link

Impossible to use GPU with Cycles under Win10 but no problem in Blender #5486

Closed MattRM2 closed 6 months ago

MattRM2 commented 1 year ago

Version: Gaffer 1.3.4.0-Win10 x64 Third-party tools: Cycles Third-party modules: nothing

Description

I'm not enable to use my GPU with Cycles but in Blender, no problem at all. I used CUDA:00, also CUDA:01 (my two GPU for rendering). Also Tried OPTIX:00, OPTIX:01, CUDA:0, CUDA:1 and nothing, still errors. In my computer I have 3 GPU, a GTX 970 for display only and two GTX 1070 TI for rendering. No problem at all in Blender in CUDA or OPTIX mode.

Could you help me please ? In attachment, two screenshot of the error and the setup. If you need more, tell me.

Thank you,

Matt Cuda_errors_001 Cuda_errors_002

Steps to reproduce

  1. Just used CUDA:00 in the Cycles options / session / Device(s) / CUDA:00 like explained in the documentation.

Debug log

Click to Expand

WARNING [CyclesRenderer::option] Cannot find device "CUDA:00" for option "cycles:device". INFO [Cycles] Mem:0.000G, Peak:0.000G | Waiting for render to start INFO [Cycles] Mem:0.000G, Peak:0.000G | Loading render kernels (may take a few minutes the first time) INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Scene INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Shaders INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Procedurals INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Background INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Camera INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Meshes Flags INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Objects INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Objects: Copying Transformations to device INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Particle Systems INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Particle Systems: Copying Particles to device INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Meshes INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Mesh: Computing attributes INFO [Cycles] Mem:0.000G, Peak:0.000G | Updating Mesh: Copying Attributes to device INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/R_armUpper_GRP/R_armUpper_CPT/R_armUpper001_REN 3/90: Building BVH INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/C_head_GRP/C_head_CPT/C_browNose001_REN 10/90: Building BVH INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/C_head_GRP/C_head_CPT/C_mouthGrill001_REN 4/90: Building BVH INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/C_head_GRP/C_head_CPT/C_mouthGrill001_REN 4/90: Building BVH 100% INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/C_head_GRP/C_head_CPT/C_mouthGrill001_REN 4/90: Building BVH INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/R_armUpper_GRP/R_armUpper_CPT/R_armUpper004_REN 12/90: Building BVH INFO [Cycles] Mem:0.002G, Peak:0.002G | Updating Geometry BVH /group/GAFFERBOT/C_torso_GRP/R_legUpper_GRP/R_legLower_GRP/R_legLower_CPT/R_legLower001_REN 13/90: Building BVH ``` ```

johnhaddon commented 1 year ago

We don't enable GPU support in the official GafferHQ builds of Cycles, as we haven't set up the necessary build infrastructure yet. But you might have some luck with @boberfly's unofficial releases, which do include GPU support.

MattRM2 commented 1 year ago

We don't enable GPU support in the official GafferHQ builds of Cycles, as we haven't set up the necessary build infrastructure yet. But you might have some luck with @boberfly's unofficial releases, which do include GPU support.

Hi, Ok, I understand now ;) Thank you, I'll try it now. Do you plain to include GPU support in the official released in the future ? Or is it possible to build it from your git data ?

Thank you again for your answers.

Matt

johnhaddon commented 1 year ago

Do you plain to include GPU support in the official released in the future ?

We'd like to - it's mainly a case of sorting out a Docker build container with the appropriate CUDA and Optix bits. We're eyeing up the ASWF containers which seem to provide this, with there being a small possibility we'll get there for Gaffer 1.4.

Or is it possible to build it from your git data ?

It is - you'd need to build GafferHQ/dependencies as well though, since that's where we get Cycles from. In the short term, I'd definitely recommend saving yourself the bother and using @boberfly's builds.

MattRM2 commented 1 year ago

Hi,

Sorry for the delay. Ok, thank you for your answers, Have a nice saturday,

Matt

murraystevenson commented 6 months ago

Closing as Gaffer 1.4 introduced support for Cycles GPU rendering with CUDA and Optix devices on Windows and Linux GCC 11 builds.