Intel-logo

intel oneAPI Math Kernel Library

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

Pib nrog Intel® oneAPI Math Kernel Library

Intel® oneAPI Math Kernel Library (oneMKL) pab koj ua tiav qhov kev ua tau zoo tshaj plaws nrog lub tsev qiv ntawv lej suav ntawm qhov ua tau zoo, feem ntau ua piv txwv rau CPU thiab GPU. Lub tsev qiv ntawv muaj C thiab Fortran interfaces rau feem ntau cov txheej txheem ntawm CPU, thiab DPC ++ cuam tshuam rau qee qhov kev ua haujlwm ntawm CPU thiab GPU. Koj tuaj yeem nrhiav kev txhawb nqa rau ntau qhov haujlwm lej hauv ntau qhov sib cuam tshuam nrog rau:

Rau C thiab Fortran ntawm CPU

  • Linear algebra
  • Fast Fourier Hloov pauv (FFT)
  • vector lej
  • Direct thiab iterative sparse solvers
  • Random tooj generators

Rau DPC ++ ntawm CPU thiab GPU (Saib rau Intel® oneAPI Math Kernel Library—Data Parallel C ++ Developer Reference kom paub meej ntxiv.)

  • Linear algebra
    • BLAS
    • Xaiv Sparse BLAS functionality
    • Xaiv LAPACK ua haujlwm
  • Fast Fourier Hloov pauv (FFT)
    • 1D, 2D, thiab 3D
  • Random tooj generators
    • Xaiv kev ua haujlwm
  • Xaiv Vector lej ua haujlwm

Ua ntej Koj Pib
Mus saib nplooj ntawv Tshaj Tawm rau Cov Teeb Meem Paub thiab cov ntaub ntawv tshiab tshaj plaws.
Mus saib Intel® oneAPI Math Kernel Library System Requirements nplooj ntawv rau cov kev xav tau ntawm cov kab ke.
Mus saib Tau Pib nrog Intel® oneAPI DPC ++/C ++ Compiler rau DPC ++ Compiler yuav tsum.

Kauj ruam 1: Nruab Intel® oneAPI Math Kernel Library
Download Intel® oneAPI Math Kernel Library los ntawm Intel® oneAPI Base Toolkit.
Rau Python distributions, xa mus rau Txhim Kho Intel® Distribution for Python* thiab Intel® Performance Libraries nrog pip thiab PyPI.
Rau Python distributions, nco ntsoov cov kev txwv hauv qab no:
Lub oneMKL devel pob (mkl-devel) rau PIP faib ntawm Linux * thiab macOS * tsis muab cov tsev qiv ntawv dynamic symlinks (yog xav paub ntxiv saib PIP GitHub qhov teeb meem #5919).
Nyob rau hauv cov ntaub ntawv ntawm dynamic lossis ib lub tsev qiv ntawv dynamic txuas nrog oneMKL devel pob (kom paub ntau ntxiv saib oneMKL Link Line Advisor ) koj yuav tsum hloov kho kab txuas nrog oneMKL cov tsev qiv ntawv tag nrho cov npe thiab cov qauv.
Xa mus rau Intel® oneAPI Math Kernel Library thiab pkg-config cuab yeej rau cov ntaub ntawv hais txog kev sau thiab txuas nrog cov cuab yeej pkg-config.
oneMKL link kab example nrog OneAPI Base Toolkit ntawm 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
    -lwm -l
    The oneMKL link kab example nrog PIP devel pob ntawm cov tsev qiv ntawv cov npe thiab cov qauv: Linux:
    icc app.obj ${MKLROOT}/lib/intel64/libmkl_intel_lp64.so.1 ${MKLROOT}/lib/intel64/libmkl_intel_thread.so.1 ${MKLROOT}/lib/intel64/libmkl_core.so.1 -thlpread -lwm -l
  • 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

Kauj Ruam 2: Xaiv Ib Txoj Haujlwm lossis Kev Ua Haujlwm
Xaiv ib txoj haujlwm lossis niaj hnub los ntawm oneMKL uas yog qhov zoo tshaj plaws rau koj qhov teeb meem. Siv cov peev txheej no:

Resource Link: Cov ntsiab lus

oneMKL Developer Guide for Linux *
oneMKL Developer Guide for Windows*
oneMKL Developer Guide for macOS*

Phau Ntawv Qhia Tus tsim tawm muaj cov ncauj lus kom ntxaws txog ntau lub ntsiab lus suav nrog:

  • Compiling thiab txuas cov ntawv thov
  • Tsim kev cai DLLs
  • Xov
  • Memory Management

oneMKL Developer Reference – C
Language oneMKL Developer Reference – Fortran Language
oneMKL Developer Reference – DPC ++ Lus

  • Tus tsim tawm Reference (hauv C, Fortran, thiab DPC ++ hom) muaj cov lus piav qhia ntxaws ntxaws ntawm cov haujlwm thiab qhov cuam tshuam rau txhua lub tsev qiv ntawv.

Intel® oneAPI Math Kernel Library Function Nrhiav Advisor

  • Siv LAPACK Function Nrhiav Tus Kws Pab Tswv Yim los tshawb txog LAPACK cov txheej txheem uas muaj txiaj ntsig zoo rau ib qho teeb meem tshwj xeeb. Rau example, yog tias koj teev ib qho haujlwm xws li:
    • Hom niaj hnub: xam
    • Computational teeb meem: Orthogonal factorization
    • Matrix hom: General
    • Kev Ua Haujlwm: Ua QR factorization

Kauj Ruam 3: Txuas Koj Cov Cai
Siv oneMKL Link Line Advisor los teeb tsa cov lus txib txuas raws li koj qhov kev pab cuam nta.
Qee qhov kev txwv thiab kev xav tau ntxiv:
Intel® oneAPI Math Kernel Library rau DPC ++ tsuas yog txhawb nqa siv mkl_intel_ilp64 interface lub tsev qiv ntawv thiab ntu ntu lossis TBB xov.

Rau DPC ++ interfaces nrog kev sib txuas zoo li qub ntawm Linux
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 ${MKLROOT}/lib/intel64/libmkl_sycl.a -Wl,–start-group ${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
Rau example, tsev/statically txuas main.cpp nrog ilp64 interfaces thiab TBB threading:
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 -I${MKLROOT}/include main.cpp $
{MKLROOT}/lib/intel64/libmkl_sycl.a -Wl,–start-group ${MKLROOT}/lib/intel64/
libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_tbb_thread.a ${MKLROOT}/lib/intel64/
libmkl_core.a -Wl,–end-group -L${TBBROOT}/lib/intel64/gcc4.8 -ltbb -lsycl -lOpenCL -lpthread -lm -ldl

Rau DPC ++ interfaces nrog dynamic txuas ntawm Linux
icpx -fsycl -DMKL_ILP64 -L$ {MKLROOT}/lib/intel64 -lmkl_sycl -lmkl_intel_ilp64 -lmkl_ -lmkl_core -lsycl -lOpenCL -lpthread -ldl -lm
Rau example, tsev/dynamically txuas main.cpp nrog ilp64 interfaces thiab TBB threading:
icpx -fsycl -DMKL_ILP64 -I${MKLROOT}/include main.cpp -L${MKLROOT}/lib/intel64 -lmkl_sycl -lmkl_intel_ilp64 -lmkl_tbb_thread -lmkl_core -lsycl -lOpenCL -ltbb -lpthread -lpthread

Rau DPC ++ interfaces nrog kev sib txuas zoo li qub ntawm 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
Rau example, tsev/statically txuas main.cpp nrog ilp64 interfaces thiab TBB threading:
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 mklread_core.libb .lib OpenCL.lib tbb.lib

Rau DPC ++ interfaces nrog dynamic txuas ntawm 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
Rau example, tsev/dynamically txuas main.cpp nrog ilp64 interfaces thiab TBB threading:
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 -I"%MKLROOT%\include" main.cpp "%MKLROOT%"\lib\intel64\mkl_sycl_dll.lib mkl_intel_ilp64_dll. ua tbb .lib sycl.lib OpenCL.lib

Rau C / Fortran Interfaces nrog OpenMP Offload Support
Siv C/Fotran Intel® oneAPI Math Kernel Library interfaces nrog OpenMP offload feature rau GPU.
Saib C OpenMP Offload Developer Guide kom paub meej ntxiv txog qhov no.
Ntxiv cov kev hloov pauv hauv qab no rau C / Fortran oneMKL compile / txuas kab kom pab tau OpenMP offload feature rau GPU:

  • Cov kev xaiv sib txuas ntxiv / txuas ntxiv: -fiopenmp -fopenmp-targets=spir64 -mllvm -vpo-paropt-use-raw-dev-ptr -fsycl
  • Ntxiv ib lub tsev qiv ntawv MKL: ib lub tsev qiv ntawv MKL DPC ++

Rau example, lub tsev / dynamically txuas main.cpp ntawm Linux nrog ilp64 interfaces thiab 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
Rau tag nrho lwm yam kev txhawb nqa, saib Intel® oneAPI Math Kernel Library Link Line Advisor.

Nrhiav ntxiv

Resource: piav qhia

Tutorial: Siv Intel® oneAPI Math Kernel Library rau Matrix Multiplication:

  • Tutorial – C Lus
  • Tutorial – Fortran Language

Qhov kev qhia no qhia tau hais tias koj tuaj yeem siv oneMKL li cas los muab cov matrices, ntsuas qhov ua tau zoo ntawm matrix multiplication, thiab tswj threading.

Intel® oneAPI Math Kernel Library (oneMKL) Tso Cov Lus Qhia tswj cov xov.
Cov ntawv tso tawm muaj cov ntaub ntawv tshwj xeeb rau qhov kev tso tawm tshiab kawg ntawm oneMKL suav nrog cov yam ntxwv tshiab thiab hloov pauv. Cov ntawv tso tawm suav nrog cov txuas mus rau cov ntaub ntawv tseem ceeb hauv online muaj feem cuam tshuam nrog kev tso tawm. Koj tseem tuaj yeem pom cov ntaub ntawv ntawm:

  • Dab tsi tshiab hauv kev tso tawm
  • Cov khoom txheem
  • Tau txais kev txhawb nqa
  • Daim ntawv tso cai txhais

Intel® oneAPI Math Kernel Library
Intel® oneAPI Math Kernel Library (oneMKL) nplooj ntawv khoom. Saib nplooj ntawv no rau kev txhawb nqa thiab cov ntaub ntawv online.

Intel® oneAPI Math Kernel Library Cookbook
Intel® oneAPI Math Kernel Library muaj ntau txoj hauv kev los pab koj daws ntau yam teeb meem ntawm tus lej, xws li kev sib faib cov lej, daws cov kab ke sib npaug, thiab ua qhov Fourier hloov pauv.

Sau ntawv rau Intel® oneAPI Math Kernel Library Vector Statistics
Cov ntaub ntawv no suav nrog kev tshaj tawmview, ib qho qauv siv thiab kev sim cov txiaj ntsig ntawm cov lej random generators suav nrog VS.

Intel® oneAPI Math Kernel Library Vector Statistics Random Number Generator Performance Data
Cov ntaub ntawv kev ua tau zoo tau txais kev siv vector txheeb cais (VS) random tooj generator (RNG) suav nrog CPE ( moos ib lub caij) chav ntsuas, qhov yooj yim random naj npawb generators (BRNG), generated tis generators, thiab ntev ntawm generated vectors.

Intel® oneAPI Math Kernel Library Vector Mathematics Performance and Accuracy Data
Vector Mathematics (VM) suav cov haujlwm tseem ceeb ntawm vector sib cav. VM suav nrog cov txheej txheem ntawm kev ua kom zoo tshaj plaws ntawm kev suav cov lej tseem ceeb ntawm kev ua lej (lub zog, trigonometric, exponential, hyperbolic, thiab lwm yam) uas ua haujlwm ntawm vectors.

Daim Ntawv Ceeb Toom rau Intel® oneAPI Math Kernel Cov Tsev Qiv Ntawv Cov Ntsiab Lus
Summary Statistics yog ib feem ntawm Vector Statistics domain ntawm Intel® oneAPI Math Kernel Library. Summary Statistics muab koj cov haujlwm rau kev txheeb xyuas thawj zaug, thiab muab cov kev daws teeb meem rau kev ua tib yam ntawm cov ntaub ntawv ntau yam.

LAPACK Examples
Cov ntaub ntawv no muab code examples rau ib MKL LAPACK (Linear Algebra PACKage) routines.

Cov ntawv ceeb toom thiab tsis lees paub
Software thiab workloads siv nyob rau hauv kev ntsuam xyuas kev ua tau zoo tej zaum yuav tau optimized rau kev ua tau zoo nkaus xwb ntawm Intel microprocessors. Kev ntsuas kev ua tau zoo, xws li SYSmark thiab MobileMark, yog ntsuas siv cov tshuab computer tshwj xeeb, cov khoom siv, software, kev ua haujlwm thiab kev ua haujlwm. Ib qho kev hloov pauv rau ib qho ntawm cov xwm txheej no yuav ua rau cov txiaj ntsig sib txawv. Koj yuav tsum sab laj nrog lwm cov ntaub ntawv thiab kev ntsuas kev ua tau zoo los pab koj hauv kev ntsuas koj qhov kev xav txog kev yuav khoom, suav nrog kev ua haujlwm ntawm cov khoom ntawd thaum ua ke nrog lwm cov khoom. Yog xav paub ntxiv mus xyuas www.intel.com/benchmarks.
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.

Cov ntaub ntawv khoom thiab kev ua haujlwm
Kev ua tau zoo sib txawv los ntawm kev siv, teeb tsa thiab lwm yam. Kawm ntxiv ntawm www.Intel.com/PerformanceIndex.
Daim ntawv thov hloov kho #20201201
Tsis muaj daim ntawv tso cai (qhia los yog hais, los ntawm estoppel los yog lwm yam) rau ib qho kev txawj ntse muaj cai tau tso cai los ntawm daim ntawv no.
Cov khoom uas tau piav qhia yuav muaj cov qauv tsim los yog qhov yuam kev hu ua errata uas tuaj yeem ua rau cov khoom sib txawv ntawm cov lus tshaj tawm. Tam sim no tus yam ntxwv errata muaj nyob rau ntawm kev thov.
Intel tsis lees paub txhua qhov kev lees paub thiab kev lees paub, suav nrog yam tsis muaj kev txwv, kev lees paub ntawm kev ua lag luam, kev nyab xeeb rau lub hom phiaj tshwj xeeb, thiab tsis ua txhaum cai, nrog rau txhua qhov kev lees paub tshwm sim los ntawm kev ua tau zoo, kev lag luam, lossis kev siv hauv kev lag luam.

Cov ntaub ntawv / Cov ntaub ntawv

intel oneAPI Math Kernel Library [ua pdf] Cov neeg siv phau ntawv qhia
oneAPI Math Kernel Library, Math Kernel Library, Kernel Library, Tsev qiv ntawv

Cov ntaub ntawv

Cia ib saib

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