AnsweredAssumed Answered

AMDTTeapot sample or NBody example crushes OS completely.

Question asked by daxh on Feb 13, 2014
Latest reply on Feb 23, 2014 by daxh

Platform: HP Envy laptop, OpenSUSE Linux 13.1, kernel 13.12, CPU AMD A10 4600M with AMD Radeon HD 7660G, and discrete graphics  AMD Radeon HD 7670M — 2048 Mb. In attachement detailed info about video driver version.

 

Description:

I've tried to study how to use CodeXL. The problem is: I can't start AMDTTeapot example. If I start it from CodeXL (be pressing 'Start' in Debug mode) then I've got the following:

 

1) AMDTTeapot example window apperars but freezes immediately;

2) CodeXL shows me the dialog: CodeXL Error Report;

3) From that dialog I can obtain the following information about the error:

 

Operating System:

LinuxSUSE-64

 

Call stack:

Function name - File path - Line number - Module path - Function Start address - Module Start address - Instruction counter address

__memcpy_sse2_unaligned - N/A - N/A - /lib64/libc.so.6 - N/A - N/A - 0xf5e7a10c

?? - N/A - N/A - /usr/lib64/libGL.so.1 - N/A - N/A - 0xe7bd120e

?? - N/A - N/A - /usr/lib64/libGL.so.1 - N/A - N/A - 0xe7bd1762

glDrawElements - Components/GpuDebugging/AMDTOpenGLServer/src/gsOpenGLWrappers.cpp - 1449 - N/A - N/A - N/A - 0xf773ca36

AMDTTeapotOGLCanvas::drawTeaPot - Examples/AMDTTeaPot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp - 576 - N/A - N/A - N/A - 0x00424aeb

AMDTTeapotOGLCanvas::drawScene - Examples/AMDTTeaPot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp - 501 - N/A - N/A - N/A - 0x004247e1

AMDTTeapotOGLCanvas::paintWindow - Examples/AMDTTeaPot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp - 389 - N/A - N/A - N/A - 0x00424516

AMDTTeapotOGLCanvas::onPaint - Examples/AMDTTeaPot/AMDTTeaPotLib/src/AMDTTeapotOGLCanvas.cpp - 153 - N/A - N/A - N/A - 0x00423da1

MainWin::expose_event - Examples/AMDTTeaPot/AMDTTeaPot/src/AMDTMainWin.cpp - 208 - N/A - N/A - N/A - 0x00415322

expose_event - Examples/AMDTTeaPot/AMDTTeaPot/src/AMDTGtkMain.cpp - 256 - N/A - N/A - N/A - 0x00406445

?? - N/A - N/A - /usr/lib64/libgtk-x11-2.0.so.0 - N/A - N/A - 0xf58e29d4

g_closure_invoke - N/A - N/A - /usr/lib64/libgobject-2.0.so.0 - N/A - N/A - 0xf52b6317

?? - N/A - N/A - /usr/lib64/libgobject-2.0.so.0 - N/A - N/A - 0xf52c7cac

g_signal_emit_valist - N/A - N/A - /usr/lib64/libgobject-2.0.so.0 - N/A - N/A - 0xf52cf688

g_signal_emit - N/A - N/A - /usr/lib64/libgobject-2.0.so.0 - N/A - N/A - 0xf52cfc71

?? - N/A - N/A - /usr/lib64/libgtk-x11-2.0.so.0 - N/A - N/A - 0xf59f2863

gtk_main_do_event - N/A - N/A - /usr/lib64/libgtk-x11-2.0.so.0 - N/A - N/A - 0xf58e1644

?? - N/A - N/A - /usr/lib64/libgdk-x11-2.0.so.0 - N/A - N/A - 0xf553976e

?? - N/A - N/A - /usr/lib64/libgdk-x11-2.0.so.0 - N/A - N/A - 0xf55363ad

gdk_window_process_all_updates - N/A - N/A - /usr/lib64/libgdk-x11-2.0.so.0 - N/A - N/A - 0xf5536c97

?? - N/A - N/A - /usr/lib64/libgtk-x11-2.0.so.0 - N/A - N/A - 0xf5869dc0

?? - N/A - N/A - /usr/lib64/libgdk-x11-2.0.so.0 - N/A - N/A - 0xf5516536

g_main_context_dispatch - N/A - N/A - /usr/lib64/libglib-2.0.so.0 - N/A - N/A - 0xf4fed315

?? - N/A - N/A - /usr/lib64/libglib-2.0.so.0 - N/A - N/A - 0xf4fed667

g_main_loop_run - N/A - N/A - /usr/lib64/libglib-2.0.so.0 - N/A - N/A - 0xf4feda69

gtk_main - N/A - N/A - /usr/lib64/libgtk-x11-2.0.so.0 - N/A - N/A - 0xf58e0626

main - Examples/AMDTTeaPot/AMDTTeaPot/src/AMDTGtkMain.cpp - 826 - N/A - N/A - N/A - 0x004143ff

 

Device 1 (GPU):

- Platform ID: 1

- Device Type: GPU

- Device Name: Devastator

- Vendor: Advanced Micro Devices, Inc.

 

Device 2 (CPU):

- Platform ID: 1

- Device Type: CPU

- Device Name: AMD A10-4600M APU with Radeon(tm) HD Graphics

- Vendor: AuthenticAMD

 

Platform 1:

- Vendor: Advanced Micro Devices, Inc.

- Name: AMD Accelerated Parallel Processing

- Profile: FULL_PROFILE

- Version: OpenCL 1.2 AMD-APP (1348.5)

 

Additional Information:

- OpenCL Engine loaded:Yes

- OpenGL Engine loaded:Yes

- Kernel Debugging Entered:No

 

4) Debugger shows that program stopped in AMDTTeapotOGLCanvas.cpp on the line number 576 : glDrawElements(GL_TRIANGLES, TP_TEAPOT_INDICES_AMOUNT, GL_UNSIGNED_SHORT, _indicesBasePointer);

 

Whole code for related method is:

// ---------------------------------------------------------------------------

// Name:        AMDTTeapotOGLCanvas::drawTeaPot

// Description: Draws a teapot.

// Arguments:   scale - Scaling (size) of the teapot.

// ---------------------------------------------------------------------------

void AMDTTeapotOGLCanvas::drawTeaPot(

    GLfloat scale)

{

        // Add a string marker:

        if (_glStringMarkerGREMEDY != NULL)

        {

                float scaleAsFloat = float(scale);

                char buff[256];

                sprintf(buff, TP_DRAWING_TEAPOT_MARKER_STR, scaleAsFloat);

                _glStringMarkerGREMEDY(0, buff);

        }

       

        glPushMatrix();

        glRotatef(270.0f, 1.0f, 0.0f, 0.0f);

        glScalef(0.03f * scale, 0.03f * scale, 0.03f * scale);

        glTranslatef(0.0f, 0.0f, -25.0f);

       

        glDrawElements(GL_TRIANGLES, TP_TEAPOT_INDICES_AMOUNT, GL_UNSIGNED_SHORT, _indicesBasePointer); <-- THIS LINE

       

        glPopMatrix();

}


5) I've tried to start this sample is a standalone app but it completely freezes my system, and the hardreset the only way out.

6) Also, according to this discussion

 

http://devgurus.amd.com/thread/160534

 

I've tried to launch some SDK samples (BoxFilterGL, GaussianNoiseGL, SimpleGL, NBody...) and I have the same problem with NBody example. I've started NBody example as a standalone app, it works for a 5-6 seconds and then completely freezes system. But BoxFilterGL, GaussianNoiseGL, SimpleGL works without any problems.

 

Any suggestions what should I do now ?

Attachments

Outcomes