1 Reply Latest reply on Oct 18, 2017 3:01 PM by mirh

    R9 280X with OpenCL 2.0 CentOS 7

    jakushevskij

      Hello, community! I write with great hope to get a decision, as he can not find an answer within 3 weeks.

      I have a compute server with Intel Xeon E5 and video card from AMD:

      > lspci | grep AMD

      82:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT [Radeon HD 7970/8970 OEM / R9 280X]

      82:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970]

       

      I using CentOS Linux release 7.3.1611 (Core) with kernel 3.10.0-514.6.2.el7.x86_64.

      The system was updated with yum (so it is fresh), without Xorg - netinstall.

      I tried to install video drivers from official AMD site. The driver was installed successful, so:

      > lsmod | grep fglr

      fglrx               11047744  0

      amd_iommu_v2           18864  1 fglrx

      But then i try to run clinfo:

      > clinfo

      Number of platforms: 1

        Platform Profile: FULL_PROFILE

        Platform Version: OpenCL 2.0 AMD-APP (1642.5)

        Platform Name: AMD Accelerated Parallel Processing

        Platform Vendor: Advanced Micro Devices, Inc.

        Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices

       

       

        Platform Name: AMD Accelerated Parallel Processing

      Number of devices: 2

        Device Type: CL_DEVICE_TYPE_GPU

        Device ID: 4098

        Board name:

        Device Topology: PCI[ B#-126, D#0, F#0 ]

        *

        *

        *

        Execution capabilities:

          Execute OpenCL kernels: Yes

          Execute native function: No

        Queue properties:

          Out-of-Order: No

          Profiling : Yes

        Platform ID: 0x00007fe932462fd0

        Name: Tahiti

        Vendor: Advanced Micro Devices, Inc.

        Device OpenCL C version: OpenCL C 1.2

        Driver version: 1642.5 (VM)

        Profile: FULL_PROFILE

        Version: OpenCL 1.2 AMD-APP (1642.5)

        Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event

       

      And about CPU - no questions about it

        Device Type: CL_DEVICE_TYPE_CPU

        Device ID: 4098

        Board name:

        *

        *

        *

        Execution capabilities:

          Execute OpenCL kernels: Yes

          Execute native function: Yes

        Queue properties:

          Out-of-Order: No

          Profiling : Yes

        Platform ID: 0x00007fe932462fd0

        Name: Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz

        Vendor: GenuineIntel

        Device OpenCL C version: OpenCL C 1.2

        Driver version: 1642.5 (sse2,avx)

        Profile: FULL_PROFILE

        Version: OpenCL 1.2 AMD-APP (1642.5)

       

        Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event

       

      So i tried to install this drivers (filenames):

      1. radeon-crimson-15.12-15.302-151217a-297685e.zip

      2. fglrx64_p_i_c-15.302-1.x86_64_rhel7_64a.rpm (RPM from AMD site, with "yum install  fglrx64_p_i_c-15.302-1.x86_64_rhel7_64a.rpm")

      3. amd-catalyst-omega-14.12-linux-run-installers (directory)

       

      Also, i installed with yum rpms from  radeon-crimson-15.12-15.302 with Xorg and without Xorg:

      amd-driver-installer-15.302-x86.x86_64.run --buildpkg RedHat/RHEL7_64a --NoXServer (headless system, no Xorg dependencies in yum)

      amd-driver-installer-15.302-x86.x86_64.run --buildpkg RedHat/RHEL7_64a  (Xorg is in dependencies in yum)

       

      But, the version OpenCL always was 1.2. no 2.0 for Tahiti...

       

      Also, i found OpenCL 2.0 driver AMD OpenCL™ 2.0 Driver (filename linux-amd-14.41rc1-opencl2-sep19.zip), installed this, and all the same... The version from clinfo is 1.2.

       

      Yes, i think, than something can be wrong with clinfo, so i installed AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 and build small app to see the version of OpenCL:

      1. Device: Tahiti

      1.1. Hardware version: OpenCL 1.2 AMD-APP (1642.5)

      1.2. Software version: 1642.5 (VM)

      1.3. OpenCL C version: OpenCL C 1.2

      1.4. Parallel compute units: 32

      1.5. Maximum dimensions: 3

      1.6. Max work-items in work-group: 256

      1.7. Max work-items that can be specified in each dim of the work-group: 256,256,256

      2. Device: Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz

      2.1. Hardware version: OpenCL 1.2 AMD-APP (1642.5)

      2.2. Software version: 1642.5 (sse2,avx)

      2.3. OpenCL C version: OpenCL C 1.2

      2.4. Parallel compute units: 40

      2.5. Maximum dimensions: 3

      2.6. Max work-items in work-group: 1024

      2.7. Max work-items that can be specified in each dim of the work-group: 1024,1024,1024

       

      As you can see, the version is 1.2.

       

      Everytime when i want to install another version of the driver, i dont uninstalled old version - i using backup from clearing system (without Xorg and everything related with radeon, amd and etc). To do this, i using Acronis, so the idea about old files from another installations is false.

       

      Thank you so much for you help!

       

      P.S. If needs some info about, writing there.