Package Details: amduprof 3.4.468-2

Git Clone URL: https://aur.archlinux.org/amduprof.git (read-only, click to copy)
Package Base: amduprof
Description: AMD uProf performance analysis tool.
Upstream URL: https://developer.amd.com/amd-uprof/
Licenses: custom
Submitter: daren
Maintainer: daren
Last Packager: daren
Votes: 3
Popularity: 0.77
First Submitted: 2019-07-13 17:19
Last Updated: 2021-03-22 09:15

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

1 2 Next › Last »

nic3-14159 commented on 2021-04-13 15:53

@chapa You have to go to the website and manually download the tar.bz file to the directory where you cloned the package repo. It's behind a EULA, which is why makepkg isn't able to download it automatically. After that, makepkg should work properly.

chapa commented on 2021-04-06 06:10

AMDuProf_Linux_x64_3.4.468.tar.bz2 not found in build directory & source download error. ( Need help, thanks.

daren commented on 2021-03-22 09:16

I forgot to update the md5sum for the tarball in this package. Should work now, apologies.

daren commented on 2021-03-18 08:53

Oh, I didn't know there is a kernel module to hook deeper into the system. Will implement this today.

xsmile commented on 2021-03-18 01:02

Here is a complete PKGBUILD including the kernel module required by the power profile:

_pkgname=AMDuProf_Linux_x64
pkgname=amd-uprof
pkgver=3.4.468
pkgrel=2
pkgdesc='Runtime performance analysis tool for applications'
arch=(x86_64)
url='https://developer.amd.com/amd-uprof/'
license=(custom)
depends=(dkms)
source=("AMDuProf_Linux_x64_$pkgver.tar.bz2")
md5sums=('571b9dd6abc931153c9ab038962bcbf7')

# Requirements:
# Visit https://developer.amd.com/amd-uprof/, download the Linux archive and place it in the same
# directory as this PKGBUILD

package() {
  # uProf
  install -d "$pkgdir"/{opt,usr/bin}
  cp -dr --no-preserve=ownership "$srcdir"/${_pkgname}_${pkgver} "$pkgdir"/opt/$pkgname
  ln -s /opt/$pkgname/bin/{AMDRemoteAgent,AMDuProf,AMDuProfCLI} "$pkgdir"/usr/bin

  # Kernel module
  cd "$srcdir"/${_pkgname}_${pkgver}
  local _modname=AMDPowerProfiler
  local _modver=$(cat bin/AMDPowerProfilerVersion)
  tar zxf bin/AMDPowerProfilerDriverSource.tar.gz -C "$srcdir"

  cd "$srcdir"/${_modname}-${_modver}
  install -d "$pkgdir"/usr/src/${_modname}-${_modver}
  cp -dr --no-preserve=ownership {inc/,src/,AMDPowerProfilerVersion,dkms.conf,Makefile} \
    "$pkgdir"/usr/src/${_modname}-${_modver}

  echo $_modname | install -Dm 644 /dev/stdin "$pkgdir"/etc/modules-load.d/$pkgname.conf
  # TODO: The following tmpfile won't work. Instead add a systemd service file running
  # `/bin/mknod /dev/AMDPowerProfiler -m 666 c $(/bin/cat /proc/AMDPowerProfiler/device) 0` after the kernel module has been loaded.
  #echo "c /dev/$_modname 666 root root - 234:0" |
  #  install -Dm 644 /dev/stdin "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
}

EDIT: The char device will need a fix as the major version is not static.

andersfylling commented on 2021-02-20 21:23

Are people able to install uprof using this? Has this been testing in a vm?

I can't seem to get it installed and I get no errors. lmod, nor env-modules causes a successful installation, meaning I can't find uprof in my system after using this.

daren commented on 2021-02-02 20:33

Sorry for the delay.

I checked the files and there are actually conflicting libraries etc. for putting this in /usr.

Small update where MANPATH and PYTHONPATH are also being set.

Let me know what you think about loading this (along with aocc/aocl) with env-modules/lmod, it's being used a lot in HPC environments.

daren commented on 2021-01-20 13:43

I'll adapt the package later today to install into /usr prefix as it shouldn't conflict with other packages as with aocc and aocl.

diabolusss commented on 2021-01-20 13:23

Actually it's quite easy to install, just add downloaded amd archive into your helper package build directory, i.e. in case of yay it's /home/user/.cache/yay/amduprof/. I suppose it's always where PKGBUILD will be located upon install.

daren commented on 2020-10-04 17:18

The modulefile is part of the repo: https://aur.archlinux.org/cgit/aur.git/tree/modulefile?h=amduprof

Your AUR helper should download it when trying to install the package. Or when you clone the Git Clone URL.