Визуализация на GPU¶
GPU rendering makes it possible to use your graphics card for rendering, instead of the CPU. This can speed up rendering because modern GPUs are designed to do quite a lot of number crunching. On the other hand, they also have some limitations in rendering complex scenes, due to more limited memory, and issues with interactivity when using the same graphics card for display and rendering.
To enable GPU rendering, go into the, and select either CUDA, OptiX or OpenCL. Next, you must configure each scene to use GPU rendering in .
GPU rendering is only supported on Windows and Linux; macOS is currently not supported.
Blender supports different technologies to render on the GPU depending on the particular GPU manufacture.
CUDA and OptiX are supported for GPU rendering with Nvidia graphics cards.
CUDA requires graphics cards with compute capability 3.0 and higher. To make sure your GPU is supported, see the list of Nvidia graphics cards with the compute capabilities and supported graphics cards.
OptiX requires graphics cards with compute capability 5.0 and higher. To make sure your GPU is supported, see the list of Nvidia graphics cards OptiX works best on RTX graphics cards with hardware ray tracing support (e.g. Turing and above). OptiX support is still experimental and does not yet support all features, see below for details.
OptiX requires Geforce or Quadro RTX graphics card with recent Nvidia drivers.
OpenCL is supported for GPU rendering with AMD graphics cards. Blender supports graphics cards with GCN generation 2 and above. To make sure your GPU is supported, see the list of GCN generations with the GCN generation and supported graphics cards.
On Windows and Linux, the latest Pro drivers should be installed from the AMD website.
Поддерживаемые возможности и ограничения¶
CUDA and OpenCL rendering supports all the same features as CPU rendering, except two:
Open Shading Language.
Advanced volume light sampling to reduce noise.
OptiX support is experimental and does not yet support the following features:
Branched Path Tracing
Ambient Occlusion and Bevel shader nodes
Combined CPU + GPU rendering
Часто задаваемые вопросы¶
Почему Blender перестаёт отвечать во время визуализации?¶
While a graphics card is rendering, it cannot redraw the user interface, which makes Blender unresponsive. We attempt to avoid this problem by giving back control over to the GPU as often as possible, but a completely smooth interaction cannot be guaranteed, especially on heavy scenes. This is a limitation of graphics cards for which no true solution exists, though we might be able to improve this somewhat in the future.
Если у вас есть возможность, лучше установить более одного GPU и использовать один из них для отображения, а остальные задействовать для визуализации.
Почему сцена, которая визуализируется на центральном процессоре, не визуализируется на видеокарте?¶
There maybe be multiple causes, but the most common one is that there is not enough memory on your graphics card. Typically, the GPU can only use the amount of memory that is on the GPU (see below for more information). This is usually much smaller than the amount of system memory the CPU can access. With CUDA and OptiX devices, if the GPU memory is full Blender will automatically try to use system memory. This has a performance impact, but will usually still result in a faster render than using CPU rendering. This feature does not work for OpenCL rendering.
Можно ли для визуализации использовать несколько видеокарт?¶
Yes, go to, and configure it as you desire.
Могут ли несколько видеокарт увеличить доступную память?¶
Typically, no, each GPU can only access its own memory, however, some GPUs can share their memory. This is can be enabled with Distributed Memory Across Devices.
What renders faster, Nvidia or AMD, CUDA, OptiX or OpenCL?¶
This varies depending on the hardware used. Different technologies also have different compute times depending on the scene tested. For the most up to date information on the performance of different devices, browse the Blender Open Data resource.
Сообщения об ошибках¶
In case of problems, be sure to install the official graphics drivers from the Nvidia or AMD website, or through the package manager on Linux.
Unsupported GNU version! gcc 4.7 and up are not supported! (Неподдерживаемая версия GNU! gcc 4.7 и старше не поддерживаются!)¶
On Linux, depending on your GCC version you might get this error. There are two possible solutions:
- Use an alternate compiler
If you have an older GCC installed that is compatible with the installed CUDA toolkit version, then you can use it instead of the default compiler. This is done by setting the
CYCLES_CUDA_EXTRA_CFLAGSenvironment variable when starting Blender.
Launch Blender from the command line as follows:
CYCLES_CUDA_EXTRA_CFLAGS="-ccbin gcc-x.x" blender
(Substitute the name or path of the compatible GCC compiler).
- Remove compatibility checks
If the above is unsuccessful, delete the following line in
#error -- unsupported GNU version! gcc 4.7 and up are not supported!
This will allow Cycles to successfully compile the CUDA rendering kernel the first time it attempts to use your GPU for rendering. Once the kernel is built successfully, you can launch Blender as you normally would and the CUDA kernel will still be used for rendering.
CUDA Error: Invalid kernel image (Ошибка CUDA: Неверное ядро изображения)¶
If you get this error on Windows 64-bit, be sure to use the 64-bit build of Blender, not the 32-bit version.
CUDA Error: Kernel compilation failed (Ошибка CUDA: Сбой компиляции ядра)¶
This error may happen if you have a new Nvidia graphics card that is not yet supported by the Blender version and CUDA toolkit you have installed. In this case Blender may try to dynamically build a kernel for your graphics card and fail.
В таком случае вы можете:
Check if the latest Blender version (official or experimental builds) supports your graphics card.
Если вы сами собирали Blender, попробуйте скачать и установить новейший набор инструментов для разработчика CUDA.
Обычным пользователям не требуется устанавливать набор инструментов CUDA, поскольку Blender уже поставляется со скомпилированными ядрами.
CUDA Error: Out of memory (Ошибка CUDA: Не хватает памяти)¶
This usually means there is not enough memory to store the scene for use by the GPU.
One way to reduce memory usage is by using smaller resolution textures. For example, 8k, 4k, 2k, and 1k image textures take up respectively 256MB, 64MB, 16MB and 4MB of memory.
The Nvidia OpenGL driver lost connection with the display driver¶
If a GPU is used for both display and rendering, Windows has a limit on the time the GPU can do render computations. If you have a particularly heavy scene, Cycles can take up too much GPU time. Reducing Tile Size in the Performance panel may alleviate the issue, but the only real solution is to use separate graphics cards for display and rendering.
Another solution can be to increase the time-out, although this will make the user interface less responsive when rendering heavy scenes. Learn More Here.
CUDA error: Unknown error in cuCtxSynchronize() (Ошибка CUDA: Неизвестная ошибка в cuCtxSynchronize())¶
An unknown error can have many causes, but one possibility is that it is a time-out. See the above answer for solutions.