Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

CodeXL doesn't recognize AMD GPU & crashes on changing Teapot Example settings #180

@ramiGmodi

Description

@ramiGmodi

I was hoping if someone could help me with this issue: (I know it sounds like two issues but I think it's just one)
CodeXL disables Kernel debugging by saying AMD GPU is not available and after I change the grid size in the Teapot example, it crashes with the following output:

N/A

Email address (optional):
N/A

Operating System:
Win7-64

Call stack:
Function name - File path - Line number - Module path - Function Start address - Module Start address - Instruction counter address
N/A - N/A - N/A - N/A - N/A - N/A - 0x5c4b4452
csProgramsAndKernelsMonitor::updateKernelArgsInfo - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\csprogramsandkernelsmonitor.cpp - 1932 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f4508e0 - 0x0f410000 - 0x0f4509f7
csProgramsAndKernelsMonitor::updateKernelsInfo - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\csprogramsandkernelsmonitor.cpp - 1777 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f450520 - 0x0f410000 - 0x0f45056a
csProgramsAndKernelsMonitor::updateContextDataSnapshot - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\csprogramsandkernelsmonitor.cpp - 71 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f44d550 - 0x0f410000 - 0x0f44d57f
csContextMonitor::updateContextDataSnapshot - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\cscontextmonitor.cpp - 329 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f421730 - 0x0f410000 - 0x0f42183e
csOpenCLMonitor::checkIfContextWasDeleted - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\csopenclmonitor.cpp - 2071 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f436f50 - 0x0f410000 - 0x0f437036
csOpenCLMonitor::checkIfProgramWasDeleted - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\csopenclmonitor.cpp - 2468 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f437930 - 0x0f410000 - 0x0f437b22
clReleaseProgram - c:\jenkins\workspace\codexl-2.3\codexl\components\gpudebugging\amdtopenclserver\src\csopenclwrappers.cpp - 1510 - c:\program files (x86)\codexl\spies\OpenCL.dll - 0x0f442c50 - 0x0f410000 - 0x0f442ccd
AMDTTeapotOCLSmokeSystem::releaseOpenCLResources - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapotlib\src\amdtteapotoclsmokesystem.cpp - 1445 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e3eb30 - 0x00e30000 - 0x00e3ec27
AMDTTeapotOCLSmokeSystem::draw - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapotlib\src\amdtteapotoclsmokesystem.cpp - 1619 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e3eee0 - 0x00e30000 - 0x00e3ef52
AMDTTeapotOGLCanvas::paintWindow - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapotlib\src\amdtteapotoglcanvas.cpp - 434 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e36be0 - 0x00e30000 - 0x00e36c97
AMDTTeapotOGLCanvas::onIdle - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapotlib\src\amdtteapotoglcanvas.cpp - 400 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e36aa0 - 0x00e30000 - 0x00e36bd1
MainWin::idle_event - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapot\src\amdtmainwin.cpp - 318 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e31bf0 - 0x00e30000 - 0x00e31c08
WndProc - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapot\amdtteapot.cpp - 472 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e333b0 - 0x00e30000 - 0x00e33785
gapfnScSendMessage - N/A - N/A - C:\Windows\syswow64\USER32.dll - 0x76025fc8 - 0x76010000 - 0x760262f9
GetThreadDesktop - N/A - N/A - C:\Windows\syswow64\USER32.dll - 0x76026c63 - 0x76010000 - 0x76026d39
CharPrevW - N/A - N/A - C:\Windows\syswow64\USER32.dll - 0x7602768c - 0x76010000 - 0x760277c3
DispatchMessageW - N/A - N/A - C:\Windows\syswow64\USER32.dll - 0x7602787b - 0x76010000 - 0x76027889
wWinMain - c:\jenkins\workspace\codexl-2.3\codexl\examples\amdtteapot\amdtteapot\amdtteapot.cpp - 325 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e32b00 - 0x00e30000 - 0x00e3327a
__scrt_common_main_seh - f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl - 264 - C:\Users\Public\Documents\CodeXL\examples\Teapot\Release\CXLTeaPot.exe - 0x00e465c6 - 0x00e30000 - 0x00e466c2
BaseThreadInitThunk - N/A - N/A - C:\Windows\syswow64\kernel32.dll - 0x77053358 - 0x77040000 - 0x77053369
RtlInitializeExceptionChain - N/A - N/A - C:\Windows\SysWOW64\ntdll.dll - 0x7758988f - 0x77550000 - 0x775898f1
N/A - N/A - N/A - N/A - N/A - N/A - N/A

System Information gathering timed out after 10s
Additional Information:
- OpenCL Engine loaded:Yes
- OpenGL Engine loaded:Yes
- Kernel Debugging Entered:No

Also I should mention that I've been having issues with installing AMD driver, since my machine is an HP laptop with Switchable Graphics (Intel(R) HD Graphics and AMD HD 7690M) running Win7 64bit, basically its HP Envy 15-3090ca. After a long struggle with uninstalling and reinstalling AMD Drivers, I was unable to install an AMD driver successfully. Once I realized that I need to install drivers from the HP website, I tried those but they lack the files that AMD drivers had. Eventually, I installed Leshcat driver, which is a unified Intel/AMD driver in one file. Leshcat drivers don't seem to be lacking AMD driver's files. I've also noticed onther list of devices that I can run the example on, my CPU was listed. That means the example is running on the GPU right? Considering that the speed of the smoke in the Teapot example was rather high.
Anyway, right now CodeXL runs but says it doesn't find the AMD GPU and once I run the Teapot example it crashes if I change the grid size.
Other than these issues I tried running OpenCL myself, in VS2012. I found that clGetDeviceIDs or clGetDeviceInfo both only return the CPU's info. However the Platform equivalent returns both AMD and Intel. (Yes I have installed both AMD APP SDK and Intel SDK for OpenCL, you think that the issue?).

I also know that certain dll files used by a program could be stored by windows. So I also wonder if that could be the issue. That CodeXL is reading OpenCL.dll from a previously installed dll. Attached is a list of OpencL.dlls I've found on my machine:
opencl dll-search
This also reminds me of another question I have,
what is the directory c:\program files (x86)\codexl\spies\ and why it doesn't go to spies64?

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions