rajveerb / lotus

Lotus: Characterization of Machine Learning Preprocessing Pipelines via Framework and Hardware Profiling
Other
3 stars 1 forks source link

Add Python bindings over AMD uProf's ITT equivalent #43

Closed rajveerb closed 3 months ago

rajveerb commented 6 months ago

Intel's ITT API allows us to get the mappings for the python functions.

AMD uProf has the equivalent of Intel's ITT API called AMDProfileControl. They are described in the Chapter 13 of AMD uProf guide.

We need to create python wrappers/bindings over them similar to the Intel ITT python bindings.

rajveerb commented 6 months ago

Tested out the C/C++ APIs for AMDProfileControl on Kepler2.

Code for testing is here.

rajveerb commented 6 months ago

Now working on creating the python bindings (inspiration from itt-python)

rajveerb commented 6 months ago

A Cython, pybind11, cffi – which tool should you choose? blog to help make a decision about which binding framework to use for AMD's APIs.