ROCm / rocprofiler-compute

Advanced Profiling and Analytics for AMD Hardware
https://rocm.docs.amd.com/projects/omniperf/en/latest/
MIT License
135 stars 49 forks source link

packaging updates #348

Closed koomie closed 6 months ago

koomie commented 6 months ago

This PR enables use of cpack to accommodate building of RPM and DEB packages. Install paths have also been updated to reflect ROCm conventions. e.g.

bin/  libexec/  share/

The primary omniperf utility is intended to be accessed from bin/omniperf which is a soft link to the full python install in libexec, e.g.

$ ls -l /tmp/omniperf/bin/omniperf 
lrwxrwxrwx 1 user group 28 Apr 18 10:35 /tmp/omniperf/bin/omniperf -> ../libexec/omniperf/omniperf*

Some new cmake vars introduced:

Note that if INSTALL_TESTS=ON, a separate omniperf-tests package will be generated containing testing collateral.