@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.
Search Criteria
Package Details: amduprof 5.0.1479-1
Package Actions
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: | disc-kuraudo |
Maintainer: | disc-kuraudo |
Last Packager: | disc-kuraudo |
Votes: | 6 |
Popularity: | 0.000000 |
First Submitted: | 2019-07-13 17:19 (UTC) |
Last Updated: | 2024-12-02 09:00 (UTC) |
nic3-14159 commented on 2021-04-13 15:53 (UTC)
chapa commented on 2021-04-06 06:10 (UTC) (edited on 2021-04-06 06:14 (UTC) by chapa)
AMDuProf_Linux_x64_3.4.468.tar.bz2 not found in build directory & source download error. ( Need help, thanks.
disc-kuraudo commented on 2021-03-22 09:16 (UTC)
I forgot to update the md5sum for the tarball in this package. Should work now, apologies.
disc-kuraudo commented on 2021-03-18 08:53 (UTC)
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 (UTC) (edited on 2021-03-18 21:51 (UTC) by xsmile)
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 (UTC) (edited on 2021-02-20 21:25 (UTC) by andersfylling)
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.
disc-kuraudo commented on 2021-02-02 20:33 (UTC)
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.
disc-kuraudo commented on 2021-01-20 13:43 (UTC)
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 (UTC) (edited on 2021-01-20 13:32 (UTC) by diabolusss)
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.
disc-kuraudo commented on 2020-10-04 17:18 (UTC) (edited on 2020-10-04 17:19 (UTC) by disc-kuraudo)
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.
Pinned Comments
disc-kuraudo commented on 2022-11-11 09:25 (UTC)