Intel-Get-Start-with-VTune-Profiler-logo

Intel Qala ka VTune Profiler

Qala ka Intel® VTune™ Profiler

Sebelisa Intel VTune Profiler ho sekaseka lits'ebetso tse shebiloeng tsa lehae le tse hole ho tsoa ho li-hosts tsa Windows*, macOS*, le Linux*. Ntlafatsa ts'ebetso ea ts'ebeliso le sistimi ka lits'ebetso tsena:

  • Sekaseka likhetho tsa algorithm.
  • Fumana likhoutu tsa serial le tse bapileng.
  • Utloisisa hore na kopo ea hau e ka rua molemo hokae hona joang ho lisebelisoa tse teng tsa hardware.
  • Potlakisa ts'ebetsong ea kopo ea hau.
    Khoasolla Intel VTune Profiler tsamaisong ea hau ka e 'ngoe ea litsela tsena:
  • Khoasolla mofuta oa Standalone.
  • Fumana Intel VTune Profiler e le karolo ea Intel® oneAPI Base Toolkit.
    Bona VTune Profiler leqephe la koetliso bakeng sa livideo, weblinars, le boitsebiso bo eketsehileng ho u thusa ho qala.

HLOKOMELA
Litokomane tsa mefuta ea Intel® VTune™ Profiler pele ho tokollo ea 2021 li fumaneha bakeng sa ho jarolleloa feela. Bakeng sa lethathamo la litokomane tse fumanehang ka mofuta oa sehlahisoa, bona maqephe ana:

  • Khoasolla Litokomane tsa Intel Parallel Studio XE
  • Khoasolla Litokomane tsa Intel System Studio

Utloisisa Tsamaiso ea Mosebetsi
Sebelisa Intel VTune Profiler ho profile kopo le ho sekaseka liphetho bakeng sa ntlafatso ea ts'ebetso.

Mokhoa o tloaelehileng oa ts'ebetso o na le mehato ena:

Intel-Get-Start-with-VTune-Profiler-01

Khetha Sisteme ea hau ea Host ho qala
Ithute haholoanyane ka tsamaiso e ikhethileng ea sistimi bakeng sa Windows*, Linux*, kapa macOS*.

Intel-Get-Start-with-VTune-Profiler-02

Qala ka Intel® VTune™ Profiler bakeng sa Windows* OS

Pele O Qala

  1. Kenya Intel® VTune™ Profiler tsamaisong ea hau ea Windows*.
  2. Theha sesebelisoa sa hau ka tlhaiso-leseling ea matšoao 'me ka mokhoa oa Tokollo ka lisebelisoa tsohle tse lumelletsoeng. Bakeng sa tlhaiso-leseling e batsi mabapi le litlhophiso tsa komporo, bona VTune Profiler tataiso ea basebelisi ba inthaneteng.
    U ka boela ua sebelisa matrix sample application fumaneha ka \VTune\Samples\matrix. U ka bona tse tsamaellanang sample fella ka \VTune\Projects\sample (matrix).
  3. Hlophisa maemo a tikoloho: Matha ea \setvars.bat script.
    Ka ho sa feleng, the bakeng sa likarolo tsa oneAPI ke Lenaneo Files (x86)\Intel\oneAPI.
    HLOKOMELA Ha o hloke ho sebelisa setvars.bat ha o sebelisa Intel® VTune™ Profiler ka har'a Microsoft* Visual Studio*.

Mohato oa 1: Qala Intel® VTune™ Profiler
Qala Intel VTune Profiler ka e 'ngoe ea litsela tsena ebe u theha morero. Morero ke setshelo sa kopo eo u batlang ho e sekaseka, mofuta oa tlhahlobo, le liphetho tsa pokello ea data.

Mohloli / Qala VTune Profiler

E ikemetseng (GUI)

  1. Etsa taelo ea vtune-gui kapa tsamaisa Intel® VTune™ Profiler ho tswa ho Start menu.
  2. Ha GUI e bula, tlanya skrineng sa Welcome.
  3. Ka lebokoseng la puisano la Create Project, bolela lebitso la morero le sebaka.
  4. Tobetsa Create Project.

E ikemetseng (Mohala oa taelo)
Etsa taelo ea vtune.

Microsoft* Visual Studio* IDE
Bula tharollo ea hau ho Visual Studio. VTune Profiler e sebetsa ka bo eona mme projeke ea hau ea Visual Studio e beoa e le sepheo sa tlhahlobo.

HLOKOMELA
Ha ho hlokahale hore u thehe projeke ha u sebelisa Intel® VTune™ Profiler ho tsoa moleng oa taelo kapa ka har'a Microsoft* Visual Studio.

Mohato oa 2: Hlophisa 'me u Mathe Analysis
Kamora ho theha projeke e ncha, fensetere ea Configure Analysis e bula ka litekanyetso tsena tsa kamehla:

Intel-Get-Start-with-VTune-Profiler-03

  1. Karolong ea Launch Application, sheba moo kopo ea hau e ka phethisoang teng file.
  2. Tobetsa Qala ho tsamaisa Senepe sa Tshebetso ho kopo ea hau. Tlhahlobo ena e fana ka kakaretso e akaretsangview ea litaba tse amang ts'ebetso ea kopo ea hau ho sistimi e reriloeng.

Mohato oa 3: View le ho Hlahloba Lintlha tsa Ts'ebetso
Ha pokello ea data e felile, VTune Profiler e bonts'a liphetho tsa tlhahlobo fensetereng ea Summary. Mona, u bona ts'ebetso e felileview ea kopo ea hau.
The overview hangata e kenyelletsa metrics tse 'maloa hammoho le litlhaloso tsa tsona.

Intel-Get-Start-with-VTune-Profiler-04

  • A Atolosa metric ka 'ngoe bakeng sa lintlha tse felletseng mabapi le lintlha tse tlatsetsang.
  • B Metric e tšoailoeng e bontša boleng bo kantle ho sebaka se amohelehang/se tloaelehileng sa ts'ebetso. Sebelisa malebela a lisebelisoa ho utloisisa mokhoa oa ho ntlafatsa metric e tšoailoeng.
  • C Sheba tataiso ea litlhahlobo tse ling tseo u lokelang ho nahana ho li etsa nakong e tlang. Sefate sa Analysis se totobatsa likhothaletso tsena.

Mehato e Latelang
Performance Snapshot ke sebaka se setle sa ho qala ho fumana tlhahlobo e akaretsang ea ts'ebetso ea ts'ebeliso ka VTune Profiler. E latelang, hlahloba hore na algorithm ea hau e hloka tokiso.

  1. Latela thuto ho sekaseka mathata a tloaelehileng a ts'ebetso.
  2. Hang ha algorithm ea hau e hlophisitsoe hantle, tsamaisa Snapshot ea Ts'ebetso hape ho lekanya liphetho le ho tseba lintlafatso tsa ts'ebetso libakeng tse ling.

Bona Hape
Tlhahlobo ea Microarchitecture

VTune Profiler Thuso Tour

ExampLe: Profile Sesebelisoa sa OpenMP* ho Windows*
Sebelisa Intel VTune Profiler mochining oa Windows ho ea profile joalo kaample iso3dfd_omp_offload sesebelisoa sa OpenMP se theotsoe ho Intel GPU. Ithute ho etsa tlhahlobo ea GPU 'me u hlahlobe liphetho.

Lintho tse hlokahalang

  • Etsa bonnete ba hore sistimi ea hau e sebelisa Microsoft* Windows 10 kapa mofuta o mocha.
  • Sebelisa e 'ngoe ea mefuta ena ea Intel processor Graphics:
    • Gen 8
    • Gen 9
    • Gen 11
  • Sistimi ea hau e lokela ho sebetsa ho e 'ngoe ea li-processor tsa Intel:
    • 7th Generation Intel® Core™ i7 processors (lebitso la khoutu Kaby Lake)
    • 8th Generation Intel® Core™ i7 processors (lebitso la khoutu Coffee Lake)
    • 10th Generation Intel® Core™ i7 Processors (lebitso la khoutu Ice Lake)
  • Kenya Intel VTune Profiler ho tsoa ho o mong oa mehloli ena:
    • Khoasolla sehlahisoa se ikemetseng
    • Intel® oneAPI Base Toolkit
    • Intel® Sistimi ea ho Hlahisa Toolkit
  • Khoasolla Intel® oneAPI HPC Toolkit e nang le Intel® oneAPI DPC++/C++ Compiler(icx/icpx) eo u hlokang ho e sebelisa.file Lisebelisoa tsa OpenMP.
  • Beha maemo a fapaneng a tikoloho. Phetha mongolo oa vars.bat o fumanehang sebakeng sa \ env directory.
  • Iketsetse sistimi ea hau bakeng sa tlhahlobo ea GPU.

HLOKOMELA
Ho kenya Intel VTune Profiler tikolohong ea Microsoft * Visual Studio, bona VTune Profiler Bukana ea Mosebelisi.

Theha le ho Kopanya Sesebelisoa sa Offload sa OpenMP

  1. Khoasolla iso3dfd_omp_offload OpenMP Offload sample.
  2. Bula ho sample directory.
    cd <sample_dir>/DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload
  3. Kopanya sesebelisoa sa OpenMP Offload.

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

Etsa tlhahlobo ea GPU ho OpenMP Offload Application
U se u itokiselitse ho etsa Analysis Offload ea GPU ho sesebelisoa sa OpenMP seo u se entseng.

  1. Bula VTune Profiler ebe o tobetsa New Project ho theha morero.
  2. Leqepheng la kamohelo, tlanya ho Configure Analysis ho theha tlhahlobo ea hau.
  3. Khetha litlhophiso tsena bakeng sa tlhahlobo ea hau.
    • Fensetereng ea WHERE, khetha Moamoheli oa Lehae.
    • Ka fenstereng ea WHAT, khetha Qala Kopo 'me u hlalose binary ea iso3dfd_omp_offload e le ts'ebeliso ea pro.file.
    • Fensetereng ea HOW, khetha mofuta oa tlhahlobo ea Offload ea GPU ho tsoa sehlopheng sa Accelerator ho Sefate sa Analysis.
      Intel-Get-Start-with-VTune-Profiler-05
  4. Tobetsa konopo ea Qala ho etsa tlhahlobo.

VTune Profiler e bokella data mme e bonts'a liphetho tsa tlhahlobo ho GPU Offload viewntlha.

  • Fesetereng ea Kakaretso, bona lipalo-palo tsa tšebeliso ea lisebelisoa tsa CPU le GPU. Sebelisa lintlha tsena ho fumana hore na kopo ea hau ke:
    • GPU e tlanngoeng
    • E kopantsoe ke CPU
    • Ho sebelisa lisebelisoa tsa komporo ea sistimi ea hau ka mokhoa o sa sebetseng
  • Sebelisa lintlha tse fensetereng ea Platform ho bona lintlha tsa motheo tsa CPU le GPU.
  • Batlisisa mesebetsi e khethehileng ea khomphutha fensetereng ea Graphics.

Bakeng sa tlhahlobo e tebileng, bona risepe e amanang le VTune Profiler Buka ea Cookbook ea Tlhahlobo ea Ts'ebetso. U ka boela ua ntšetsa pele profaele ea hau ka tlhahlobo ea GPU Compute/Media Hotspots.

Example: profile a SYCL* Kopo ho Windows*
Profile joalo kaample matrix_multiply SYCL sesebelisoa ka Intel® VTune™ Profiler. Itloaetse sehlahisoa 'me u utloisise lipalo-palo tse bokeletsoeng bakeng sa lisebelisoa tse tlamang GPU.

Lintho tse hlokahalang

  • Etsa bonnete ba hore u na le Microsoft* Visual Studio (v2017 kapa e ncha) e kentsoeng tsamaisong ea hau.
  • Kenya Intel VTune Profiler ho tsoa ho Intel® oneAPI Base Toolkit kapa Intel® System Bring-up Toolkit. Li-Toolkits tsena li na le Intel® oneAPI DPC++/C++ Compiler(icpx -fsycl) e hlokahalang bakeng sa ts'ebetso ea profil.
  • Beha maemo a fapaneng a tikoloho. Phetha mongolo oa vars.bat o fumanehang sebakeng sa \ env directory.
  • Netefatsa hore Intel oneAPI DPC++ Compiler (e kentsoeng le Intel oneAPI Base toolkit) e hokahane le Microsoft Visual Studio.
  • Kopanya khoutu u sebelisa likhetho tsa -gline-tafole-feela le -fdebug-info-for-profiling bakeng sa Intel oneAPI DPC++ Compiler.
  • Iketsetse sistimi ea hau bakeng sa tlhahlobo ea GPU.

Ho fumana leseli mabapi le ho kenya Intel VTune Profiler tikolohong ea Microsoft* Visual Studio, bona VTune Profiler Bukana ea Mosebelisi.

Theha sesebelisoa sa Matrix
Khoasolla matrix_multiply_vtune khoutu ea sample sephutheloana sa lisebelisoa tsa lisebelisoa tsa Intel oneAPI. Sena se na le sample tseo u ka li sebelisang ho aha le ho profile sesebelisoa sa SYCL.

  1. Bula Microsoft* Visual Studio.
  2. Tobetsa File > Bula > Morero/Tharollo. Fumana foldara ea matrix_multiply_vtune ebe u khetha matrix_multiply.sln.
  3. Haha tlhophiso ena (Project> Haha).
  4. Tsamaisa lenaneo (Debug> Qala Ntle le ho Fokotsa).
  5. Ho khetha DPC++ kapa mofuta oa khoele oa sample, sebelisa litlhaloso tsa preprocessor.
    1. Eya ho Project Properties> DPC++> Preprocessor> Preprocessor Definition.
    2. Hlalosa icpx -fsycl kapa USE_THR.

Etsa tlhahlobo ea GPU
Etsa tlhahlobo ea GPU ho Matrix sample.

  1. Ho tsoa ho sesebelisoa sa Visual Studio, tobetsa konopo ea Configure Analysis.
    Fesetere ea Configure Analysis ea bula. Ka kamehla, e rua litlhophiso tsa projeke ea VS ea hau mme e hlakisa matrix_multiply.exe joalo ka ts'ebeliso ea pro.file.
  2. Fesetereng ea Configure Analysis, tobetsa eaIntel-Get-Start-with-VTune-Profiler-06 Batla konopo fenstereng ea HOW.
  3. Khetha mofuta oa tlhahlobo ea GPU Compute/Media Hotspots ho tsoa sehlopheng sa Accelerators ho Sefate sa Analysis.
    Intel-Get-Start-with-VTune-Profiler-06
  4. Tobetsa konopo ea Qala ho qala tlhahlobo ka likhetho tse boletsoeng esale pele.

Matha GPU Analysis ho tloha Command Line:

  1. Bula sample directory:
    <sample_dir>\VtuneProfiler\matrix_multiply_vtune
  2. Bukeng ena, bula Visual Studio * projeke file e bitsoang matrix_multiply.sln
  3. The multiply.cpp file e na le mefuta e mengata ea katiso ea matrix. Khetha mofuta ka ho hlophisa mola o tsamaisanang oa #define MULTIPLY ho multiply.hpp
  4. Haha morero oohle ka tokiso ea Tokollo.
    Sena se hlahisa e ka phethisoang e bitsoang matrix_multiply.exe.
  5. Lokisetsa sistimi ho tsamaisa tlhahlobo ea GPU. Sheba Sistimi ea Seta bakeng sa Tlhahlobo ea GPU.
  6. Beha VTune Profiler diphapano tsa tikoloho ka ho tsamaisa sehlopha file: thomello \ env\vars.bat
  7. Kenya taelo ea tlhahlobo:
    vtune.exe - bokella gpu-offload - matrix_multiply.exe

VTune Profiler e bokella lintlha le ho hlahisa liphetho tsa tlhahlobo ho GPU Compute/Media Hotspots viewntlha. Fesetereng ea Kakaretso, bona lipalo-palo tsa tšebeliso ea lisebelisoa tsa CPU le GPU ho utloisisa hore na sesebelisoa sa hau se tlamahane le GPU. Fetolela fensetereng ea Graphics ho bona metrics ea mantlha ea CPU le GPU e emelang ts'ebetso ea khoutu ha nako e ntse e ea.

Qala ka Intel® VTune™ Profiler bakeng sa Linux* OS

Pele O Qala

  1. Kenya Intel® VTune™ Profiler tsamaisong ea hau ea Linux *.
  2. Theha sesebelisoa sa hau ka tlhaiso-leseling ea matšoao 'me ka mokhoa oa Tokollo ka lisebelisoa tsohle tse lumelletsoeng. Bakeng sa tlhaiso-leseling e batsi mabapi le litlhophiso tsa komporo, bona VTune Profiler tataiso ea basebelisi ba inthaneteng.
    U ka boela ua sebelisa matrix sample application fumaneha ka \sample\matrix. U ka bona sample fella ka \sample (matrix).
  3. Hlophisa maemo a tikoloho: mohloli /setvars.sh
    Ka ho sa feleng, the ke:
    • $HOME/intel/oneapi/ ha e kentsoe ka tumello ea mosebelisi;
    • /opt/intel/oneapi/ ha e kentsoe ka tumello ea metso.

Mohato oa 1: Qala VTune Profiler
Qala VTune Profiler ka e 'ngoe ea litsela tsena:

Mohloli / Qala VTune Profiler
E ikemetseng/IDE (GUI)

  1. Matha taelo ea vtunegui. Ho qala VTune Profiler ho tsoa ho Intel System Studio IDE, khetha Lisebelisoa> VTune Profiler > Qala VTune Profiler. Sena se beha mefuta eohle e nepahetseng ea tikoloho mme se hlahisa sebopeho se ikemetseng sa sehlahisoa.
  2. Ha GUI e bula, tobetsa NEW PROJECT skrineng sa Kamohelo.
  3. Ka lebokoseng la puisano la Create Project, bolela lebitso la morero le sebaka.
  4. Tobetsa Create Project.

E ikemetseng (Mohala oa taelo)

  • Etsa taelo ea vtune.

Mohato oa 2: Hlophisa 'me u Mathe Analysis
Kamora ho theha projeke e ncha, fensetere ea Configure Analysis e bula ka litekanyetso tsena tsa kamehla:

Intel-Get-Start-with-VTune-Profiler-07

  1. Karolong ea Launch Application, sheba sebaka sa kopo ea hau.
  2. Tobetsa ho Qala ho matha Tshebetso Snapshot ka kopo ya hao. Tlhahlobo ena e fana ka kakaretso e akaretsangview ea litaba tse amang ts'ebetso ea kopo ea hau ho sistimi e reriloeng.

Mohato oa 3: View le ho Hlahloba Lintlha tsa Ts'ebetso
Ha pokello ea data e felile, VTune Profiler e bonts'a liphetho tsa tlhahlobo fensetereng ea Summary. Mona, u bona ts'ebetso e felileview ea kopo ea hau.
The overview hangata e kenyelletsa metrics tse 'maloa hammoho le litlhaloso tsa tsona.

Intel-Get-Start-with-VTune-Profiler-08

  • A Atolosa metric ka 'ngoe bakeng sa lintlha tse felletseng mabapi le lintlha tse tlatsetsang.
  • B Metric e tšoailoeng e bontša boleng bo kantle ho sebaka se amohelehang/se tloaelehileng sa ts'ebetso. Sebelisa malebela a lisebelisoa ho utloisisa mokhoa oa ho ntlafatsa metric e tšoailoeng.
  • C Sheba tataiso ea litlhahlobo tse ling tseo u lokelang ho nahana ho li etsa nakong e tlang. Sefate sa Analysis se totobatsa likhothaletso tsena.

Mehato e Latelang
Performance Snapshot ke sebaka se setle sa ho qala ho fumana tlhahlobo e akaretsang ea ts'ebetso ea ts'ebeliso ka VTune Profiler. E latelang, hlahloba hore na algorithm ea hau e hloka tokiso.

  1. Latela thuto ho sekaseka mathata a tloaelehileng a ts'ebetso.
  2. Hang ha algorithm ea hau e hlophisitsoe hantle, tsamaisa Snapshot ea Ts'ebetso hape ho lekanya liphetho le ho tseba lintlafatso tsa ts'ebetso libakeng tse ling.

Bona Hape
Tlhahlobo ea Microarchitecture

VTune Profiler Thuso Tour

Example: profile Sesebelisoa sa OpenMP ho Linux*
Sebelisa Intel VTune Profiler mochine oa Linux ho profile joalo kaample iso3dfd_omp_offload sesebelisoa sa OpenMP se theotsoe ho Intel GPU. Ithute ho etsa tlhahlobo ea GPU 'me u hlahlobe liphetho.

Lintho tse hlokahalang

  • Etsa bonnete ba hore sistimi ea hau e sebelisa Linux* OS kernel 4.14 kapa mofuta o mocha.
  • Sebelisa e 'ngoe ea mefuta ena ea Intel processor Graphics:
    • Gen 8
    • Gen 9
    • Gen 11
  • Sistimi ea hau e lokela ho sebetsa ho e 'ngoe ea li-processor tsa Intel:
    • 7th Generation Intel® Core™ i7 processors (lebitso la khoutu Kaby Lake)
    • 8th Generation Intel® Core™ i7 processors (lebitso la khoutu Coffee Lake)
    • 10th Generation Intel® Core™ i7 Processors (lebitso la khoutu Ice Lake)
  • Bakeng sa Linux GUI, sebelisa:
    • Mofuta oa GTK+ 2.10 kapa e ncha (2.18 le mefuta e mecha ea khothaletsoa)
    • Pango version 1.14 kapa e ncha
    • X.Org version 1.0 kapa e ncha (1.7 le mefuta e mecha ea khothaletsoa)
  • Kenya Intel VTune Profiler ho tsoa ho o mong oa mehloli ena:
    • Khoasolla sehlahisoa se ikemetseng
    • Intel® oneAPI Base Toolkit
    • Intel® Sistimi ea ho Hlahisa Toolkit
  • Khoasolla Intel® oneAPI HPC Toolkit e nang le Intel® oneAPI DPC++/C++ Compiler(icx/icpx) eo u hlokang ho e sebelisa.file Lisebelisoa tsa OpenMP.
  • Beha maemo a fapaneng a tikoloho. Kenya mongolo oa vars.sh.
  • Iketsetse sistimi ea hau bakeng sa tlhahlobo ea GPU.

Theha le ho Kopanya Sesebelisoa sa Offload sa OpenMP

  1. Khoasolla iso3dfd_omp_offload OpenMP Offload sample.
  2. Bula ho sample directory.
    cd <sample_dir>/DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload
  3. Kopanya sesebelisoa sa OpenMP Offload.

mkdir haha;
cmake -DVERIFY_RESULTS=0 ..
etsa -j

Sena se hlahisa src/iso3dfd e ka phethisoang.

Ho hlakola lenaneo, thaepa:
hloekisa

Sena se tlosa se phethisoang le ntho files tseo u li entseng ka ho etsa taelo.

Etsa tlhahlobo ea GPU ho OpenMP Offload Application
U se u itokiselitse ho etsa Analysis Offload ea GPU ho sesebelisoa sa OpenMP seo u se entseng.

  1. Bula VTune Profiler ebe o tobetsa New Project ho theha morero.
  2. Leqepheng la kamohelo, tlanya ho Configure Analysis ho theha tlhahlobo ea hau.
  3. Khetha litlhophiso tsena bakeng sa tlhahlobo ea hau.
    • Fensetereng ea WHERE, khetha Moamoheli oa Lehae.
    • Ka fenstereng ea WHAT, khetha Qala Kopo 'me u hlalose binary ea iso3dfd_omp_offload e le ts'ebeliso ea pro.file.
    • Fensetereng ea HOW, khetha mofuta oa tlhahlobo ea Offload ea GPU ho tsoa sehlopheng sa Accelerator ho Sefate sa Analysis.
      Intel-Get-Start-with-VTune-Profiler-09
  4. Tobetsa konopo ea Qala ho etsa tlhahlobo.

VTune Profiler e bokella data mme e bonts'a liphetho tsa tlhahlobo ho GPU Offload viewntlha.

  • Fesetereng ea Kakaretso, bona lipalo-palo tsa tšebeliso ea lisebelisoa tsa CPU le GPU. Sebelisa lintlha tsena ho fumana hore na kopo ea hau ke:
    • GPU e tlanngoeng
    • E kopantsoe ke CPU
    • Ho sebelisa lisebelisoa tsa komporo ea sistimi ea hau ka mokhoa o sa sebetseng
  • Sebelisa lintlha tse fensetereng ea Platform ho bona lintlha tsa motheo tsa CPU le GPU.
  • Batlisisa mesebetsi e khethehileng ea khomphutha fensetereng ea Graphics.

Bakeng sa tlhahlobo e tebileng, bona risepe e amanang le VTune Profiler Buka ea Cookbook ea Tlhahlobo ea Ts'ebetso. U ka boela ua ntšetsa pele profaele ea hau ka tlhahlobo ea GPU Compute/Media Hotspots.

Example: profile a SYCL* Kopo ho Linux*
Sebelisa VTune Profiler le joalo kaample matrix_multiply SYCL sesebelisoa ho tloaelana le sehlahisoa le lipalo-palo tse bokeletsoeng bakeng sa lits'ebetso tse tlamang GPU.

Lintho tse hlokahalang

  • Kenya VTune Profiler le Intel® oneAPI DPC++/C++ Compiler ho tsoa ho Intel® oneAPI Base Toolkit kapa Intel® System Bring-up Toolkit.
  • Beha mefuta e fapaneng ea tikoloho ka ho sebelisa vars.sh script.
  • Iketsetse sistimi ea hau bakeng sa tlhahlobo ea GPU.

Theha Sesebelisoa sa Matrix
Khoasolla matrix_multiply_vtune khoutu ea sample sephutheloana sa lisebelisoa tsa lisebelisoa tsa Intel oneAPI. Sena se na le sample tseo u ka li sebelisang ho aha le ho profile sesebelisoa sa SYCL.

Ho profile kopo ea SYCL, etsa bonnete ba hore o bokella khoutu o sebelisa -gline-tafole-feela le -fdebug-info-for-profiling Intel oneAPI DPC++ Compiler dikgetho.

Ho bokella sampka kopo, etsa se latelang:

  1. E-ea ho sample directory.
    cd <sample_dir/VtuneProfiler/matrix_multiply>
  2. The multiply.cpp file foldareng ea src e na le liphetolelo tse 'maloa tsa katiso ea matrix. Kgetha mofuta ka ho lokisa mola o tsamaisanang wa #define MULTIPLY ka ho atisa.h.
  3. Theha sesebelisoa u sebelisa Make e tengfile:
    cmeke .
    etsa
    Sena se lokela ho hlahisa matrix.icpx -fsycl e sebetsang.
    Ho hlakola lenaneo, thaepa:
    hloekisa
    Sena se tlosa se phethisoang le ntho filetse bōpiloeng ke make command.

Etsa tlhahlobo ea GPU
Etsa tlhahlobo ea GPU ho Matrix sample.

  1. Qala VTune Profiler ka taelo ea vtune-gui.
  2. Tobetsa Morero o Mocha ho tsoa leqepheng la Kamohelo.
  3. Hlalosa lebitso le sebaka sa sample projeke ebe o tobetsa Create Project.
  4. Ka fenstereng ya WHAT, sheba ho matrix.icpx-fsycl file.
  5. Fensetereng ea HOW, tobetsa ea Intel-Get-Start-with-VTune-Profiler-06 Konopo ea ho batla 'me u khethe tlhahlobo ea GPU Compute/Media Hotspots ho tsoa sehlopheng sa Accelerators ho Sefate sa Tlhahlobo.
    Intel-Get-Start-with-VTune-Profiler-10
  6. Tobetsa konopo ea Qala ka tlase ho qala tlhahlobo ka likhetho tse khethiloeng esale pele.

Matha GPU Analysis ho tloha Command Line:

  1. Lokisetsa sistimi ho tsamaisa tlhahlobo ea GPU. Sheba Sistimi ea Seta bakeng sa Tlhahlobo ea GPU.
  2. Beha mefuta e fapaneng ea tikoloho bakeng sa lisebelisoa tsa Intel software:
    mohloli $ONEAPI_ROOT/setvars.sh
  3. Etsa tlhahlobo ea GPU Compute/Media Hotspots:
    vtune - bokella gpu-hotspots -r ./result_gpu-hotspots — ./matrix.icpx -fsycl
    Ho bona tlaleho ea kakaretso, thaepa:
    vtune -report kakaretso -r ./result_gpu-hotspots

VTune Profiler e bokella lintlha le ho hlahisa liphetho tsa tlhahlobo ho GPU Compute/Media Hotspots viewntlha. Fesetereng ea Kakaretso, bona lipalo-palo tsa tšebeliso ea lisebelisoa tsa CPU le GPU ho utloisisa hore na sesebelisoa sa hau se tlamahane le GPU. Fetolela fensetereng ea Graphics ho bona metrics ea mantlha ea CPU le GPU e emelang ts'ebetso ea khoutu ha nako e ntse e ea.

Qala ka Intel® VTune™ Profiler bakeng sa macOS *

Sebelisa VTune Profiler ho sistimi ea macOS ho etsa tlhahlobo ea sepheo se hole ho sistimi e seng ea macOS (Linux* kapa Android* feela) .

Ha o khone ho sebelisa VTune Profiler sebakeng sa macOS ka mabaka ana:

  • Profile sistimi ea macOS eo e kentsoeng ho eona.
  • Bokella data ho sistimi e hole ea macOS.

Ho sekaseka ts'ebetso ea Linux * kapa Android * e hole ho tsoa ho moamoheli oa macOS, etsa e 'ngoe ea mehato ena:

  • Matha VTune Profiler tlhahlobo ho sistimi ea macOS e nang le sistimi e hole e boletsoeng e le sepheo. Ha tlhahlobo e qala, VTune Profiler e hokela ho sistimi e hole ho bokella data, ebe e khutlisetsa liphetho ho moamoheli oa macOS bakeng sa viewng.
  • Etsa tlhahlobo ho sistimi e shebiloeng sebakeng sa heno 'me u kopise liphetho ho sistimi ea macOS bakeng sa viewho VTune Profiler.

Mehato e tokomaneng ena e nka sistimi e hole ea Linux mme e bokelle data ea ts'ebetso e sebelisa phihlello ea SSH ho tsoa VTune Profiler ho sistimi ea moamoheli ea macOS.

Pele O Qala

  1. Kenya Intel® VTune™ Profiler tsamaisong ea hau ea macOS *.
  2. Theha sesebelisoa sa hau sa Linux ka tlhaiso-leseling ea matšoao 'me ka mokhoa oa Tokollo ka lintlafatso tsohle tse lumelletsoeng. Bakeng sa tlhaiso-leseling e batsi, bona litlhophiso tsa komporo ho VTune Profiler thuso.
  3. Beha phihlello ea SSH ho tsoa ho sistimi e amohelang macOS ho ea ho sistimi e lebisitsoeng ea Linux ho sebetsa ka mokhoa o se nang password.

Mohato oa 1: Qala VTune Profiler

  1. Qala VTune Profiler ka taelo ea vtune-gui.
    Ka ho sa feleng, the ke /opt/intel/oneapi/.
  2. Ha GUI e bula, tobetsa NEW PROJECT skrineng sa Kamohelo.
  3. Ka lebokoseng la puisano la Create Project, bolela lebitso la morero le sebaka.
  4. Tobetsa Create Project.

Mohato oa 2: Hlophisa 'me u Mathe Analysis
Ka mor'a hore u thehe morero o mocha, fensetere ea Configure Analysis e tla bula ka mofuta oa tlhahlobo ea Performance Snapshot.
Tlhahlobo ena e fana ka tlhaloso e felletsengview ea litaba tse amang ts'ebetso ea kopo ea hau ho sistimi e reriloeng.

Intel-Get-Start-with-VTune-Profiler-11

  1. Fensetereng ea WHERE, khetha Remote Linux (SSH) 'me u hlalose mokhoa oa Linux oo u batlang ho o lebisa ho sebelisa username@ hostname[:port].
    VTune Profiler e hokela ho sistimi ea Linux mme e kenya sephutheloana seo u se batlang.
  2. Fensetereng ea WHAT, fana ka tsela ea ts'ebeliso ea hau ho sistimi e reriloeng ea Linux.
  3. Tobetsa konopo ea Qala ho tsamaisa Senepe sa Ts'ebetso ts'ebelisong.

Mohato oa 3: View le ho Hlahloba Lintlha tsa Ts'ebetso
Ha pokello ea data e felile, VTune Profiler e bonts'a liphetho tsa tlhahlobo ho sistimi ea macOS. Qala tlhahlobo ea hau fensetereng ea Summary. Mona, u bona ts'ebetso e felileview ea kopo ea hau.

The overview hangata e kenyelletsa metrics tse 'maloa hammoho le litlhaloso tsa tsona.

Intel-Get-Start-with-VTune-Profiler-12

  • A Atolosa metric ka 'ngoe bakeng sa lintlha tse felletseng mabapi le lintlha tse tlatsetsang.
  • B Metric e tšoailoeng e bontša boleng bo kantle ho sebaka se amohelehang/se tloaelehileng sa ts'ebetso. Sebelisa malebela a lisebelisoa ho utloisisa mokhoa oa ho ntlafatsa metric e tšoailoeng.
  • C Sheba tataiso ea litlhahlobo tse ling tseo u lokelang ho nahana ho li etsa nakong e tlang. Sefate sa Analysis se totobatsa likhothaletso tsena.

Mehato e Latelang
Performance Snapshot ke sebaka se setle sa ho qala ho fumana tlhahlobo e akaretsang ea ts'ebetso ea ts'ebeliso ka VTune Profiler.
E latelang, hlahloba hore na algorithm ea hau e hloka tokiso.

  1. Etsa Tlhahlobo ea Hotspots ts'ebelisong ea hau.
  2. Latela thuto ea Hotspots. Ithute mekhoa ea ho fumana molemo ka ho fetisisa tlhahlobong ea hau ea Hotspots.
  3. Hang ha algorithm ea hau e hlophisitsoe hantle, tsamaisa Snapshot ea Ts'ebetso hape ho lekanya liphetho le ho tseba lintlafatso tsa ts'ebetso libakeng tse ling.

Bona Hape
Tlhahlobo ea Microarchitecture

VTune Profiler Thuso Tour

Ithute haholoanyane
Tokomane / Tlhaloso

  • Bukana ea Mosebelisi
    Bukana ea Basebelisi ke litokomane tsa mantlha tsa VTune Profiler.
    HLOKOMELA
    U ka khoasolla mofuta o kantle ho marang-rang oa VTune Profiler litokomane.
  • Koetliso ea Inthaneteng
    Sebaka sa marang-rang sa koetliso ke sesebelisoa se setle sa ho ithuta metheo ea VTune Profiler ka litataiso tsa ho Qala, livideo, lithupelo, weblinars, le lingoliloeng tsa tekheniki.
  • Buka ea ho pheha
    Buka ea phepelo ea tlhahlobo ea ts'ebetso e nang le litlolo tsa ho tseba le ho rarolla mathata a ts'ebetso a tsebahalang a sebelisa mefuta ea tlhahlobo ho VTune Profiler.
  • Tataiso ea ho Kenya Windows | Linux | macOS mabotho
    Tataiso ea ho Kenya e na le litaelo tsa mantlha tsa ho kenya VTune Profiler le litaelo tsa tlhophiso ea kamora ho kenya bakeng sa bakhanni ba fapaneng le babokelli.
  • Lithupelo
    VTune Profiler lithupelo li tataisa mosebelisi e mocha ka likarolo tsa mantlha tse nang le sample kopo.
  • Lintlha tsa Phatlalatso
    Fumana leseli mabapi le mofuta oa morao-rao oa VTune Profiler, ho kenyelletsa tlhaloso e felletseng ea likarolo tse ncha, litlhoko tsa sistimi, le litaba tsa tekheniki tse rarollotsoeng.
    Bakeng sa mefuta e ikemetseng le ea lisebelisoa tsa VTune Profiler, utloisisa Litlhoko tsa Tsamaiso ea hona joale.

Litsebiso le Boitlamollo
Mahlale a Intel a ka hloka lisebelisoa tse thata tsa software, software kapa ts'ebetso.
Ha ho sehlahisoa kapa karolo e ka bolokehang ka botlalo.
Litšenyehelo tsa hau le liphetho li ka fapana.
© Intel Corporation. Intel, logo ea Intel, le matšoao a mang a Intel ke matšoao a khoebo a Intel Corporation kapa lithuso tsa eona. Mabitso a mang le mabitso a mang a ka nkoa e le thepa ea ba bang.
Intel, logo ea Intel, Intel Atom, Intel Core, Intel Xeon Phi, VTune le Xeon ke matšoao a khoebo a Intel Corporation ho la US le/kapa linaheng tse ling.
*Mabitso a mang le mabitso a mang a ka nkoa e le thepa ea ba bang.
Microsoft, Windows, le Windows logo ke matshwao a kgwebo, kapa matshwao a kgwebo a ngodisitsweng a Microsoft Corporation United States le/kapa dinaheng tse ding.
Java ke lets'oao la khoebo le ngolisitsoeng la Oracle le/kapa mekhatlo e amanang le eona.
OpenCL le logo ya OpenCL ke matshwao a kgwebo a Apple Inc. a sebediswang ka tumello ke Khronos.

Mahlale a Intel a ka hloka lisebelisoa tse thata tsa software, software kapa ts'ebetso.
Ha ho sehlahisoa kapa karolo e ka bolokehang ka botlalo.
Litšenyehelo tsa hau le liphetho li ka fapana.
© Intel Corporation. Intel, logo ea Intel, le matšoao a mang a Intel ke matšoao a khoebo a Intel Corporation kapa lithuso tsa eona. Mabitso a mang le mabitso a mang a ka nkoa e le thepa ea ba bang.
Intel, logo ea Intel, Intel Atom, Intel Core, Intel Xeon Phi, VTune le Xeon ke matšoao a khoebo a Intel Corporation ho la US le/kapa linaheng tse ling.
*Mabitso a mang le mabitso a mang a ka nkoa e le thepa ea ba bang.
Microsoft, Windows, le Windows logo ke matshwao a kgwebo, kapa matshwao a kgwebo a ngodisitsweng a Microsoft Corporation United States le/kapa dinaheng tse ding.
Java ke lets'oao la khoebo le ngolisitsoeng la Oracle le/kapa mekhatlo e amanang le eona.
OpenCL le logo ya OpenCL ke matshwao a kgwebo a Apple Inc. a sebediswang ka tumello ke Khronos.

Litokomane / Lisebelisoa

Intel Qala ka VTune Profiler [pdf] Bukana ea Mosebelisi
Qala ka VTune Profiler, Qala, ka VTune Profiler, VTune Profiler

Litšupiso

Tlohela maikutlo

Aterese ea hau ea lengolo-tsoibila e ke ke ea phatlalatsoa. Libaka tse hlokahalang li tšoailoe *