cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

martypacific
Journeyman III

HSA - Sample code - Creating the queue failed

Hello. I am getting my machine setup with HSA for a project. I managed to follow the instruction installation steps at the HSA's Github page. I am now trying to run the sample program vector_copy. It gets so far and produces the error message "Creating the queue failed".

Screenshot from 2016-07-08 15-07-10.png

Have I gone wrong somewhere, perhaps missed a step?

The instructions at the HSA-Drivers-Linux-AMD repo has the step "Obtaining kernel and libhsakmt source code" and "Use the instructions in the following wiki page to built the Ubuntu kernel images: https://help.ubuntu.com/community/Kernel/Compile​" - is this step required or can it be skipped?

Thanks.

0 Likes
1 Reply
song_h
Journeyman III

I have the same problem.

I follow this  installation instructions to enable HSA support for the system:

HSA Platforms & Installation · HSAFoundation/HSA-Docs-AMD Wiki · GitHub

After installing the HSA-Driver, it appears:

""

Carrizo detected:...........................Yes

Carrizo type supported:.....................Yes

amdgpu module is loaded:....................Yes

amdkfd module is loaded:....................Yes

AMD IOMMU V2 module is loaded:..............Yes

KFD device exists:..........................Yes

KFD device has correct permissions:.........Yes

Valid GPU ID is detected:...................Yes

Can run HSA.................................YES

""

After installing the HSA-Runtime,  run the vector-copy sample provided with the HSA-Runtime to verify the compatibility of the HSA-Runtime and the HSA-driver, it appears:

""

Checking finalizer 1.0 extension support succeeded.

Generating function table for finalizer succeeded.

Getting a gpu agent succeeded.

Querying the agent name succeeded.

The agent name is Spectre.

Querying the agent maximum queue size succeeded.

The maximum queue size is 131072.

Creating the queue failed.

""

My environment is:

APU: A12-9800

MotherBoard: Prime B350M-A

OS: Ubuntu 14.04.05

BIOS Version: 0902

Cheers

0 Likes