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