Comments (4)
I think I made a mistake in the earlier post. If I profile an HC++ or HIP program, I can still get the kernel information. However, if I profile an OpenCL benchmark, I will not get the kernel information. It seems the main reason is that the API trace terminates early and there is some other information missing from the trace. Maybe it is because hsa_shutdown
is not called? I wonder if there is a way to properly record the whole trace in an OpenCL benchmark?
from radeon_compute_profiler.
OK, I solve the problem partially by myself. I added a hsa_shutdown
call at the end of the program. However, I do not think this is the legitimate solution, as the whole program is purely an OpenCL program.It there a way to avoid that?
from radeon_compute_profiler.
In current RCP builds, we don't have a relaible workaround for applications that don't call hsa_shut_down (like all OpenCL applications).
For trace profiling of an OpenCL application, you may be able to get better results if you try the latest release of RCP (the 5.3 release from here https://github.com/GPUOpen-Tools/RCP/releases)
With this release, you can try using OpenCL tracing as opposed to HSA tracing. Simply replace the "-A --hsaaqlpackettrace" with "--apitrace".
We are planning on officially supported OpenCL-on-ROCm profiling in a future RCP release, but for now, you can try the above to see if it gives better results for an OpenCL application that doesn't explicitly call hsa_shut_down.
Collecting perf counters using the OpenCL proflier (i.e. using --perfcounter) still won't work for OCL-on-ROCm applications, but this something that should work better in future releases.
from radeon_compute_profiler.
This should work better in recent RCP releases, as well as in the profiler available with ROCM 2.0 You should now be able to profile OpenCL applications using --perfcounter when running on the ROCm stack.
from radeon_compute_profiler.
Related Issues (20)
- dump ISA HOT 1
- build problem HOT 2
- Is there a workaround for "Version mismatch between HSA runtime and libhsa-runtime-tools64.so.1"?" HOT 3
- When will we get a ROCm 1.9 compatible release? HOT 2
- Incompatible git command HOT 1
- Failed to generate profile result HOT 9
- [Build failure] [HSAFdnTrace] Missing header and wrong definition HOT 1
- Navi10 support on launch day?
- Build failure in AMDTActivityLoggerProfileControl HOT 4
- Incorrectly parse arguments with spaces
- Missing basic counters from full list of performance counters
- Build RCP for Gentoo Linux using GCC 9.1 - problems and solutions
- Building RCP-5.6 - HSAFdnCommon misses "amd_hsa_tools_interfaces.h"
- Build Instructions - Linux - arguments to build_rcp.sh
- Build failure in scons HOT 2
- kernel output with all fails to generate the output profile HOT 1
- build failed according to instuction
- Build failure in AMDTActivityLoggerProfileControl.cpp HOT 1
- Doesn't find amd_comgr.h automatically
- RCP can support rocm4.0.0/4.0.1 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radeon_compute_profiler.