CUDA Compilation error #81524

Closed
opened 2020-10-07 23:15:19 +02:00 by Daniel Camino · 17 comments

System Information
Operating system: Darwin-17.7.0-x86_64-i386-64bit 64 Bits
Graphics card: NVIDIA GeForce GTX TITAN X OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-10.33.0 387.10.10.10.40.135

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0
Worked: (newest version of Blender that worked as expected)

Short description of error
I can't use CUDA on Mac because an CUDA compilation error.

Exact steps for others to reproduce the error
When I trying to use GPU with CUDA I'm getting this error:

Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_52 --cubin "/Applications/[3D]/Blender/blender 2.90/Blender.app/Contents/Resources/2.90/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu" -o "/Users/daniel/.cache/cycles/kernels/cycles_kernel_sm_52_2D7983844F9C504C9DB52D40E7E8599A.cubin" -m64 --ptxas-options="-v" --use_fast_math -DNVCC -I"/Applications/[3D]/Blender/blender 2.90/Blender.app/Contents/Resources/2.90/scripts/addons/cycles/source"
/Applications/[3D]/Blender/blender 2.90/Blender.app/Contents/Resources/2.90/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu:21:10: fatal error: 
      'kernel/kernel_compat_cuda.h' file not found
#include "kernel/kernel_compat_cuda.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Failed to execute compilation command, see console for details.

Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html
**System Information** Operating system: Darwin-17.7.0-x86_64-i386-64bit 64 Bits Graphics card: NVIDIA GeForce GTX TITAN X OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-10.33.0 387.10.10.10.40.135 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `3e85bb34d0` Worked: (newest version of Blender that worked as expected) **Short description of error** I can't use CUDA on Mac because an CUDA compilation error. **Exact steps for others to reproduce the error** When I trying to use GPU with CUDA I'm getting this error: ``` Compiling CUDA kernel ... "/usr/local/cuda/bin/nvcc" -arch=sm_52 --cubin "/Applications/[3D]/Blender/blender 2.90/Blender.app/Contents/Resources/2.90/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu" -o "/Users/daniel/.cache/cycles/kernels/cycles_kernel_sm_52_2D7983844F9C504C9DB52D40E7E8599A.cubin" -m64 --ptxas-options="-v" --use_fast_math -DNVCC -I"/Applications/[3D]/Blender/blender 2.90/Blender.app/Contents/Resources/2.90/scripts/addons/cycles/source" /Applications/[3D]/Blender/blender 2.90/Blender.app/Contents/Resources/2.90/scripts/addons/cycles/source/kernel/kernels/cuda/kernel.cu:21:10: fatal error: 'kernel/kernel_compat_cuda.h' file not found #include "kernel/kernel_compat_cuda.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Failed to execute compilation command, see console for details. Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html ```
Author

Added subscriber: @DanielCamino

Added subscriber: @DanielCamino

Added subscriber: @rjg

Added subscriber: @rjg

Are you using an official build or are you compiling Blender yourself? The current version shouldn't give you the option to select/use Nvidia GPUs for rendering. Nvidia stopped the development of new CUDA Toolkit versions for macOS. Consequently, Blender 2.90 does not support CUDA-based GPU rendering on macOS. This has been announced in the [release notes ]] and is also documented in [ https:*docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html#gpu-rendering | Blender's manual .

NVIDIA GPU rendering on macOS is no longer supported. Apple dropped support for CUDA drivers in macOS 10.14, and no recent Apple hardware uses NVIDIA graphics cards.

GPU rendering is only supported on Windows and Linux; macOS is currently not supported.

Until Cycles is ported to Metal/MoltenVK, GPU rendering will unfortunately not be possible.

Are you using an official build or are you compiling Blender yourself? The current version shouldn't give you the option to select/use Nvidia GPUs for rendering. Nvidia stopped the development of new CUDA Toolkit versions for macOS. Consequently, Blender 2.90 does not support CUDA-based GPU rendering on macOS. This has been announced in the [release notes ]] and is also documented in [[ https:*docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html#gpu-rendering | Blender's manual ](https:*wiki.blender.org/wiki/Reference/Release_Notes/2.90/Cycles#GPU_Rendering). > NVIDIA GPU rendering on macOS is no longer supported. Apple dropped support for CUDA drivers in macOS 10.14, and no recent Apple hardware uses NVIDIA graphics cards. > GPU rendering is only supported on Windows and Linux; macOS is currently not supported. Until Cycles is ported to Metal/MoltenVK, GPU rendering will unfortunately not be possible.
Author

Oh! That's the problem then... I did't know that.
Thanks for the info.
I'll use Linux for rendering then.

Oh! That's the problem then... I did't know that. Thanks for the info. I'll use Linux for rendering then.
Author

By the way, I'm using the official build and its giving me the option of CUDA...

By the way, I'm using the official build and its giving me the option of CUDA...
Author

CUDA.png

![CUDA.png](https://archive.blender.org/developer/F8965866/CUDA.png)

@DanielCamino Unless I've missed something in the current Cycles development, that should not be allowed. Perhaps this is caused because you still have the nvcc on your system? I'll keep that ticket open and tag the relevant modules to take a look.

@DanielCamino Unless I've missed something in the current Cycles development, that should not be allowed. Perhaps this is caused because you still have the nvcc on your system? I'll keep that ticket open and tag the relevant modules to take a look.
Author

Sorry for my ignorance but ... what is nvcc?

Sorry for my ignorance but ... what is nvcc?

It is the Nvidia CUDA compiler driver.

It is the Nvidia CUDA compiler driver.
Author

No idea if I have it, really.

No idea if I have it, really.
Author

I had the CUDA Toolkit installed. I have uninstalled it and it keeps offering me the CUDA option but it tells me I don't have any supported GPUs.
It is normal?
Screen Shot 2020-10-08 at 00.18.20.png

I had the CUDA Toolkit installed. I have uninstalled it and it keeps offering me the CUDA option but it tells me I don't have any supported GPUs. It is normal? ![Screen Shot 2020-10-08 at 00.18.20.png](https://archive.blender.org/developer/F8965902/Screen_Shot_2020-10-08_at_00.18.20.png)

@DanielCamino Yes, that is what I would've expected.

As shown in your stack trace and previous screenshot, it seems Blender (erroneously?) still picks up the CUDA Toolkit when it is installed on macOS and attempts to compile the kernels for Cycles.

@DanielCamino Yes, that is what I would've expected. As shown in your stack trace and previous screenshot, it seems Blender (erroneously?) still picks up the CUDA Toolkit when it is installed on macOS and attempts to compile the kernels for Cycles.
Author

But in theory, if everything was installed correctly, should I see an OpticX option on my Mac?

But in theory, if everything was installed correctly, should I see an OpticX option on my Mac?

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Closing this old report since Cycles changed a lot with Blender 3.x and the recommended way for rendering on Mac is via Metal now. Please submit a new report if the issue still exists.

Closing this old report since Cycles changed a lot with Blender 3.x and the recommended way for rendering on Mac is via Metal now. Please submit a new report if the issue still exists.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#81524
No description provided.