0
我剛升級到Ubuntu 16.04 LTS。在我的C++應用程序中,我使用PAPI庫,所以我從http://icl.utk.edu/papi/安裝了它。但是由於某種原因,我不能在開始時輸入sudo
而無法運行我的應用程序。爲什麼我需要運行一個作爲PAPI庫工作的根的應用程序?
即使只是在終端上輸入papi_avail
,看看哪些計數器可我得到這個:
================================================================================
PAPI Preset Events
================================================================================
Name Code Avail Deriv Description (Note)
PAPI_L1_DCM 0x80000000 No No Level 1 data cache misses
PAPI_L1_ICM 0x80000001 No No Level 1 instruction cache misses
PAPI_L2_DCM 0x80000002 No No Level 2 data cache misses
PAPI_L2_ICM 0x80000003 No No Level 2 instruction cache misses
..........
Of 108 possible events, 0 are available, of which 0 are derived.
avail.c PASSED
如果我跑sudo papi_avail
我得到這個:
--------------------------------------------------------------------------------
Of 108 possible events, 50 are available, of which 17 are derived.
avail.c PASSED
什麼在Ubuntu 16.04改變?