4 Replies Latest reply on Feb 28, 2014 1:25 AM by forester04

    CodeXL debugger and R9 290x problem

    forester04

        Hello!

       

      I tried to run CodeXL on my Ubuntu 12.04 LTS, but it doesn't work and print error "(core dumped)".

      The most interest that CodeXL works correct with HD7970, but it stop working when I set R9 290x card into my PC.

       

      Here is backtrace of gdb bellow:

       

      maket@maket-PC:/opt/AMD/CodeXL_1.3.3487/bin$ ./CodeXL-bin

      Ошибка сегментирования (core dumped)

      maket@maket-PC:/opt/AMD/CodeXL_1.3.3487/bin$ gdb ./CodeXL-bin

      GNU gdb (Ubuntu/Linaro 7.4-2012.02-0ubuntu2) 7.4-2012.02

      Copyright (C) 2012 Free Software Foundation, Inc.

      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

      This is free software: you are free to change and redistribute it.

      There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

      and "show warranty" for details.

      This GDB was configured as "x86_64-linux-gnu".

      For bug reporting instructions, please see:

      <http://bugs.launchpad.net/gdb-linaro/>...

      Reading symbols from /opt/AMD/CodeXL_1.3.3487/bin/CodeXL-bin...done.

       

      (gdb) backtrace

      (gdb) r

      Starting program: /opt/AMD/CodeXL_1.3.3487/bin/CodeXL-bin

      [Thread debugging using libthread_db enabled]

      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

      [New Thread 0x7fffe31b5700 (LWP 3310)]

      [New Thread 0x7fffe1d80700 (LWP 3311)]

      [New Thread 0x7fffe157f700 (LWP 3312)]

      [New Thread 0x7fffe0d7e700 (LWP 3313)]

      [New Thread 0x7fffd97de700 (LWP 3314)]

       

       

      Program received signal SIGSEGV, Segmentation fault.

      0x00007fffc823f399 in ?? () from /usr/lib/libaticaldd.so

      (gdb) b

      Breakpoint 1 at 0x7fffc823f399

      (gdb) backtrace

      #0  0x00007fffc823f399 in ?? () from /usr/lib/libaticaldd.so

      #1  0x00007fffc8287952 in ?? () from /usr/lib/libaticaldd.so

      #2  0x00007fffc8287a9e in ?? () from /usr/lib/libaticaldd.so

      #3  0x00007fffc84f7e5e in ?? () from /usr/lib/libaticaldd.so

      #4  0x00007fffc84f8601 in ?? () from /usr/lib/libaticaldd.so

      #5  0x00007fffc84f8802 in ?? () from /usr/lib/libaticaldd.so

      #6  0x00007fffc84eefc4 in ?? () from /usr/lib/libaticaldd.so

      #7  0x00007fffc850f27d in ?? () from /usr/lib/libaticaldd.so

      #8  0x00007fffc9a6c9b8 in Backend::InitializeOpenCL (this=0x7fffc9c9e420)

          at /data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/

      CommonProjects/AMDTBackEnd/src/beBackend.cpp:2049

      #9  0x00007fffc9a6dd34 in Backend::Initialize (this=0x7fffc9c9e420)

          at /data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/

      CommonProjects/AMDTBackEnd/src/beBackend.cpp:1870

      #10 0x00007fffc9a6eb28 in Backend::Backend (this=0x7fffc9c9e420)

          at /data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/

      CommonProjects/AMDTBackEnd/src/beBackend.cpp:1824

      #11 0x00007fffc9a6ee9a in __static_initialization_and_destruction_0 (

          __initialize_p=<optimized out>, __priority=<optimized out>)

          at /data/jenkins/workspace/CodeXL-Full-Linux-Release-1.3/release/CodeXL/1.3/

      Common/Src/TSingleton/TSingleton.h:159

      #12 global constructors keyed to beBackend.cpp(void) ()

      ---Type <return> to continue, or q <return> to quit---

       

        Hope you can help me.

        Thanks.

        Roman.

        • Re: CodeXL debugger and R9 290x problem
          dorono

          Hi Roman,

          Can you run clinfo on your station and share the output?

          Thanks

            • Re: CodeXL debugger and R9 290x problem
              delifaz

              Hi,

               

              Basically, KA is an offline compiler and doesn't really care which GPU is installed.

              The reason you see a difference in the behavior is because Catalyst installs different components for each GPU.

               

              As for the crash you see- it is fixed in CodeXL 1.4 which will be released soon.

               

              Dana.

              • Re: Re: CodeXL debugger and R9 290x problem
                forester04

                Yes, certainly.

                 

                Here it is:

                 

                root@maket-PC:/opt/AMD/CodeXL_1.3.3487/bin# clinfo

                Number of platforms: 1

                  Platform Profile: FULL_PROFILE

                  Platform Version: OpenCL 1.2 AMD-APP (1411.4)

                  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 cl_amd_hsa

                 

                 

                 

                 

                  Platform Name: AMD Accelerated Parallel Processing

                Number of devices: 2

                  Device Type: CL_DEVICE_TYPE_GPU

                  Device ID: 4098

                  Board name: AMD Radeon R9 200 Series

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

                  Max compute units: 44

                  Max work items dimensions: 3

                    Max work items[0]: 256

                    Max work items[1]: 256

                    Max work items[2]: 256

                  Max work group size: 256

                  Preferred vector width char: 4

                  Preferred vector width short: 2

                  Preferred vector width int: 1

                  Preferred vector width long: 1

                  Preferred vector width float: 1

                  Preferred vector width double: 1

                  Native vector width char: 4

                  Native vector width short: 2

                  Native vector width int: 1

                  Native vector width long: 1

                  Native vector width float: 1

                  Native vector width double: 1

                  Max clock frequency: 1000Mhz

                  Address bits: 32

                  Max memory allocation: 1073741824

                  Image support: Yes

                  Max number of images read arguments: 128

                  Max number of images write arguments: 8

                  Max image 2D width: 16384

                  Max image 2D height: 16384

                  Max image 3D width: 2048

                  Max image 3D height: 2048

                  Max image 3D depth: 2048

                  Max samplers within kernel: 16

                  Max size of kernel argument: 1024

                  Alignment (bits) of base address: 2048

                  Minimum alignment (bytes) for any datatype: 128

                  Single precision floating point capability

                    Denorms: No

                    Quiet NaNs: Yes

                    Round to nearest even: Yes

                    Round to zero: Yes

                    Round to +ve and infinity: Yes

                    IEEE754-2008 fused multiply-add: Yes

                  Cache type: Read/Write

                  Cache line size: 64

                  Cache size: 16384

                  Global memory size: 3221225472

                  Constant buffer size: 65536

                  Max number of constant args: 8

                  Local memory type: Scratchpad

                  Local memory size: 32768

                  Kernel Preferred work group size multiple: 64

                  Error correction support: 0

                  Unified memory for Host and Device: 0

                  Profiling timer resolution: 1

                  Device endianess: Little

                  Available: Yes

                  Compiler available: Yes

                  Execution capabilities: 

                    Execute OpenCL kernels: Yes

                    Execute native function: No

                  Queue properties: 

                    Out-of-Order: No

                    Profiling : Yes

                  Platform ID: 0x00007f57d1a26500

                  Name: Hawaii

                  Vendor: Advanced Micro Devices, Inc.

                  Device OpenCL C version: OpenCL C 1.2

                  Driver version: 1411.4 (VM)

                  Profile: FULL_PROFILE

                  Version: OpenCL 1.2 AMD-APP (1411.4)

                  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

                 

                 

                 

                 

                 

                Device Type: CL_DEVICE_TYPE_CPU

                  Device ID: 4098

                  Board name: 

                  Max compute units: 2

                  Max work items dimensions: 3

                    Max work items[0]: 1024

                    Max work items[1]: 1024

                    Max work items[2]: 1024

                  Max work group size: 1024

                  Preferred vector width char: 16

                  Preferred vector width short: 8

                  Preferred vector width int: 4

                  Preferred vector width long: 2

                  Preferred vector width float: 4

                  Preferred vector width double: 2

                  Native vector width char: 16

                  Native vector width short: 8

                  Native vector width int: 4

                  Native vector width long: 2

                  Native vector width float: 4

                  Native vector width double: 2

                  Max clock frequency: 2997Mhz

                  Address bits: 64

                  Max memory allocation: 2147483648

                  Image support: Yes

                  Max number of images read arguments: 128

                  Max number of images write arguments: 8

                  Max image 2D width: 8192

                  Max image 2D height: 8192

                  Max image 3D width: 2048

                  Max image 3D height: 2048

                  Max image 3D depth: 2048

                  Max samplers within kernel: 16

                  Max size of kernel argument: 4096

                  Alignment (bits) of base address: 1024

                  Minimum alignment (bytes) for any datatype: 128

                  Single precision floating point capability

                    Denorms: Yes

                    Quiet NaNs: Yes

                    Round to nearest even: Yes

                    Round to zero: Yes

                    Round to +ve and infinity: Yes

                    IEEE754-2008 fused multiply-add: Yes

                  Cache type: Read/Write

                  Cache line size: 64

                  Cache size: 32768

                  Global memory size: 4146110464

                  Constant buffer size: 65536

                  Max number of constant args: 8

                  Local memory type: Global

                  Local memory size: 32768

                  Kernel Preferred work group size multiple: 1

                  Error correction support: 0

                  Unified memory for Host and Device: 1

                  Profiling timer resolution: 1

                  Device endianess: Little

                  Available: Yes

                  Compiler available: Yes

                  Execution capabilities: 

                    Execute OpenCL kernels: Yes

                    Execute native function: Yes

                  Queue properties: 

                    Out-of-Order: No

                    Profiling : Yes

                  Platform ID: 0x00007f57d1a26500

                  Name: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz

                  Vendor: GenuineIntel

                  Device OpenCL C version: OpenCL C 1.2

                  Driver version: 1411.4 (sse2)

                  Profile: FULL_PROFILE

                  Version: OpenCL 1.2 AMD-APP (1411.4)

                  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_amd_svm

                 

                Thanks