Changeset View
Changeset View
Standalone View
Standalone View
manual/render/cycles/gpu_rendering.rst
| Context not available. | |||||
| Unsupported GNU version! gcc 4.7 and up are not supported! | Unsupported GNU version! gcc 4.7 and up are not supported! | ||||
| ---------------------------------------------------------- | ---------------------------------------------------------- | ||||
| On Linux, depending on your GCC version you might get this error. | On Linux, depending on your GCC version you might get this error. There are two possible solutions: | ||||
| If so, delete the following line in ``/usr/local/cuda/include/host_config.h`` | Use an alternate compiler | ||||
| If you have a CUDA-compatible GCC installed under an alternate name, such as ``cuda-gcc``, | |||||
| you can tell Cycles to use that version by setting the ``CYCLES_CUDA_EXTRA_CFLAGS`` | |||||
| environment variable when starting blender. | |||||
| :: | Launch Blender from the command line as follows: | ||||
| #error -- unsupported GNU version! gcc 4.7 and up are not supported! | .. code-block:: sh | ||||
| CYCLES_CUDA_EXTRA_CFLAGS="-ccbin cuda-gcc" blender | |||||
| (Substitute the name or path of your CUDA-compatible compiler, if it is called something | |||||
| other than ``cuda-gcc``.) | |||||
| 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. | |||||
| Remove compatibility checks | |||||
| As a last resort if the above is unsuccessful, delete the following line in | |||||
| ``/usr/local/cuda/include/host_config.h`` | |||||
| :: | |||||
| #error -- unsupported GNU version! gcc 4.7 and up are not supported! | |||||
| CUDA Error: Invalid kernel image | CUDA Error: Invalid kernel image | ||||
| -------------------------------- | -------------------------------- | ||||
| Context not available. | |||||