[AMDGPU-pro] Cycles troubles with opencl (CL_OUT_OF_HOST_MEMORY)
Open, IncompletePublic

Description

System Information
OS: Ubuntu 16.04
Kernel: 4.10 x86_64
GPU: Radeon R9 280x
Driver: amdgpu-pro-16.60-379184 x86_64

Blender Version
Broken: blender-2.78-7359cc1060-linux-glibc219-x86_64

Short description of error
Cycles render over gpu return OpenCL error (-6): CL_OUT_OF_HOST_MEMORY

Exact steps for others to reproduce the error

  1. Run blender
  2. Configure it to use opencl
  3. Chenge render engine to cycles
  4. Press F12

Attachments
System-info:


Clinfo:
Blender --gedug-cycles:

Details

Type
Bug
Mai Lavelle (maiself) closed this task as "Invalid".Feb 23 2017, 11:13 AM
Mai Lavelle (maiself) claimed this task.

Out of host memory means your computer ran out of memory, theres no bug here.

Pavel (Metallikus) reopened this task as "Open".Feb 23 2017, 6:20 PM

Out of host memory means your computer ran out of memory, theres no bug here.

  1. My card have 3Gb memory.
  2. I get this error when rendering the starting cube.
  3. I have no this error under fglrx.

This is a bug.

Considering that the same build of Blender works on a different driver, I'm pretty sure that AMDGPU is to blame here, not Blender.

Mai Lavelle (maiself) closed this task as "Invalid".Feb 24 2017, 1:31 AM

Host memory is system memory, not GPU memory. Either your system ran out of memory or there's a driver bug.

Unless there's some other info you've left out there's nothing we can do, this isn't a bug we can fix in Blender.

Pavel (Metallikus) reopened this task as "Open".Feb 24 2017, 8:46 AM

Considering that the same build of Blender works on a different driver, I'm pretty sure that AMDGPU is to blame here, not Blender.

Under fglrx the holders of such cards get another error: https://developer.blender.org/T49465

Host memory is system memory, not GPU memory.

System has 2Gb free RAM and 4Gb swap memory.
Why the default scene uses more than 6Gb memory to render it over amdgpu-pro OpenCL api? Why cycles render over CPU work fine? It is realy not memory leak in cycles engine?

Top output:

This comment was removed by Tom (vejn).

@Tom (vejn) that is interesting and might point to something we can fix. Its a different issue than the one in this report tho.

Could either of you test the split kernel branch and see if thats any better?

Bastien Montagne (mont29) triaged this task as "Incomplete" priority.EditedFeb 24 2017, 1:05 PM

@Tom (vejn) also, since it’s different issue might be better to report it in different task, better to strictly keep one issue per task. ;)

@Tom (vejn) also, since it’s different issue might be better to report it in different task, better to strictly keep one issue per task. ;)

Ok, I have deleted this comment and open here https://developer.blender.org/T50773

@Tom (vejn) that is interesting and might point to something we can fix. Its a different issue than the one in this report tho.

Could either of you test the split kernel branch and see if thats any better?

No, I haven't tested split kernel branch. I don't know how.

This comment was removed by Pavel (Metallikus).

Same here. Blender 2.77 on Ubuntu 16.10 + AMDGPU-PRO OpenCL driver (hybrid installation with Padoka:ppa Mesa display driver).
After starting rendering on GPU it throws CL_OUT_OF_HOST_MEMORY. Try again and blender crashes.
Host Memory: 16GB
GPU: AMD Radeon HD7870, 2GB

This could actually be related to T50968? Sounds *somewhat* similar at least, @Sergey Sharybin (sergey)?

I'm seeing this as well with a Radeon R9 270X (2 GB vRAM), 16 GB of system RAM, and amdgpu 16.60-379184 on Ubuntu 16.04.