2013-03-11 21 views
3

我想使用Vtune Profiler API來剖析Xeon Phi上運行的代碼(Linux,使用卸載執行)以查看執行的指令數量,L1緩存未命中的數量等。但是我找不到解釋如何使用這個庫的地方。如何在Linux上使用Vtune Analyzer API

哪裏可以找到Linux文件庫文件和包含文件?如何編寫代碼來剖析在Xeon Phi上運行的短代碼?

我希望是這樣的:

//this code will be executed on host processor 
Read_counters(); 
Code_to_run on Xeon Phi 
Stop_counters(); 
Print results(); 

感謝

+0

你的意思呢? http://software.intel.com/sites/products/documentation/hpc/amplifierxe/en-us/2011Update/lin/ug_docs/GUID-17D7238B-DD19-45DB-B5E0-D9B344D1BE96.htm – 2013-03-22 21:22:15

+0

是的,我發現,但它需要將Vtune程序作爲獨立程序運行。我期待有人能夠將結果作爲API函數給我。 – Zk1001 2013-03-25 04:31:07

+0

vtune是否還有api?我只用過命令行。 – 2013-03-27 23:55:47

回答