intel-Get-Started-with-VTune-Profiler- logo

intel Pib Pib nrog VTune Profiler

Pib nrog Intel® VTune™ Profiler

Siv Intel VTune Profiler txhawm rau txheeb xyuas lub hom phiaj hauv zos thiab thaj chaw deb ntawm Windows *, macOS *, thiab Linux * hosts. Txhim kho daim ntawv thov thiab kev ua haujlwm ntawm qhov system los ntawm cov haujlwm no:

  • Txheeb xyuas cov kev xaiv algorithm.
  • Nrhiav serial thiab parallel code bottlenecks.
  • Nkag siab qhov twg thiab qhov twg koj daim ntawv thov tuaj yeem tau txais txiaj ntsig los ntawm cov khoom siv kho vajtse muaj.
  • Ua kom tiav koj daim ntawv thov.
    Rub tawm Intel VTune Profiler ntawm koj qhov system los ntawm ib txoj hauv kev no:
  • Download tau lub Standalone version.
  • Tau txais Intel VTune Profiler ua ib feem ntawm Intel® oneAPI Base Toolkit.
    Saib VTune Profiler nplooj ntawv cob qhia rau cov yeeb yaj kiab, webinars, thiab ntau yam khoom siv los pab koj pib.

Nco tseg
Cov ntaub ntawv rau cov versions ntawm Intel® VTune™ Profiler ua ntej 2021 tso tawm tsuas yog muaj rau rub tawm. Rau ib daim ntawv teev cov ntaub ntawv muaj downloads los ntawm cov khoom version, saib cov nplooj ntawv no:

  • Rub tawm Cov Ntaub Ntawv rau Intel Parallel Studio XE
  • Download Documentation rau Intel System Studio

Nkag siab txog Kev Ua Haujlwm
Siv Intel VTune Profiler rau profile ib daim ntawv thov thiab txheeb xyuas cov txiaj ntsig rau kev txhim kho kev ua haujlwm.

General workflow muaj cov kauj ruam no:

intel-Get-Started-with-VTune-Profiler-01 ua

Xaiv Koj Tus Tswv Cuab System kom pib
Kawm paub ntau ntxiv txog kev ua haujlwm tshwj xeeb rau Windows *, Linux *, lossis macOS *.

intel-Get-Started-with-VTune-Profiler-02 ua

Pib nrog Intel® VTune™ Profiler rau Windows* OS

Ua ntej Koj Pib

  1. Nruab Intel® VTune™ Profiler ntawm koj lub Windows * system.
  2. Tsim koj daim ntawv thov nrog cov ntaub ntawv cim thiab hauv Kev Tso Tawm nrog txhua qhov kev ua kom zoo tau qhib. Yog xav paub ntxiv txog kev teeb tsa compiler, saib VTune Profiler online siv phau ntawv qhia.
    Koj tuaj yeem siv cov matrix sample daim ntawv thov muaj nyob rau hauv \VTune\Samples\matrix. Koj tuaj yeem pom qhov sib thooj sample ua \VTune\Projects\sample (matrix).
  3. Teeb tsa qhov hloov pauv ib puag ncig: Khiav lub \setvars.bat script.
    Los ntawm default, lub rau oneAPI Cheebtsam yog Program Files (x86)\Intel\oneAPI.
    Nco tseg Koj tsis tas yuav khiav setvars.bat thaum siv Intel® VTune™ Profiler hauv Microsoft* Visual Studio*.

Kauj ruam 1: Pib Intel® VTune™ Profiler
Pib Intel VTune Profiler los ntawm ib qho ntawm txoj kev no thiab teeb tsa ib qhov project. Ib qhov project yog lub thawv rau daim ntawv thov koj xav txheeb xyuas, hom kev tshuaj xyuas, thiab cov ntaub ntawv sau tau.

Tau qhov twg los / Pib VTune Profiler

Standalone (GUI)

  1. Khiav vtune-gui hais kom ua lossis khiav Intel® VTune™ Profiler los ntawm Start menu.
  2. Thaum lub GUI qhib, nyem rau ntawm lub vijtsam Txais tos.
  3. Nyob rau hauv lub Create Project dialog box, qhia lub npe qhov project thiab qhov chaw.
  4. Nyem Tsim Project.

Standalone (Command kab)
Khiav lub vtune hais kom ua.

Microsoft * Visual Studio * IDE
Qhib koj qhov kev daws teeb meem hauv Visual Studio. Lub VTune Profiler toolbar yog cia li qhib thiab koj qhov Visual Studio qhov project yog teem raws li lub hom phiaj tsom xam.

Nco tseg
Koj tsis tas yuav tsim ib qhov project thaum khiav Intel® VTune™ Profiler los ntawm kab hais kom ua lossis hauv Microsoft * Visual Studio.

Kauj ruam 2: Configure thiab khiav Analysis
Tom qab tsim ib qhov project tshiab, Configure Analysis window qhib nrog cov txiaj ntsig zoo li no:

intel-Get-Started-with-VTune-Profiler-03 ua

  1. Hauv seem Launch Application, xauj rau qhov chaw ntawm koj daim ntawv thov ua tiav file.
  2. Nyem Start kom khiav Performance Snapshot ntawm koj daim ntawv thov. Qhov kev ntsuam xyuas no nthuav tawm qhov dav davview ntawm cov teeb meem cuam tshuam rau kev ua tau zoo ntawm koj daim ntawv thov ntawm lub hom phiaj system.

Kauj ruam 3: View thiab txheeb xyuas cov ntaub ntawv ua tau zoo
Thaum sau cov ntaub ntawv tiav, VTune Profiler nthuav qhia cov txiaj ntsig kev txheeb xyuas hauv lub Qhov rai Cov ntsiab lus. Ntawm no, koj pom ib qho kev ua yeeb yam dhauview ntawm koj daim ntawv thov.
Qhov dhauview feem ntau suav nrog ntau qhov ntsuas nrog rau lawv cov lus piav qhia.

intel-Get-Started-with-VTune-Profiler-04 ua

  • A Nthuav txhua qhov kev ntsuas rau cov ncauj lus kom ntxaws txog qhov muaj feem cuam tshuam.
  • B Ib tug chij metric qhia tus nqi sab nraum qhov kev lees txais / kev ua haujlwm li qub. Siv cov lus qhia siv kom nkag siab yuav ua li cas txhawm rau txhim kho qhov ntsuas ntsuas ntsuas.
  • C Saib cov lus qhia ntawm lwm qhov kev tshuaj ntsuam koj yuav tsum xav txog kev khiav tom ntej. Tsob Ntoo Analysis qhia txog cov lus pom zoo no.

Cov kauj ruam tom ntej
Performance Snapshot yog qhov pib zoo kom tau txais kev ntsuam xyuas tag nrho ntawm daim ntawv thov kev ua haujlwm nrog VTune Profiler. Tom ntej no, xyuas seb koj lub algorithm xav tau kev kho.

  1. Ua raws li cov lus qhia txhawm rau txheeb xyuas cov kev ua haujlwm tsis zoo.
  2. Thaum koj cov algorithm zoo-tuned, khiav Performance Snapshot dua los ntsuas cov txiaj ntsig thiab txheeb xyuas cov kev ua tau zoo hauv lwm qhov chaw.

Saib ntxiv
Kev tshawb nrhiav microarchitecture

VTune Profiler Pab Ncig Saib

Example: Profile ib qho OpenMP* Application ntawm Windows*
Siv Intel VTune Profiler ntawm lub tshuab Windows rau profile raws liample iso3dfd_omp_offload OpenMP daim ntawv thov offloaded mus rau Intel GPU. Kawm paub yuav ua li cas khiav GPU tsom xam thiab tshuaj xyuas cov txiaj ntsig.

Yam yuavtsum tau kawm uantej

  • Nco ntsoov tias koj lub kaw lus khiav Microsoft * Windows 10 lossis ib qho tshiab dua.
  • Siv ib qho ntawm cov qauv no ntawm Intel Processor Graphics:
    • Gen 8
    • Gen 9
    • Gen 11
  • Koj lub kaw lus yuav tsum tau khiav ntawm ib qho ntawm Intel processors:
    • 7th Generation Intel® Core™ i7 Processors (code lub npe Kaby Lake)
    • 8th Generation Intel® Core™ i7 Processors (code lub npe Coffee Lake)
    • 10th Generation Intel® Core™ i7 Processors (code lub npe Ice Lake)
  • Nruab Intel VTune Profiler los ntawm ib qho ntawm cov peev txheej no:
    • Standalone khoom download
    • Intel® oneAPI Base Toolkit
    • Intel® System Nqa-up Toolkit
  • Rub tawm Intel® oneAPI HPC Toolkit uas muaj Intel® oneAPI DPC ++/C ++ Compiler (icx/icpx) uas koj xav taufile OpenMP daim ntawv thov.
  • Teeb tsa ib puag ncig hloov pauv. Teem lub vars.bat tsab ntawv nyob rau hauv lub \env directory.
  • Teem koj lub kaw lus rau GPU tsom xam.

Nco tseg
Txhawm rau nruab Intel VTune Profiler hauv Microsoft* Visual Studio ib puag ncig, saib VTune Profiler Phau Ntawv Qhia.

Tsim thiab suav nrog OpenMP Offload Application

  1. Download tau iso3dfd_omp_offload OpenMP Offload sample.
  2. Qhib rau sampua directory.
    cd <sample_dir>/DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload
  3. Sau daim ntawv thov OpenMP Offload.

mkdir ua
cd ua
icx /std:c++17 /EHsc /Qiopenmp /I../include\ /Qopenmp-targets:
spir64 /DUSE_BASELINE /DEBUG ..\src\iso3dfd.cpp ..\src\iso3dfd_verify.cpp ..\src\utils.cpp

Khiav GPU Analysis ntawm OpenMP Offload Application
Tam sim no koj tau npaj txhij los khiav GPU Offload Analysis ntawm OpenMP daim ntawv thov koj muab tso ua ke.

  1. Qhib VTune Profiler thiab nyem rau ntawm New Project los tsim ib qhov project.
  2. Ntawm nplooj ntawv txais tos, nyem rau Configure Analysis los teeb tsa koj qhov kev tshuaj ntsuam.
  3. Xaiv cov kev teeb tsa no rau koj qhov kev txheeb xyuas.
    • Hauv qhov twg pane, xaiv Local Host.
    • Nyob rau hauv dab tsi pane, xaiv Launch Daim ntawv thov thiab teev cov iso3dfd_omp_offload binary raws li daim ntawv thov rau profile.
    • Hauv HOW pane, xaiv GPU Offload tsom xam hom los ntawm pawg Accelerators hauv Cov Tsob Ntoo Tsob Ntoo.
      intel-Get-Started-with-VTune-Profiler-05 ua
  4. Nyem rau Start khawm kom khiav qhov kev tshuaj ntsuam.

VTune Profiler sau cov ntaub ntawv thiab qhia cov txiaj ntsig kev soj ntsuam hauv GPU Offload viewtaw tes.

  • Nyob rau hauv cov ntsiab lus qhov rais, saib cov txheeb cais ntawm CPU thiab GPU kev pab. Siv cov ntaub ntawv no los txiav txim seb koj daim ntawv thov puas yog:
    • GPU-khoom
    • CPU-bound
    • Kev siv cov ntaub ntawv suav ntawm koj lub cev tsis muaj txiaj ntsig
  • Siv cov ntaub ntawv hauv lub qhov rais Platform kom pom cov kev ntsuas CPU thiab GPU yooj yim.
  • Tshawb nrhiav cov haujlwm tshwj xeeb hauv kev suav hauv Graphics window.

Rau kev tsom xam tob, saib daim ntawv qhia muaj feem xyuam hauv VTune Profiler Performance Analysis Cookbook. Koj tseem tuaj yeem txuas ntxiv koj qhov profile nrog GPU Compute / Media Hotspots tsom xam.

Example: profile SYCL* Application on Windows*
Profile raws liample matrix_multiply SYCL daim ntawv thov nrog Intel® VTune™ Profiler. Tau txais kev paub txog cov khoom lag luam thiab nkag siab txog cov ntaub ntawv sau tseg rau GPU-bound applications.

Yam yuavtsum tau kawm uantej

  • Nco ntsoov tias koj muaj Microsoft * Visual Studio (v2017 lossis tshiab dua) ntsia ntawm koj lub cev.
  • Nruab Intel VTune Profiler los ntawm Intel® oneAPI Base Toolkit lossis Intel® System Bring-up Toolkit. Cov khoom siv no muaj Intel® oneAPI DPC ++/C ++ Compiler (icpx -fsycl) compiler xav tau rau cov txheej txheem profile.
  • Teeb tsa ib puag ncig hloov pauv. Teem lub vars.bat tsab ntawv nyob rau hauv lub \env directory.
  • Xyuas kom meej tias Intel oneAPI DPC ++ Compiler (nruab nrog Intel oneAPI Base toolkit) tau muab tso rau hauv Microsoft Visual Studio.
  • Sau cov cai siv -gline-tables-tsuas yog thiab -fdebug-info-for-profiling xaiv rau Intel oneAPI DPC ++ Compiler.
  • Teem koj lub kaw lus rau GPU tsom xam.

Yog xav paub ntxiv txog kev txhim kho Intel VTune Profiler hauv Microsoft* Visual Studio ib puag ncig, saib VTune Profiler Phau Ntawv Qhia.

Tsim Matrix App
Download tau matrix_multiply_vtune code sample pob rau Intel oneAPI toolkits. Qhov no muaj cov sample uas koj siv tau los tsim thiab profile ib daim ntawv thov SYCL.

  1. Qhib Microsoft * Visual Studio.
  2. Nyem File > Qhib > Project/Solution. Nrhiav matrix_multiply_vtune folder thiab xaiv matrix_multiply.sln.
  3. Ua qhov kev teeb tsa no (Project> Tsim).
  4. Khiav qhov program (Debug> Pib Tsis Muaj Debugging).
  5. Txhawm rau xaiv DPC ++ lossis threaded version ntawm sample, siv preprocessor txhais.
    1. Mus rau Project Properties > DPC ++ > Preprocessor > Preprocessor Definition.
    2. Txhais icpx -fsycl lossis USE_THR.

Khiav GPU Analysis
Khiav GPU tsom xam ntawm Matrix sample.

  1. Los ntawm Visual Studio toolbar, nyem qhov Configure Analysis khawm.
    Lub qhov rais Configure Analysis qhib. Los ntawm lub neej ntawd, nws tau txais koj qhov VS qhov project nqis thiab qhia meej txog matrix_multiply.exe ua daim ntawv thov rau profile.
  2. Hauv Configure Analysis window, nyem qhovintel-Get-Started-with-VTune-Profiler-06 ua Xauj khawm hauv HOW pane.
  3. Xaiv cov GPU Compute/Media Hotspots tsom xam los ntawm pab pawg Accelerators hauv Cov Tsob Ntoo Tsob Ntoo.
    intel-Get-Started-with-VTune-Profiler-06 ua
  4. Nyem rau Start khawm kom tso qhov kev tshuaj ntsuam nrog cov kev xaiv ua ntej.

Khiav GPU Analysis los ntawm Kab hais kom ua:

  1. Qhib lub sampli directory:
    <sample_dir>\VtuneProfiler\matrix_multiply_vtune
  2. Hauv phau ntawv qhia no, qhib Visual Studio * qhov project file npe matrix_multiply.sln
  3. Lub multiply.cpp file muaj ob peb versions ntawm matrix multiplication. Xaiv ib qho version los ntawm kev kho qhov sib thooj #define MULTIPLY kab hauv multiply.hpp
  4. Tsim tag nrho qhov project nrog kev tso tawm teeb tsa.
    Qhov no generates ib tug executable hu ua matrix_multiply.exe.
  5. Npaj lub kaw lus los khiav GPU kev txheeb xyuas. Saib Teeb System rau GPU Analysis.
  6. Teem VTune Profiler ib puag ncig hloov pauv los ntawm kev khiav lub batch file: export \env\vars.bat
  7. Khiav qhov kev ntsuam xyuas hais kom ua:
    vtune.exe -collect gpu-offload - matrix_multiply.exe

VTune Profiler sau cov ntaub ntawv thiab qhia cov txiaj ntsig kev soj ntsuam hauv GPU Compute / Media Hotspots viewtaw tes. Nyob rau hauv cov ntsiab lus qhov rais, saib cov txheeb cais ntawm CPU thiab GPU kev pab kom nkag siab yog tias koj daim ntawv thov yog GPU-bound. Hloov mus rau lub qhov rais Graphics kom pom cov CPU thiab GPU metrics uas sawv cev rau kev ua tiav ntawm lub sijhawm.

Pib nrog Intel® VTune™ Profiler rau Linux* OS

Ua ntej Koj Pib

  1. Nruab Intel® VTune™ Profiler ntawm koj lub Linux * system.
  2. Tsim koj daim ntawv thov nrog cov ntaub ntawv cim thiab hauv Kev Tso Tawm nrog txhua qhov kev ua kom zoo tau qhib. Yog xav paub ntxiv txog kev teeb tsa compiler, saib VTune Profiler online siv phau ntawv qhia.
    Koj tuaj yeem siv cov matrix sample daim ntawv thov muaj nyob rau hauv \sample\matrix. Koj tuaj yeem pom sample ua \sample (matrix).
  3. Teeb tsa ib puag ncig hloov pauv: qhov chaw /setvars.sh
    Los ntawm default, lub yog:
    • $HOME/intel/oneapi/ thaum nruab nrog cov neeg siv kev tso cai;
    • /opt/intel/oneapi/ thaum ntsia nrog kev tso cai hauv paus.

Kauj ruam 1: Pib VTune Profiler
Pib VTune Profiler los ntawm ib txoj kev no:

Tau qhov twg los / Pib VTune Profiler
Standalone / IDE (GUI)

  1. Khiav cov lus txib vtunegui. Yuav pib VTune Profiler los ntawm Intel System Studio IDE, xaiv Cov Cuab Yeej> VTune Profiler> Tua tawm VTune Profiler. Qhov no teeb tsa txhua qhov kev hloov pauv ib puag ncig tsim nyog thiab tso tawm ib qho kev sib txuas ntawm cov khoom lag luam.
  2. Thaum GUI qhib, nyem NEW PROJECT nyob rau hauv lub npov txais tos.
  3. Nyob rau hauv lub Create Project dialog box, qhia lub npe qhov project thiab qhov chaw.
  4. Nyem Tsim Project.

Standalone (Command kab)

  • Khiav lub vtune hais kom ua.

Kauj ruam 2: Configure thiab khiav Analysis
Tom qab tsim ib qhov project tshiab, Configure Analysis window qhib nrog cov txiaj ntsig zoo li no:

intel-Get-Started-with-VTune-Profiler-07 ua

  1. Hauv seem Launch Application, xauj rau qhov chaw ntawm koj daim ntawv thov.
  2. Nyem rau Start kom khiav Performance Snapshot ntawm koj daim ntawv thov. Qhov kev ntsuam xyuas no nthuav tawm qhov dav davview ntawm cov teeb meem cuam tshuam rau kev ua tau zoo ntawm koj daim ntawv thov ntawm lub hom phiaj system.

Kauj ruam 3: View thiab txheeb xyuas cov ntaub ntawv ua tau zoo
Thaum sau cov ntaub ntawv tiav, VTune Profiler nthuav qhia cov txiaj ntsig kev txheeb xyuas hauv lub Qhov rai Cov ntsiab lus. Ntawm no, koj pom ib qho kev ua yeeb yam dhauview ntawm koj daim ntawv thov.
Qhov dhauview feem ntau suav nrog ntau qhov ntsuas nrog rau lawv cov lus piav qhia.

intel-Get-Started-with-VTune-Profiler-08 ua

  • A Nthuav txhua qhov kev ntsuas rau cov ncauj lus kom ntxaws txog qhov muaj feem cuam tshuam.
  • B Ib tug chij metric qhia tus nqi sab nraum qhov kev lees txais / kev ua haujlwm li qub. Siv cov lus qhia siv kom nkag siab yuav ua li cas txhawm rau txhim kho qhov ntsuas ntsuas ntsuas.
  • C Saib cov lus qhia ntawm lwm qhov kev tshuaj ntsuam koj yuav tsum xav txog kev khiav tom ntej. Tsob Ntoo Analysis qhia txog cov lus pom zoo no.

Cov kauj ruam tom ntej
Performance Snapshot yog qhov pib zoo kom tau txais kev ntsuam xyuas tag nrho ntawm daim ntawv thov kev ua haujlwm nrog VTune Profiler. Tom ntej no, xyuas seb koj lub algorithm xav tau kev kho.

  1. Ua raws li cov lus qhia txhawm rau txheeb xyuas cov kev ua haujlwm tsis zoo.
  2. Thaum koj cov algorithm zoo-tuned, khiav Performance Snapshot dua los ntsuas cov txiaj ntsig thiab txheeb xyuas cov kev ua tau zoo hauv lwm qhov chaw.

Saib ntxiv
Kev tshawb nrhiav microarchitecture

VTune Profiler Pab Ncig Saib

Example: profile ib qho OpenMP Application ntawm Linux *
Siv Intel VTune Profiler ntawm lub tshuab Linux rau profile raws liample iso3dfd_omp_offload OpenMP daim ntawv thov offloaded mus rau Intel GPU. Kawm paub yuav ua li cas khiav GPU tsom xam thiab tshuaj xyuas cov txiaj ntsig.

Yam yuavtsum tau kawm uantej

  • Nco ntsoov tias koj lub kaw lus tab tom khiav Linux * OS ntsiav 4.14 lossis ib qho tshiab dua.
  • Siv ib qho ntawm cov qauv no ntawm Intel Processor Graphics:
    • Gen 8
    • Gen 9
    • Gen 11
  • Koj lub kaw lus yuav tsum tau khiav ntawm ib qho ntawm Intel processors:
    • 7th Generation Intel® Core™ i7 Processors (code lub npe Kaby Lake)
    • 8th Generation Intel® Core™ i7 Processors (code lub npe Coffee Lake)
    • 10th Generation Intel® Core™ i7 Processors (code lub npe Ice Lake)
  • Rau Linux GUI, siv:
    • GTK + version 2.10 lossis tshiab dua (2.18 thiab tshiab dua versions raug pom zoo)
    • Pango version 1.14 lossis tshiab dua
    • X.Org version 1.0 los yog tshiab dua (1.7 thiab tshiab dua versions raug pom zoo)
  • Nruab Intel VTune Profiler los ntawm ib qho ntawm cov peev txheej no:
    • Standalone khoom download
    • Intel® oneAPI Base Toolkit
    • Intel® System Nqa-up Toolkit
  • Rub tawm Intel® oneAPI HPC Toolkit uas muaj Intel® oneAPI DPC ++/C ++ Compiler (icx/icpx) uas koj xav taufile OpenMP daim ntawv thov.
  • Teeb tsa ib puag ncig hloov pauv. Teem lub vars.sh tsab ntawv.
  • Teem koj lub kaw lus rau GPU tsom xam.

Tsim thiab suav nrog OpenMP Offload Application

  1. Download tau iso3dfd_omp_offload OpenMP Offload sample.
  2. Qhib rau sampua directory.
    cd <sample_dir>/DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload
  3. Sau daim ntawv thov OpenMP Offload.

mkdir tsim;
cmake -DVERIFY_RESULTS=0 ..
ua -j

Qhov no generates src/iso3dfd executable.

Txhawm rau rho tawm qhov program, ntaus:
ua kom huv

Qhov no tshem tawm cov executable thiab khoom files uas koj tsim nrog lub make command.

Khiav GPU Analysis ntawm OpenMP Offload Application
Tam sim no koj tau npaj txhij los khiav GPU Offload Analysis ntawm OpenMP daim ntawv thov koj muab tso ua ke.

  1. Qhib VTune Profiler thiab nyem rau ntawm New Project los tsim ib qhov project.
  2. Ntawm nplooj ntawv txais tos, nyem rau Configure Analysis los teeb tsa koj qhov kev tshuaj ntsuam.
  3. Xaiv cov kev teeb tsa no rau koj qhov kev txheeb xyuas.
    • Hauv qhov twg pane, xaiv Local Host.
    • Nyob rau hauv dab tsi pane, xaiv Launch Daim ntawv thov thiab teev cov iso3dfd_omp_offload binary raws li daim ntawv thov rau profile.
    • Hauv HOW pane, xaiv GPU Offload tsom xam hom los ntawm pawg Accelerators hauv Cov Tsob Ntoo Tsob Ntoo.
      intel-Get-Started-with-VTune-Profiler-09 ua
  4. Nyem rau Start khawm kom khiav qhov kev tshuaj ntsuam.

VTune Profiler sau cov ntaub ntawv thiab qhia cov txiaj ntsig kev soj ntsuam hauv GPU Offload viewtaw tes.

  • Nyob rau hauv cov ntsiab lus qhov rais, saib cov txheeb cais ntawm CPU thiab GPU kev pab. Siv cov ntaub ntawv no los txiav txim seb koj daim ntawv thov puas yog:
    • GPU-khoom
    • CPU-bound
    • Kev siv cov ntaub ntawv suav ntawm koj lub cev tsis muaj txiaj ntsig
  • Siv cov ntaub ntawv hauv lub qhov rais Platform kom pom cov kev ntsuas CPU thiab GPU yooj yim.
  • Tshawb nrhiav cov haujlwm tshwj xeeb hauv kev suav hauv Graphics window.

Rau kev tsom xam tob, saib daim ntawv qhia muaj feem xyuam hauv VTune Profiler Performance Analysis Cookbook. Koj tseem tuaj yeem txuas ntxiv koj qhov profile nrog GPU Compute / Media Hotspots tsom xam.

Example: profile SYCL * Daim Ntawv Thov ntawm Linux *
Siv VTune Profiler ua asample matrix_multiply SYCL daim ntawv thov kom paub sai sai nrog cov khoom lag luam thiab cov ntaub ntawv khaws tseg rau GPU-bound applications.

Yam yuavtsum tau kawm uantej

  • Nruab VTune Profiler thiab Intel® oneAPI DPC ++/C ++ Compiler los ntawm Intel® oneAPI Base Toolkit lossis Intel® System Bring-up Toolkit.
  • Teeb tsa ib puag ncig hloov pauv los ntawm kev ua tiav tsab ntawv vars.sh.
  • Teem koj lub kaw lus rau GPU tsom xam.

Tsim Matrix Daim Ntawv Thov
Download tau matrix_multiply_vtune code sample pob rau Intel oneAPI toolkits. Qhov no muaj cov sample uas koj siv tau los tsim thiab profile ib daim ntawv thov SYCL.

Rau profile ib daim ntawv thov SYCL, nco ntsoov sau cov cai siv -gline-tabs-tsuas yog thiab -fdebug-info-for-profiling Intel oneAPI DPC ++ Compiler xaiv.

Yuav sau no samphauv daim ntawv thov, ua cov hauv qab no:

  1. Mus rau sampua directory.
    cd <sample_dir/VtuneProfiler/matrix_multiply>
  2. Lub multiply.cpp file hauv src nplaub tshev muaj ob peb versions ntawm matrix multiplication. Xaiv ib qho version los ntawm kev kho qhov sib thooj #define MULTIPLY kab hauv multiply.h.
  3. Tsim lub app siv tus tsim uas twb muaj lawmfile:
    cmk ua.
    ua
    Qhov no yuav tsum tsim kom muaj matrix.icpx -fsycl executable.
    Txhawm rau rho tawm qhov program, ntaus:
    ua kom huv
    Qhov no tshem tawm cov executable thiab khoom files uas tau tsim los ntawm make command.

Khiav GPU Analysis
Khiav GPU tsom xam ntawm Matrix sample.

  1. Tua tawm VTune Profiler nrog vtune-gui hais kom ua.
  2. Nyem Tshiab Project los ntawm nplooj ntawv Zoo siab txais tos.
  3. Qhia ib lub npe thiab qhov chaw rau koj sampua qhov project thiab nyem Tsim Project.
  4. Nyob rau hauv dab tsi pane, xauj rau matrix.icpx-fsycl file.
  5. Hauv HOW pane, nyem qhov intel-Get-Started-with-VTune-Profiler-06 ua Xauj khawm thiab xaiv GPU Compute/Media Hotspots tsom xam los ntawm pab pawg Accelerators hauv Tsob Ntoo Tsob Ntoo.
    intel-Get-Started-with-VTune-Profiler-10 ua
  6. Nyem Start khawm nyob hauv qab kom tso tawm qhov kev tshuaj ntsuam nrog cov kev xaiv ua ntej.

Khiav GPU Analysis los ntawm Kab hais kom ua:

  1. Npaj lub kaw lus los khiav GPU kev txheeb xyuas. Saib Teeb System rau GPU Analysis.
  2. Teeb tsa ib puag ncig hloov pauv rau Intel software cov cuab yeej:
    qhov chaw $ONEAPI_ROOT/setvars.sh
  3. Khiav GPU Compute / Media Hotspots tsom xam:
    vtune -collect gpu-hotspots -r ./result_gpu-hotspots — ./matrix.icpx -fsycl
    Txhawm rau saib daim ntawv qhia luv luv, ntaus:
    vtune -report summary -r ./result_gpu-hotspots

VTune Profiler sau cov ntaub ntawv thiab qhia cov txiaj ntsig kev soj ntsuam hauv GPU Compute / Media Hotspots viewtaw tes. Nyob rau hauv cov ntsiab lus qhov rais, saib cov txheeb cais ntawm CPU thiab GPU kev pab kom nkag siab yog tias koj daim ntawv thov yog GPU-bound. Hloov mus rau lub qhov rais Graphics kom pom cov CPU thiab GPU metrics uas sawv cev rau kev ua tiav ntawm lub sijhawm.

Pib nrog Intel® VTune™ Profiler rau macOS*

Siv VTune Profiler ntawm macOS system los ua tej thaj chaw deb tsom xam ntawm qhov tsis yog macOS system (Linux * lossis Android * nkaus xwb).

Koj siv tsis tau VTune Profiler hauv macOS ib puag ncig rau cov hom phiaj no:

  • Profile macOS system uas nws tau nruab.
  • Sau cov ntaub ntawv ntawm lub chaw taws teeb macOS.

Txhawm rau txheeb xyuas qhov ua tau zoo ntawm cov chaw taws teeb Linux * lossis Android * lub hom phiaj los ntawm macOS tus tswv, ua ib qho ntawm cov kauj ruam no:

  • Khiav VTune Profiler tsom xam ntawm macOS system nrog rau tej thaj chaw deb system teev raws li lub hom phiaj. Thaum kev txheeb xyuas pib, VTune Profiler txuas mus rau cov chaw taws teeb tswj kom sau cov ntaub ntawv, tom qab ntawd coj cov txiaj ntsig rov qab mus rau macOS host rau viewhauv.
  • Khiav kev tshuaj ntsuam ntawm lub hom phiaj hauv zos thiab luam cov txiaj ntsig mus rau macOS system rau viewhauv VTune Profiler.

Cov kauj ruam hauv daim ntawv no suav tias yog qhov chaw deb Linux lub hom phiaj thiab sau cov ntaub ntawv ua haujlwm siv SSH nkag los ntawm VTune Profiler ntawm macOS host system.

Ua ntej Koj Pib

  1. Nruab Intel® VTune™ Profiler ntawm koj macOS* system.
  2. Tsim koj daim ntawv thov Linux nrog cov ntaub ntawv cim thiab hauv Kev Tso Tawm nrog txhua qhov kev ua kom zoo tau qhib. Yog xav paub ntxiv, saib cov teeb tsa compiler hauv VTune Profiler pab.
  3. Teem SSH nkag los ntawm tus tswv macOS system mus rau lub hom phiaj Linux system ua haujlwm hauv hom password-tsawg.

Kauj ruam 1: Pib VTune Profiler

  1. Tua tawm VTune Profiler nrog vtune-gui hais kom ua.
    Los ntawm default, lub yog /opt/intel/oneapi/.
  2. Thaum GUI qhib, nyem NEW PROJECT nyob rau hauv lub npov txais tos.
  3. Nyob rau hauv lub Create Project dialog box, qhia lub npe qhov project thiab qhov chaw.
  4. Nyem Tsim Project.

Kauj ruam 2: Configure thiab khiav Analysis
Tom qab koj tsim ib qhov project tshiab, Configure Analysis qhov rai qhib nrog cov Performance Snapshot tsom hom.
Qhov kev tshuaj ntsuam no nthuav tawm qhov dhauview ntawm cov teeb meem uas cuam tshuam rau kev ua tau zoo ntawm koj daim ntawv thov ntawm lub hom phiaj system.

intel-Get-Started-with-VTune-Profiler-11 ua

  1. Nyob rau hauv qhov chaw pane, xaiv tej thaj chaw deb Linux (SSH) thiab qhia meej lub hom phiaj Linux system siv username@ hostname[:port].
    VTune Profiler txuas rau Linux system thiab teeb tsa lub hom phiaj pob.
  2. Nyob rau hauv dab tsi pane, muab txoj hauv kev rau koj daim ntawv thov ntawm lub hom phiaj Linux system.
  3. Nyem rau Start khawm kom khiav Performance Snapshot ntawm daim ntawv thov.

Kauj ruam 3: View thiab txheeb xyuas cov ntaub ntawv ua tau zoo
Thaum sau cov ntaub ntawv tiav, VTune Profiler qhia cov txiaj ntsig kev txheeb xyuas ntawm macOS system. Pib koj qhov kev tshuaj ntsuam hauv qhov Summary window. Ntawm no, koj pom ib qho kev ua yeeb yam dhauview ntawm koj daim ntawv thov.

Qhov dhauview feem ntau suav nrog ntau qhov ntsuas nrog rau lawv cov lus piav qhia.

intel-Get-Started-with-VTune-Profiler-12 ua

  • A Nthuav txhua qhov kev ntsuas rau cov ncauj lus kom ntxaws txog qhov muaj feem cuam tshuam.
  • B Ib tug chij metric qhia tus nqi sab nraum qhov kev lees txais / kev ua haujlwm li qub. Siv cov lus qhia siv kom nkag siab yuav ua li cas txhawm rau txhim kho qhov ntsuas ntsuas ntsuas.
  • C Saib cov lus qhia ntawm lwm qhov kev tshuaj ntsuam koj yuav tsum xav txog kev khiav tom ntej. Tsob Ntoo Analysis qhia txog cov lus pom zoo no.

Cov kauj ruam tom ntej
Performance Snapshot yog qhov pib zoo kom tau txais kev ntsuam xyuas tag nrho ntawm daim ntawv thov kev ua haujlwm nrog VTune Profiler.
Tom ntej no, xyuas seb koj lub algorithm xav tau kev kho.

  1. Khiav Hotspots Analysis ntawm koj daim ntawv thov.
  2. Ua raws li kev qhia ntawm Hotspots. Kawm cov tswv yim kom tau txais txiaj ntsig zoo tshaj plaws ntawm koj qhov kev txheeb xyuas Hotspots.
  3. Thaum koj cov algorithm zoo-tuned, khiav Performance Snapshot dua los ntsuas cov txiaj ntsig thiab txheeb xyuas cov kev ua tau zoo hauv lwm qhov chaw.

Saib ntxiv
Kev tshawb nrhiav microarchitecture

VTune Profiler Pab Ncig Saib

Kawm ntxiv
Cov ntaub ntawv / piav qhia

  • Cov neeg siv phau ntawv qhia
    Phau Ntawv Qhia Tus Neeg Siv yog cov ntaub ntawv tseem ceeb rau VTune Profiler.
    Nco tseg
    Koj tuaj yeem rub tawm ib qho offline version ntawm VTune Profiler cov ntaub ntawv.
  • Kev cob qhia online
    Lub vev xaib kev cob qhia online yog qhov chaw zoo los kawm cov hauv paus ntawm VTune Profiler nrog Tau Txais Cov Lus Qhia, videos, tutorials, webinars, thiab technical articles.
  • Phau ntawv ua noj
    Phau ntawv qhia kev ua tau zoo uas muaj cov zaub mov txawv los txheeb xyuas thiab daws cov teeb meem kev ua tau zoo uas siv cov kev tshuaj ntsuam xyuas hauv VTune Profiler.
  • Installation Guide for Windows | Linux | macOS hosts
    Phau ntawv qhia kev teeb tsa muaj cov lus qhia yooj yim rau kev teeb tsa rau VTune Profiler thiab tom qab kev teeb tsa kev teeb tsa cov lus qhia rau ntau tus tsav tsheb thiab cov neeg sau khoom.
  • Cov ntawv qhia
    VTune Profiler tutorials qhia tus neeg siv tshiab los ntawm cov yam ntxwv yooj yim nrog luv sampua application.
  • Tso Lus Ceeb Toom
    Nrhiav cov ntaub ntawv hais txog qhov tseeb version ntawm VTune Profiler, suav nrog cov lus piav qhia dav dav ntawm cov yam ntxwv tshiab, cov kev xav tau ntawm cov txheej txheem, thiab cov teeb meem kev daws teeb meem uas tau daws.
    Rau qhov standalone thiab toolkit versions ntawm VTune Profiler, nkag siab txog qhov System Requirements tam sim no.

Cov ntawv ceeb toom thiab tsis lees paub
Cov thev naus laus zis thev naus laus zis tej zaum xav tau kev kho vajtse, software lossis kev ua haujlwm.
Tsis muaj cov khoom lag luam lossis cov khoom lag luam tuaj yeem ruaj ntseg kiag li.
Koj cov nqi thiab cov txiaj ntsig yuav txawv.
© Intel Corporation. Intel, Intel logo, thiab lwm yam Intel cov cim yog cov cim lag luam ntawm Intel Corporation lossis nws cov koom haum. Lwm lub npe thiab cov npe yuav raug lees paub tias yog cov cuab yeej ntawm lwm tus.
Intel, Intel logo, Intel Atom, Intel Core, Intel Xeon Phi, VTune thiab Xeon yog cov cim lag luam ntawm Intel Corporation hauv Asmeskas thiab / lossis lwm lub tebchaws.
* Lwm lub npe thiab hom yuav raug lees paub raws li cov cuab yeej ntawm lwm tus.
Microsoft, Windows, thiab Windows logo yog cov cim lag luam, lossis cov npe lag luam ntawm Microsoft Corporation hauv Tebchaws Meskas thiab / lossis lwm lub tebchaws.
Java yog lub npe lag luam ntawm Oracle thiab/lossis nws cov koom nrog.
OpenCL thiab OpenCL logo yog cov cim lag luam ntawm Apple Inc. siv los ntawm kev tso cai los ntawm Khronos.

Cov thev naus laus zis thev naus laus zis tej zaum xav tau kev kho vajtse, software lossis kev ua haujlwm.
Tsis muaj cov khoom lag luam lossis cov khoom lag luam tuaj yeem ruaj ntseg kiag li.
Koj cov nqi thiab cov txiaj ntsig yuav txawv.
© Intel Corporation. Intel, Intel logo, thiab lwm yam Intel cov cim yog cov cim lag luam ntawm Intel Corporation lossis nws cov koom haum. Lwm lub npe thiab cov npe yuav raug lees paub tias yog cov cuab yeej ntawm lwm tus.
Intel, Intel logo, Intel Atom, Intel Core, Intel Xeon Phi, VTune thiab Xeon yog cov cim lag luam ntawm Intel Corporation hauv Asmeskas thiab / lossis lwm lub tebchaws.
* Lwm lub npe thiab hom yuav raug lees paub raws li cov cuab yeej ntawm lwm tus.
Microsoft, Windows, thiab Windows logo yog cov cim lag luam, lossis cov npe lag luam ntawm Microsoft Corporation hauv Tebchaws Meskas thiab / lossis lwm lub tebchaws.
Java yog lub npe lag luam ntawm Oracle thiab/lossis nws cov koom nrog.
OpenCL thiab OpenCL logo yog cov cim lag luam ntawm Apple Inc. siv los ntawm kev tso cai los ntawm Khronos.

Cov ntaub ntawv / Cov ntaub ntawv

intel Pib Pib nrog VTune Profiler [ua pdf] Cov neeg siv phau ntawv qhia
Pib nrog VTune Profiler, Pib, nrog VTune Profiler, VTune Profiler

Cov ntaub ntawv

Cia ib saib

Koj email chaw nyob yuav tsis raug luam tawm. Cov teb uas yuav tsum tau muaj yog cim *