8 Replies Latest reply on Aug 5, 2014 4:49 AM by dipak

    can not debug openCL sample

    michael.zheng@amd.com

      hi, Guys

       

      i am looking at the samples provided by AMD sdk. i am try to debug the kernel code by using codeXL. but i always get below erroe:

       

      ERROR: could not debug kernel; Error during kernel debugging.

       

      the samples which i tried are DCT and SobelFilter.

       

      could anyone help me?

        • Re: can not debug openCL sample
          dipak

          Hi,

          Please can you let us know your system setup details: CPU, GPU, SDK, Driver, OS (Window/Linux) (32/64) etc.?


          Thanks,

            • Re: can not debug openCL sample
              michael.zheng@amd.com

              hi,

              below is the system information:

              OS: win7 64 bit

              GPU: TONGA(ID:6938)

              CPU: intel I7-3930K

              SDK:V2.9-64

              driver: 14.300.0.0

                • Re: can not debug openCL sample
                  dipak

                  Thanks for providing the setup details. We'll look into it and let you know.

                   

                  Regards,

                    • Re: can not debug openCL sample
                      michael.zheng@amd.com

                      hi,

                      try with Verde card,  DCT.exe just crashed.

                      below is information given by dxdiag

                       

                      System Information

                      ------------------

                      Time of this report: 7/7/2014, 09:51:59

                             Machine name:

                         Operating System: Windows 8.1 企业版 64-bit (6.3, Build 9600) (9600.winblue_gdr.140330-1035)

                                 Language: Chinese (Simplified) (Regional Setting: Chinese (Simplified))

                      System Manufacturer: System manufacturer

                             System Model: System Product Name

                                     BIOS: 3501

                                Processor: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (12 CPUs), ~3.2GHz

                                   Memory: 8192MB RAM

                      Available OS Memory: 8134MB RAM

                                Page File: 4495MB used, 18998MB available

                              Windows Dir: C:\Windows

                          DirectX Version: DirectX 11

                      DX Setup Parameters: Not found

                         User DPI Setting: Using System DPI

                      System DPI Setting: 96 DPI (100 percent)

                          DWM DPI Scaling: Disabled

                           DxDiag Version: 6.03.9600.16384 64bit Unicode

                       

                      ---------------

                      Display Devices

                      ---------------

                                Card name: AMD Radeon HD 7800 Series

                             Manufacturer: Advanced Micro Devices, Inc.

                                Chip type: AMD Radeon Graphics Processor (0x6818)

                                 DAC type: Internal DAC(400MHz)

                              Device Type: Full Device

                               Device Key: Enum\PCI\VEN_1002&DEV_6818&SUBSYS_0B041002&REV_00

                           Display Memory: 5870 MB

                         Dedicated Memory: 2030 MB

                            Shared Memory: 3840 MB

                             Current Mode: 1920 x 1200 (32 bit) (60Hz)

                             Monitor Name: Dell U2412M(Digital)

                            Monitor Model: DELL U2412M

                               Monitor Id: DELA07A

                              Native Mode: 1920 x 1200(p) (59.950Hz)

                              Output Type: DVI

                              Driver Name: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll

                      Driver File Version: 8.17.0010.1302 (English)

                           Driver Version: 14.300.0.0

                              DDI Version: 11.1

                           Feature Levels: 11.1,11.0,10.1,10.0,9.3,9.2,9.1

                             Driver Model: WDDM 1.3

                      Graphics Preemption: DMA

                      Compute Preemption: DMA

                                 Miracast: Not Supported

                      Hybrid Graphics GPU: Not Supported

                           Power P-states: Not Supported

                        Driver Attributes: Final Retail

                         Driver Date/Size: 5/27/2014 19:37:38, 1328352 bytes

                              WHQL Logo'd: No

                          WHQL Date Stamp: None

                        Device Identifier: {D7B71EE2-2B58-11CF-A476-0E2BBEC2C535}

                                Vendor ID: 0x1002

                                Device ID: 0x6818

                                SubSys ID: 0x0B041002

                              Revision ID: 0x0000

                      Driver Strong Name: oem12.inf:cb0ae414f5e5a606:ati2mtag_R575B:14.300.0.0:pci\ven_1002&dev_6818

                           Rank Of Driver: 00DA2001

                              Video Accel: ModeMPEG2_A ModeMPEG2_C ModeVC1_C ModeWMV9_C

                              DXVA2 Modes: DXVA2_ModeMPEG2_VLD  DXVA2_ModeMPEG2_IDCT  DXVA2_ModeH264_VLD_NoFGT  DXVA2_ModeVC1_VLD  DXVA2_ModeVC1_IDCT  DXVA2_ModeWMV9_IDCT 

                         Deinterlace Caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive

                                           {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY

                                           {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive

                                           {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                                           {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive

                                           {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive

                                           {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive

                                           {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                                           {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=

                             D3D9 Overlay: Not Supported

                                  DXVA-HD: Not Supported

                             DDraw Status: Enabled

                               D3D Status: Enabled

                               AGP Status: Enabled

                        • Re: can not debug openCL sample
                          dipak

                          Hi,

                          Do you mean Cape Verde card (Radeon HD 7750 / 7770)? As per the above device information, your card was AMD Radeon HD 7800 Series. Please can you specify exact model of the card you used.

                           

                          @DCT.exe just crashed.

                          Is the sample crashing itself or when using CodeXL?

                           

                          Regards,

                            • Re: can not debug openCL sample
                              michael.zheng@amd.com

                              sorry, my mistake, it's pitcairn(HD7800).

                              yes, both visual studio and codeXL get same crash...

                              but profile mode can work. just debug mode crash.

                                • Re: can not debug openCL sample
                                  dipak

                                  Hi Michael,

                                  I built the DCT sample in debug mode and ran it using visual studio and CodeXL debugger. It worked fine for me. Please find my setup details:

                                  AMD A6-3410MX APU with Radeon HD 6520G

                                  Driver: 14.100.0.0

                                  Windows 7 64bit

                                  CodeXL 1.4

                                  Visual Studio 13

                                   

                                  I just want to figure out what may be the reason for the crashing problem - a) SDK sample or b) driver or c) hardware. I've few suggestions/queries:

                                  1. Are other samples running fine under the same setup?

                                  2. I'll try to test it on other driver. Meanwhile please can you try with driver as I mentioned and let me know your findings.

                                  3. I also used another card (can't remember the number) but it worked. I'll test it on HD7800 series to check whether it is related to specific hardware or not. Meanwhile, if possible, please check with other gpu card and share your observations.

                                   

                                  Regards,

                                    • Re: can not debug openCL sample
                                      dipak


                                      Hi,

                                      My apologies for this delayed reply.

                                      The DCT and SobelFilter samples are running fine in debug mode (in both visual studio and CodeXL) on pitcairn card using catalyst driver14.30. In CodeXL, debugging using break point are also working. Please find my setup details:

                                      AMD FX(tm)-4100 Quad-Core Processor

                                      Windows 7 64bit

                                      HD Radeon 7850 (pitcairn)

                                      Driver 14.300.0.0  [14.30-140716a-173979E-ATI]

                                      AMD APP SDK 2.9

                                       

                                      Regards,