Coder Social home page Coder Social logo

Comments (8)

bengaineyarm avatar bengaineyarm commented on July 17, 2024

Hi; its not obvious what error you are experiencing from the above.

Can you describe your problem in a bit more detail please? Have you tried opening the capture file produced at /tmp/gpu.log.apc ? Is it missing some data?

from gator.

peng-bo-27 avatar peng-bo-27 commented on July 17, 2024

thank you for your reply.
I want to get the value of the ARM_Mali-TNOx_GPU_ACTIVE , however , this debug log shows that Unable to connect to Midgard and the GPU data was not collected.

root@e04-dx11:/# ls /tmp/gpu.log.apc/
0000000000 captured.xml counters.xml events.xml

root@e04-dx11:/# cat /tmp/gpu.log.apc/0000000000 | grep GPU

root@e04-dx11:/# cat /tmp/gpu.log.apc/counters.xml | grep GPU

<setup_warnings>[97.6320000] SETUP: logDetectedMaliDevice(mali_userspace/MaliDeviceApi.cpp:87): Mali GPU counters
Successfully probed Mali device /dev/mali0 as Mali-G76 (0x7211 r0p0), 2 L2 Slices, 128-bit Bus, 4 Shader Cores.|[100.1178867] SETUP: MaliHwCntrDriver(mali_userspace/MaliHwCntrDriver.cpp:71): Mali GPU counters
GPU frequency counters not available for GPU # 0.|[100.4518489] SETUP: detect(PrimarySourceProvider.cpp:397): Profiling Source

root@e04-dx11:/# cat /tmp/gpu.log.apc/captured.xml | grep GPU
<counter key="0xe" type="ARM_Mali-TNOx_GPU_ACTIVE" />

from gator.

peng-bo-27 avatar peng-bo-27 commented on July 17, 2024

Code in daemon/MidgardDriver.cpp 113 lines.
OlySocket::connect(MALI_GRAPHICS, MALI_GRAPHICS_SIZE) failed.
I don`t know where the MALI_GRAPHICS server socket created , there is only a client connect failed

from gator.

bengaineyarm avatar bengaineyarm commented on July 17, 2024

MidgardDriver.cpp is a red herring; it is not related to GPU counters, it is for collecting the OpenCL timeline from older GPU drivers.

According to captured.xml the counter you are interested in is being collected.

When you visualize the results of the capture in Streamline U/I, do you see any data for that chart or is it empty?
If not, you have limited the capture to 3 second duration? Are you sure there is some workload that causes activity on the GPU during that time? If there is no GPU activity, the chart should read zero.

from gator.

peng-bo-27 avatar peng-bo-27 commented on July 17, 2024

Gator does not work alone? I want to collect GPU counters to a local file . I have to use Streamline ?

from gator.

bengaineyarm avatar bengaineyarm commented on July 17, 2024

Correct; gatord can collect the data into a file (the .apc directory that you have seen), but it's only responsibility is to collect the data from the target device.

Streamline can then be used to process the capture data; you can either visualize it using the U/I, or you can use the Streamline command line to generate various reports (including producing a CSV file containing the list of counter values over time).

For the command line report generation, you may start with https://developer.arm.com/documentation/101816/0708/Use-Streamline-from-the-command-line and specifically https://developer.arm.com/documentation/101816/0708/Use-Streamline-from-the-command-line/Streamline-command-line-options/Report-mode for how to generate a report. Otherwise refer to https://developer.arm.com/documentation/101816/0708/Analyze-your-capture/Timeline-overview which covers some of the U/I.

from gator.

peng-bo-27 avatar peng-bo-27 commented on July 17, 2024

Thanks,let's return to the initial question. I want to collect GPU data to a local file , but I don't find GPU data in this .apc directory. So I think gatord can't collect GPU data alone or there are some errors in gatord. If it's the first case, I will use gatord and Streamline together.

from gator.

bengaineyarm avatar bengaineyarm commented on July 17, 2024

I want to collect GPU data to a local file , but I don't find GPU data in this .apc directory.
The .apc directory contains the encoded capture data, but it is not in human readable format; consider it like the output of perf record command if you are familiar.

So I think gatord can't collect GPU data alone... I will use gatord and Streamline together.
gatord can collect the data alone, but it doesn't provide any means to visualize the output in human readable format. For that you need Streamline.

from gator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.