cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

pphd
Journeyman III

OpenCL driver freeze on Linux for clCreateCommandQueue

Hi,

I try to run my OpenCL code on AMD hardware but the program freezes on boot.

Here is the following devices on the platform:

Platform Vendor:        Advanced Micro Devices, Inc.

Number of devices:      2

Device: 0

Name:                           Turks

Vendor:                         Advanced Micro Devices, Inc.

Available:                      Yes

Type:                           GPU

Compute Units:                  6

Clock Frequency:                650 mHz

Global Memory:                  512 mb

Max Allocateable Memory:        128 mb

Local Memory:                   32768 kb

Max Workgroup size:             256

Device: 1

Name:                           Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz

Vendor:                         GenuineIntel

Available:                      Yes

Type:                           CPU

Compute Units:                  4

Clock Frequency:                2604 mHz

Global Memory:                  7961 mb

Max Allocateable Memory:        2048 mb

Local Memory:                   32768 kb

Max Workgroup size:             1024

The driver is the one from Debian Jessie (Catalyst 15.9)

When I create a command queue, the function freezes indefinitely, waiting for a semaphore as shown by the following back trace after halting the program with C-C:

Program received signal SIGINT, Interrupt.

sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85

85      ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Aucun fichier ou dossier de ce type.

(gdb) bt

#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:85

#1  0x00007ffff2e838a0 in ?? () from /usr/lib/x86_64-linux-gnu/libamdocl64.so

#2  0x00007ffff2e816d6 in ?? () from /usr/lib/x86_64-linux-gnu/libamdocl64.so

#3  0x00007ffff2e72993 in ?? () from /usr/lib/x86_64-linux-gnu/libamdocl64.so

#4  0x00007ffff2e44015 in clCreateCommandQueueWithProperties () from /usr/lib/x86_64-linux-gnu/libamdocl64.so

#5  0x00007ffff2e44299 in clCreateCommandQueue () from /usr/lib/x86_64-linux-gnu/libamdocl64.so

It appears when I try running the CL code on the GPU or the CPU.

Does someone have any ideas on the cause?

The program has performed the following CL functions:

    clGetPlatformIDs

    clGetDeviceIDs

    clCreateContext

    clCreateProgramWithSource

    clBuildProgram

    clCreateKernel

    clCreateCommandQueue <== Freeze

Thanks

0 Likes
Reply
3 Replies
amdmatt
Community Manager
Community Manager

Re: OpenCL driver freeze on Linux for clCreateCommandQueue

Unfortunately, Debian Jessie is not a supported distribution and our driver may not work as intended.

Distributions supported:

  •  Red Hat Enterprise Linux Suite 7.1, 7.0, 6.6, 6.5
  • Ubuntu 12.04.4 LTS, 14.04.2, 15.04
  • SUSE® Linux Enterprise 11 SP3, 12
  • OpenSuSE 13.1
0 Likes
Reply
pphd
Journeyman III

Re: OpenCL driver freeze on Linux for clCreateCommandQueue

I tested on an Ubunto 14.04 freshly installed.

I get the same error in the same semaphore.

0 Likes
Reply
nibal
Challenger

Re: OpenCL driver freeze on Linux for clCreateCommandQueue

Hi,

What driver do you use now?

Plz type the output of:

clinfo

ldd <your program>

TIA,

Nikos