intel-logo

Intel oneAPI Math Kernel Library

intel-oneAPI-Math-Kernel-Library-product-image

Qala ka Intel® oneAPI Math Kernel Library

Laeborari ea Intel® oneAPI Math Kernel (oneMKL) e u thusa ho fihlela ts'ebetso e phahameng ka ho fetisisa ka laeborari ea khomphutha ea lipalo e ntlafalitsoeng haholo, e bapisoang haholo le CPU le GPU. Laeborari e na le likhokahano tsa C le Fortran bakeng sa litloaelo tse ngata ho CPU, le likhokahano tsa DPC++ bakeng sa litloaelo tse ling ho CPU le GPU ka bobeli. U ka fumana tšehetso e felletseng bakeng sa ts'ebetso e 'maloa ea lipalo libakeng tse fapaneng tse kenyelletsang:

Bakeng sa C le Fortran ho CPU

  • Linear algebra
  • Fast Fourier Transforms (FFT)
  • Lipalo tsa Vector
  • Li-sparse solvers tse tobileng le tse pheta-phetoang
  • Lijenereithara tsa linomoro tse sa reroang

Bakeng sa DPC++ ho CPU le GPU (Sheba Intel® oneAPI Math Kernel Library—Data Parallel C++ Developer Reference bakeng sa lintlha tse ling.)

  • Linear algebra
    • TLHOKOMELO
    • Ts'ebetso e khethiloeng ea Sparse BLAS
    • Ts'ebetso e khethiloeng ea LAPACK
  • Fast Fourier Transforms (FFT)
    • 1D, 2D, le 3D
  • Lijenereithara tsa linomoro tse sa reroang
    • Ts'ebetso e khethiloeng
  • Ts'ebetso e khethiloeng ea Vector Math

Pele O Qala
Etela leqephe la Lintlha tsa Phatlalatso bakeng sa Litaba Tse Tsejoang le lintlha tsa morao-rao.
Etela leqephe la Litlhoko tsa Sisteme ea Laeborari ea Intel® oneAPI ea Math Kernel bakeng sa litlhoko tsa sistimi.
Etela Tsela ea ho Qala ka Intel® oneAPI DPC++/C++ Compiler bakeng sa litlhoko tsa DPC++ Compiler.

Mohato oa 1: Kenya Intel® oneAPI Math Kernel Library
Khoasolla Intel® oneAPI Math Kernel Library ho tsoa ho Intel® oneAPI Base Toolkit.
Bakeng sa kabo ea Python, bua ka Ho kenya Intel® Distribution bakeng sa Python* le Intel® Performance Libraries ka pip le PyPI.
Bakeng sa lipehelo tsa Python, hlokomela moeli o latelang:
The oneMKL devel package (mkl-devel) bakeng sa kabo ea PIP ho Linux* le macOS* ha e fane ka li-symlink tsa lilaebrari tse matla (bakeng sa tlhaiso-leseling e batsi, bona khatiso ea PIP GitHub #5919).
Tabeng ea laeborari e matla kapa e le 'ngoe e hokahantsoeng le sephutheloana se le seng sa MKL (bakeng sa tlhaiso-leseling e batsi, sheba OneMKL Link Line Advisor ) u tlameha ho fetola khokahanyo ka lilaebrari tse le 'ngoe tsa MKL mabitso le liphetolelo tse felletseng.
Sheba ho Intel® oneAPI Math Kernel Library le sesebelisoa sa pkg-config bakeng sa tlhahisoleseling mabapi le ho hlophisa le ho hokahanya le sesebelisoa sa pkg-config.
OneMKL line line example ka OneAPI Base Toolkit ka li-symlinks:

  • Linux:
    icc app.obj -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64-lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl
  • macOS:
    icc app.obj -L${MKLROOT}/lib -Wl,-rpath,${MKLROOT}/lib-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread
    -lm -ldl
    Mohala oa lihokelo oa oneMKL example e nang le sephutheloana sa ntlafatso ea PIP ka lilaebrari mabitso le liphetolelo tse felletseng: Linux:
    icc app.obj ${MKLROOT}/lib/intel64/libmkl_intel_lp64.so.1 ${MKLROOT}/lib/intel64/libmkl_intel_thread.so.1 ${MKLROOT}/lib/intel64/libmkl_liomp1 -5read. -lm -ldl
  • macOS:
    icc app.obj -Wl,-rpath,${MKLROOT}/lib${MKLROOT}/lib/intel64/libmkl_intel_lp64.1.dylib $ {MKLROOT}/lib/intel64/libmkl_intel_thread.1.dylib
    ${MKLROOT}/lib/intel64/libmkl_core.1.dylib -liomp5 -lpthread -lm-ldl

Mohato oa 2: Khetha Mosebetsi kapa Kemiso
Khetha tšebetso kapa tloaelo ho oneMKL e loketseng bothata ba hau. Sebelisa lisebelisoa tsena:

Sehokelo sa Lisebelisoa: Litaba

OneMKL Developer Guide for Linux*
OneMKL Developer Guide for Windows*
Tataiso ea OneMKL Developer for macOS*

The Developer Guide e na le lintlha tse qaqileng ka lihlooho tse 'maloa ho kenyeletsa:

  • Ho bokella le ho hokahanya lits'ebetso
  • Ho aha li-DLL tse tloaelehileng
  • Khoele
  • Tsamaiso ea Mehopolo

OneMKL Developer Reference - C
Puo ea OneMKL Reference Developer – Fortran Puo
OneMKL Developer Reference – DPC++ Language

  • Reference Developer (ka liforomo tsa C, Fortran, le DPC++) e na le litlhaloso tse qaqileng tsa mesebetsi le li-interfaces bakeng sa libaka tsohle tsa laeborari.

Intel® oneAPI Math Kernel Library Function Advisor

  • Sebelisa Moeletsi oa ho Fumana Mosebetsi oa LAPACK ho hlahloba mekhoa ea LAPACK e thusang bothateng bo itseng. Bakeng sa mohlalaample, haeba o bolela ts'ebetso joalo ka:
    • Mofuta oa kemiso: Ea khomphutha
    • Bothata ba computational: Orthogonal factorization
    • Mofuta oa matrix: Kakaretso
    • Tshebetso: Etsa QR factorization

Mohato oa 3: Kopanya Khoutu ea Hau
Sebelisa OneMKL Link Line Advisor ho hlophisa taelo ea sehokelo ho latela likarolo tsa lenaneo la hau.
Meeli e meng le litlhoko tse ling:
Intel® oneAPI Math Kernel Library bakeng sa DPC++ e ts'ehetsa feela ho sebelisa laeborari ea li-interface tsa mkl_intel_ilp64 le tatellano ea tatellano kapa ea TBB.

Bakeng sa likhokahano tsa DPC++ tse nang le khokahano e tsitsitseng ho Linux
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 ${MKLROOT}/lib/intel64/libmkl_sycl.a -Wl,–qala-sehlopha ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/
libmkl_ .a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,–end-group -lsycl -lOpenCL -lpthread -ldl -lm
Bakeng sa mohlalaample, ho aha/ho hokahanya ka mokhoa o tsitsitseng main.cpp le li-interface tsa ilp64 le likhoele tsa TBB:
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 -I${MKLROOT}/kenyelletsa main.cpp $
{MKLROOT}/lib/intel64/libmkl_sycl.a -Wl,–qala sehlopha ${MKLROOT}/lib/intel64/
libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_tbb_thread.a ${MKLROOT}/lib/intel64/
libmkl_core.a -Wl,–ho qetela sehlopha -L${TBBROOT}/lib/intel64/gcc4.8 -ltbb -lsycl -lOpenCL -lpthread -lm -ldl

Bakeng sa likhokahano tsa DPC++ tse nang le khokahano e matla ho Linux
icpx -fsycl -DMKL_ILP64 -L$ {MKLROOT}/lib/intel64 -lmkl_sycl -lmkl_intel_ilp64 -lmkl_ -lmkl_core -lsycl -lOpenCL -lpthread -ldl -lm
Bakeng sa mohlalaample, ho aha/ho hokahanya ka matla main.cpp le li-interface tsa ilp64 le likhoele tsa TBB:
icpx -fsycl -DMKL_ILP64 -I${MKLROOT}/kenyelletsa ka sehloohong.cpp -L${MKLROOT}/lib/intel64 -lmkl_sycl -lmkl_intel_ilp64 -lmkl_tbb_thread -lmkl_core -lsycl -llpthlmread -llpthread

Bakeng sa likhokahano tsa DPC++ tse nang le khokahano e tsitsitseng ho Windows
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 “%MKLROOT%”\lib\intel64\mkl_sycl.lib
mkl_intel_ilp64.lib mkl_ .lib mkl_core_lib sycl.lib OpenCL.lib
Bakeng sa mohlalaample, ho aha/ho hokahanya ka mokhoa o tsitsitseng main.cpp le li-interface tsa ilp64 le likhoele tsa TBB:
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 -I”%MKLROOT%\include” main.cpp”%MKLROOT%”\lib\intel64\mkl_sycl.lib mkl_intel_ilp64_lib mbkl-core. .lib OpenCL.lib tbb.lib

Bakeng sa likhokahano tsa DPC++ tse nang le khokahano e matla ho Windows
icpx -fsycl -DMKL_ILP64 “%MKLROOT%”\lib\intel64\mkl_sycl_dll.lib mkl_intel_ilp64_dll.lib mkl_ _dll.lib mkl_core_dll.lib tbb.lib sycl.lib OpenCL.lib
Bakeng sa mohlalaample, ho aha/ho hokahanya ka matla main.cpp le li-interface tsa ilp64 le likhoele tsa TBB:
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 -I”%MKLROOT%\include” main.cpp “%MKLROOT%”\lib\intel64\mkl_sycl_dll.lib mkl_intel_ilp64b_blkdl. dll.lib tbb .lib sycl.lib OpenCL.lib

Bakeng sa li-interface tsa C/Fortran tse nang le tšehetso ea OpenMP Offload
Sebelisa marang-rang a C/Fotran Intel® oneAPI Math Kernel Library e nang le karolo ea OpenMP e theolelang ho GPU.
Sheba Tataiso ea Moqapi oa C OpenMP Offload bakeng sa lintlha tse ling mabapi le karolo ena.
Eketsa liphetoho tse latelang ho C/Fortran oneMKL compile/link line ho nolofalletsa karolo ea OpenMP ea ho theola GPU ho GPU:

  • Likhetho tse ling tsa ho bokella / lihokelo: -fiopenmp -fopenmp-targets=spir64 -mllvm -vpo-paropt-use-raw-dev-ptr -fsycl
  • Laeborari e 'ngoe ea MKL e le 'ngoe: laebrari e le 'ngoe ea MKL DPC++

Bakeng sa mohlalaample, building/ dynamically linking main.cpp ho Linux le ilp64 interfaces le OpenMP threading:
icx -fiopenmp -fopenmp-targets=spir64 -mllvm -vpo-paropt-use-raw-dev-ptr -fsycl -DMKL_ILP64 -m64 -I$(MKLROOT)/include main.cpp L${MKLROOT}/lib/intel64 - lmkl_sycl -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lsycl -lOpenCL -lstdc++ -lpthread -lm -ldl
Bakeng sa litlhophiso tse ling tsohle tse tšehetsoeng, bona Intel® oneAPI Math Kernel Library Link Advisor.

Fumana Tse ling

Mohloli: Tlhaloso

Thuto: Ho Sebelisa Laeborari ea Math Kernel ea Intel® oneAPI bakeng sa Katiso ea Matrix:

  • Thuto – C Puo
  • Thuto - Puo ea Fortran

Thupelo ena e bonts'a mokhoa oa ho sebelisa oneMKL ho atisa matrices, ho lekanya ts'ebetso ea katiso ea matrix, le ho laola khoele.

Intel® oneAPI Math Kernel Library (oneMKL) Release Notes control threading.
Lintlha tsa tokollo li na le tlhahisoleseling e ikhethileng tokollong ea morao-rao ea oneMKL ho kenyelletsa likarolo tse ncha le tse fetotsoeng. Lintlha tsa tokollo li kenyelletsa likhokahano tsa lisebelisoa tsa mantlha tsa tlhahisoleseling tse amanang le tokollo. U ka boela ua fumana lintlha ho:

  • Ke eng e ncha tokollong
  • Likahare tsa sehlahisoa
  • Ho fumana tšehetso ea tekheniki
  • Litlhaloso tsa laesense

Intel® oneAPI Math Kernel Library
The Intel® oneAPI Math Kernel Library (oneMKL) leqephe la sehlahisoa. Sheba leqephe lena bakeng sa tšehetso le litokomane tsa inthaneteng.

Intel® oneAPI Math Kernel Library Cookbook
Intel® oneAPI Math Kernel Library e na le mekhoa e mengata ea ho u thusa ho rarolla mathata a fapaneng a lipalo, joalo ka ho atisa matrices, ho rarolla tsamaiso ea lipalo, le ho etsa phetoho ea Fourier.

Lintlha tsa Intel® oneAPI Math Kernel Library Vector Statistics
Tokomane ena e kenyelletsa ho fetaview, mohlala oa tšebeliso le liphetho tsa liteko tsa lijenereithara tsa linomoro tse sa reroang tse kenyellelitsoeng ho VS.

Intel® oneAPI Math Kernel Library Vector Statistics Random Number Generator Performance Data
Lintlha tsa ts'ebetso tse fumanoeng ho sebelisoa lipalo-palo tsa vector (VS) jenereithara ea linomoro tse sa reroang (RNG) ho kenyeletsoa CPE (lioache ka element) yuniti ea tekanyo, lijenereithara tsa linomoro tsa mantlha (BRNG), lijenereithara tse hlahisoang, le bolelele ba li-vector tse hlahisitsoeng.

Intel® oneAPI Math Kernel Library Vector Mathematics Performance and Accuracy Data
Vector Mathematics (VM) e kopanya mesebetsi ea mantlha mabapi le likhang tsa vector. VM e kenyelletsa ts'ebetsong e ntlafalitsoeng haholo ea mesebetsi ea mantlha ea lipalo e turang (matla, trigonometric, exponential, hyperbolic, le tse ling) tse sebetsang ho li-vector.

Lintlha tsa Kopo bakeng sa Lipalopalo tsa Kakaretso ea Laeborari ea Math Kernel ea Intel® oneAPI
Kakaretso ea Lipalopalo ke karoloana ea sebaka sa Vector Statistics sa Intel® oneAPI Math Kernel Library. Summary Statistics e u fa mesebetsi bakeng sa tlhahlobo ea lipalo-palo ea pele, 'me e fana ka litharollo bakeng sa ts'ebetso e ts'oanang ea li-database tsa mefuta e mengata.

LAPACK Examples
Tokomane ena e fana ka khoutu exampbakeng sa mekhoa e le 'ngoe ea MKL LAPACK (Linear Algebra PACKage).

Litsebiso le Boitlamollo
Software le mesebetsi e mengata e sebelisitsoeng litekong tsa ts'ebetso e kanna ea ntlafatsoa bakeng sa ts'ebetso feela ho Intel microprocessors. Liteko tsa ts'ebetso, joalo ka SYSmark le MobileMark, li lekantsoe ho sebelisoa lisebelisoa tse itseng tsa komporo, likarolo, software, ts'ebetso le mesebetsi. Phetoho efe kapa efe ho efe kapa efe ea lintlha tseo e ka etsa hore liphetho li fapane. U lokela ho shebana le lintlha tse ling le liteko tsa ts'ebetso ho u thusa ho hlahloba ka botlalo lintho tseo u li rekileng, ho kenyelletsa le ts'ebetso ea sehlahisoa seo ha se kopantsoe le lihlahisoa tse ling. Ho fumana lintlha tse felletseng etela www.intel.com/benchmarks.
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.

Tlhahisoleseding ea Sehlahisoa le Ts'ebetso
Ts'ebetso e fapana ho latela ts'ebeliso, tlhophiso le lintlha tse ling. Ithute haholoanyane ho www.Intel.com/PerformanceIndex.
Tsebiso ntlafatso #20201201
Ha ho laesense (e boletsoeng kapa e boletsoeng, ka estoppel kapa ka tsela e 'ngoe) ea litokelo life kapa life tsa thepa ea mahlale e fanoeng ke tokomane ena.
Lihlahisoa tse hlalositsoeng li ka ba le mathata a moralo kapa liphoso tse tsejoang e le errata tse ka etsang hore sehlahisoa se khelohe ho latela litlhaloso tse hatisitsoeng. Liphetoho tsa hajoale tse tsebahalang li fumaneha ka kopo.
Intel e latola litiisetso tsohle tse hlakileng le tse boletsoeng, ho kenyeletsoa ntle le meeli, litiisetso tse boletsoeng tsa thekiso, ho phela hantle bakeng sa morero o itseng, le ho se tlole molao, hammoho le tiisetso efe kapa efe e hlahisoang ke ts'ebetso, khoebo, kapa ts'ebeliso ea khoebo.

Litokomane / Lisebelisoa

Intel oneAPI Math Kernel Library [pdf] Bukana ea Mosebelisi
OneAPI Math Kernel Library, Math Kernel Library, Kernel Library, Library

Litšupiso

Tlohela maikutlo

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