Hello,
We are currently trying to collect the GPU profiling data from an AMD board equipped with AMD Embedded G-Series GX-217GI Radeon R6E.
We are able to cross compile an run codeXL remote agent on it.
Our complete setup involves one host machine Running CodeXL and one AMD target machine Running CodeXL remote agent.
Till now we are successfully able to debug the Teapot example using this setup, but not able to successfully collect the GPU profiling data yet.
When we start the profiling session although it does get started but when we terminate the Teapot program we receive the debug messages on remote agent side that it fails to generate the profile results.
root@amdfalconx86:~# /media/sdb6/Output_x86_64/release/bin/CodeXLRemoteAgent
/media/sdb6/Output_x86_64/release/bin/CodeXLRemoteAgent
********************************************************
CodeXL Remote Agent settings were extracted successfully
--------------------------------------------------------
Agent version is: 2.3.0.0
Read timeout is: Infinite Timeout
Write timeout is: Infinite Timeout
Agent IP:Port is: 137.202.156.241:27015
********************************************************
CodeXL Remote Agent is listening on <137.202.156.241:27015>
Press any key to terminate CodeXL Remote Agent. . .
*** Connection: Received a connection from <137.202.157.168:13726> ***
libCXLGpuProfilerHSAProfileAgent.so is missing
Make sure you have libCXLGpuProfilerHSAProfileAgent.so under /media/sdb6/Output_x86_64/release/bin/
XRequest.152: BadMatch (invalid parameter attributes) 0x1400006
.
.
.
Failed to generate profile result /home/root/.CodeXL/AMD/CodeXL/CXLTeaPot-bin@137.202.156.241_ProfilerOutput/Oct-20-2016_16-40@137.202.156.241_1/Oct-20-2016_16-40@137.202.156.241_1.occupancy.
Failed to generate profile result /home/root/.CodeXL/AMD/CodeXL/CXLTeaPot-bin@137.202.156.241_ProfilerOutput/Oct-20-2016_16-40@137.202.156.241_1/Oct-20-2016_16-40@137.202.156.241_1.csv.
*** Disconnection: <137.202.157.168:13726>ended a session and disconnected ***
-------------
And on host side we receive the following message.
"
Unable to gather profile data. This error can occur for one of several reasons:
- The active project is not an HSA program.
- The active project is an OpenCL program, but it did not enqueue any kernels.
- The active project is a DirectCompute program, but you are not running as administrator. Administrator rights are required when profiling DirectCompute applications.
- The active project is an OpenCL program, but it did not enqueue any kernels listed in the Profile Specific Kernels section.
- The active project does not compile or run properly (try running it manually).
- Either the profile output directory or the target executable do not exist on the remote machine.
- The remote agent does not have write access to the profile output directory on the remote machine.
"
Our first question is that will we receive any profiling data if hsa/rocm and opencl both are not available on the target side, whereas openGL/vulkan is available on target.
Are we missing some components on the target side ?