Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clCreateCommandQueue (-6) #98

Open
michaelpavkovic opened this issue Jun 15, 2017 · 3 comments
Open

clCreateCommandQueue (-6) #98

michaelpavkovic opened this issue Jun 15, 2017 · 3 comments

Comments

@michaelpavkovic
Copy link

I am getting clCreateCommandQueue (-6) as an error output when running sa-solver. I am running Ubuntu 16.04 and I have the latest AMDGPU-PRO drivers installed. The IDs are listed when using ./silentarmy --list. Also, make test fails and I'm guessing it's for the same reason. My GPU is a Radeon HD 7850 with 1 GB of VRAM.

@audiomason
Copy link

I'm having the same issue with a Radeon HD 7870. According to these threads on the AMD community forum, there is a know issue with OpenCL + AMDGPU PRO driver on certain graphics cards:

Pitcairn graphics card doesn't work with AMDGPU-PRO 16.60 driver
OpenCL clCreateCommandQueue() fails with error -6(out of host memory) on Ubuntu 16.04.3 64 bit, AMDGPUPRO driver 17.30 465504

@audiomason
Copy link

I went back to the AMD forum and found this thread that recommended setting these environment variables:

export GPU_FORCE_64BIT_PTR=1
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100

Tried it, and successfully ran sa-solver.

@ppavacic
Copy link

ppavacic commented May 1, 2018

Solution above me seems to be working, but in blender results of opencl calculations seem to be wrong for me. Are you sure that nothing is wrong with your computations?

EDIT: I have found workaround for blender (progressive rendering has to be used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants