Fermer2
PpHdLe 04/02/2016 à 18:51
J'essaye de faire un programme OpenCL avec AMD sous linux. J'ai les drivers AMD et nvidia opencl installés. clinfo marche

Démarrage:
Platform:               0

        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

                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

                Workgroup size:                 1024

Platform:               1

        Platform Vendor:        NVIDIA Corporation
        Number of devices:      1

        Device: 0
                Name:                           GeForce 210
                Vendor:                         NVIDIA Corporation
                Available:                      Yes
                Type:                           GPU
                Compute Units:                  2
                Clock Frequency:                1238 mHz
                Global Memory:                  511 mb
                Max Allocateable Memory:        128 mb
                Local Memory:                   16384 kb

                Workgroup size:                 512

mais ca me freeze sans vouloir démarré lors de la création de la command queue avec la carte AMD alors que ca marche avec la carte nvidia. Après un CTL-C, je m'arrête dans :
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

Des idées ? A part que le driver AMD est tout moisi ?
Pour info, ca freeze aussi lorsque je sélectionne le CPU comme backend.