# GPU渲染¶

## 介绍¶

Cycles 有两种GPU渲染模式: CUDA , 在 NVIDIA 的显卡上运行的加速模式; 以及 OpenCL , AMD 的显卡上运行的加速模式。

## 配置¶

### CUDA¶

Nvidia CUDA is supported for GPU rendering with Nvidia graphics cards. We support graphics cards starting from GTX 6xx (computing capability from 3.0 to 6.1).

Cycles要求在所有操作系统上都需要安装最新的Nvidia驱动程序。

### OpenCL¶

Note

Cycles要求最新的AMD驱动已经安装，所有平台的系统都需要。

## 报错信息¶

### Unsupported GNU version! gcc 4.5 and up are not supported!（不支持的GNU版本！不支持gcc 4.5及以上版本！）¶

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_CFLAGS environment 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).

#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错误：内核编译失败¶

1. 检查最新的Blender版本（官方或 实验版本) 是否支持您的图形卡。
2. 如果您自己构建Blender，请尝试下载并安装更新的CUDA开发人员工具包。