2 Replies Latest reply on Sep 26, 2018 10:37 AM by tzachi_621

    uprof installation fails

    tzachi_621

      I am calling :

      sudo dpkg -i ./amduprof_1.2-275_amd64.deb

       

      It seems that DKMS compilation is failing.

       

      CC [M]  /usr/src/AMDPowerProfiler-7.02/src/PwrProfHwaccess.o

        CC [M]  /usr/src/AMDPowerProfiler-7.02/src/PwrProfModule.o

        CC [M]  /usr/src/AMDPowerProfiler-7.02/src/PwrProfSharedMemOps.o

        CC [M]  /usr/src/AMDPowerProfiler-7.02/src/PwrProfTimer.o

      /usr/src/AMDPowerProfiler-7.02/src/PwrProfTimer.c: In function ‘SetInstructionPointer’:

      /usr/src/AMDPowerProfiler-7.02/src/PwrProfTimer.c:98:12: error: implicit declaration of function ‘get_irq_regs’ [-Werror=implicit-function-declaration]

           regs = get_irq_regs();

                  ^

      /usr/src/AMDPowerProfiler-7.02/src/PwrProfTimer.c:98:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]

           regs = get_irq_regs();

                ^

      cc1: some warnings being treated as errors

                  ^

       

      I am using Ubuntu 16.04 LTS 64bit

      kernel version : 4.15.0-33-generic

      gcc version : gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

       

      Can you assist?

       

      Sincerely

       

      Tzachi Cohen

        • Re: uprof installation fails
          aalok

          Hi Tzachi Cohen,

           

          This issue has been fixed in the next version (which is yet to release).

          Till then you can download the installer tar and use following steps to fix this issue

           

          1. Download AMDuProf_Linux_x64_1.2.275.tar from https://developer.amd.com/amd-uprof/

          2. Untar AMDuProf_Linux_x64_1.2.275.tar, then cd to directory AMDuProf_Linux_x64_1.2.275/bin

          3. Untar the source files using

                  tar -xvf AMDPowerProfilerDriverSource.tar.gz

          4. Edit file AMDPowerProfiler-7.02/src/PwrProfTimer.c, add following header file

                  "#include <asm/irq_regs.h>"

          5. Tar the source files

                  tar zcvf  AMDPowerProfilerDriverSource.tar.gz AMDPowerProfiler-7.02

          6. Install Power drivers using

                  sudo ./AMDPowerProfilerDriver.sh install

                 

          Please let me know, if you face any issues.

           

           

          Regards,

          Aalok Agarwal