intel oneAPI Math Kernel Library Aratohu Kaiwhakamahi

intel-oneAPI-Math-Kernel-Library-featured-image

intel-logo

intel oneAPI Math Kernel Library

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

Tīmatahia me Intel® oneAPI Math Kernel Library

Ko te Intel® oneAPI Math Kernel Library (oneMKL) ka awhina i a koe ki te whakatutuki i nga mahi morahi me te whare pukapuka rorohiko pangarau o nga mahinga tino arotau, tino whakarara mo te PTM me te GPU. Kei te whare pukapuka nga hononga C me Fortran mo te nuinga o nga mahinga i runga i te PTM, me nga hononga DPC++ mo etahi mahinga i runga i te PTM me te GPU. Ka kitea e koe he tautoko matawhānui mo te maha o nga mahi pangarau i roto i nga momo atanga tae atu ki:

Mo C me Fortran i runga i te PTM

  • Taurangi rārangi
  • Huringa Waawha Tere (FFT)
  • Pāngarau Vector
  • Ko nga kaiwhakatikatika mokowhiti me te tauhou
  • Kaihanga tau tupurangi

Mo te DPC++ mo te PTM me te GPU (Tirohia ki te Intel® oneAPI Math Kernel Library—Raraunga Whakarara C++ Tohutoro Kaiwhakawhanake mo etahi atu taipitopito.)

  • Taurangi rārangi
    • BLAS
    • Kua tohua te mahi Sparse BLAS
    • Kua tohua te mahi LAPACK
  • Huringa Waawha Tere (FFT)
    • 1D, 2D, me te 3D
  • Kaihanga tau tupurangi
    • Taumahinga kua tohua
  • Kua tīpakohia te taumahinga Pāngarau Vector

I mua i to tiimata
Tirohia te wharangi Panui Panui mo nga take e mohiotia ana me nga korero tino hou.
Tirohia te wharangi Whakaritenga Pūnaha o te Intel® oneAPI Math Kernel Library mo nga whakaritenga o te punaha.
Tirohia te Timata me te Intel® oneAPI DPC++/C++ Compiler mo DPC++ Compiler whakaritenga.

Hipanga 1: Tāuta Intel® oneAPI Math Kernel Library
Tikiake Intel® oneAPI Math Kernel Library mai i te Intel® oneAPI Base Toolkit.
Mo nga tohatoha Python, tirohia te Whakauru i te Intel® Distribution for Python* me Intel® Performance Libraries me te pip me te PyPI.
Mo nga tohatoha Python, tirohia te herenga e whai ake nei:
Ko te kete oneMKL devel (mkl-devel) mo te tohatoha PIP i runga i te Linux* me te macOS* karekau e whakarato i nga hononga hono whare pukapuka hihiri (mo etahi atu korero tirohia te take PIP GitHub #5919).
I te take o te whare pukapuka hihiri, kotahi ranei e hono ana ki te oneMKL devel package (mo etahi atu korero tirohia te Kaitohutohu Raina Hononga OneMKL ) me whakarereke koe i te raina hono me nga whare pukapuka oneMKL nga ingoa katoa me nga putanga.
Tirohia te Intel® oneAPI Math Kernel Library me te taputapu pkg-config mo nga korero mo te whakahiato me te hono ki te taputapu pkg-config.
oneMKL raina hono exampme te OneAPI Base Toolkit ma nga 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
    Ko te raina hono oneMKL exampme te PIP devel package ma nga whare pukapuka nga ingoa katoa me nga putanga: 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 -liomp5 -lpthread -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

Hipanga 2: Tīpakohia he Mahi, Mahi ranei
Tīpakohia he mahi, he mahinga ranei mai i tetahiMKL e pai ana mo to raru. Whakamahia enei rauemi:

Hononga Rauemi: Ihirangi

OneMKL Kaiwhakawhanake Aratohu mo Linux*
OneMKL Kaiwhakawhanake Aratohu mo Windows*
OneMKL Kaiwhakawhanake Aratohu mo te macOS*

Kei roto i te Aratohu Kaiwhakawhanake nga korero mo nga kaupapa maha tae atu ki:

  • Te whakahiato me te hono i nga tono
  • Te hanga DLL ritenga
  • Miro
  • Whakahaere Maharahara

OneMKL Kaiwhakawhanake Tohutoro – C
Reo oneMKL Developer Reference – Fortran Language
OneMKL Kaiwhakawhanake Tohutoro - DPC++ Reo

  • Ko te Tohutoro Kaiwhakawhanake (kei roto i nga whakatakotoranga C, Fortran, me DPC++) he whakamaarama taipitopito mo nga mahi me nga atanga mo nga rohe whare pukapuka katoa.

Intel® oneAPI Math Kernel Library Taumahi Kimi Kaitohutohu

  • Whakamahia te Kaitohutohu Rapu Mahi LAPACK ki te tuhura i nga mahinga LAPACK e whai hua ana mo tetahi raruraru. Mo te example, mena ka tohua e koe he mahi penei:
    • Momo mahinga: Computational
    • Rapanga rorohiko: Tauwehenga Orthogonal
    • Momo matrix: General
    • Mahi: Mahihia te tauwehenga QR

Hipanga 3: Honoa to Waehere
Whakamahia te Kaitohutohu Raina Hononga oneMKL ki te whirihora i te tono hono kia rite ki nga ahuatanga o to hotaka.
Ko etahi here me etahi atu whakaritenga:
Intel® oneAPI Math Kernel Library mo DPC++ e tautoko ana i te whakamahi i te whare pukapuka atanga mkl_intel_ilp64 me te miro raupapa, TBB ranei.

Mo nga atanga DPC++ me te hono pateko i runga i te Linux
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 ${MKLROOT}/lib/intel64/libmkl_sycl.a -Wl,–tīmata-rōpū ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/
libmkl_ .a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,–roopu-mutunga -lsycl -lOpenCL -lpthread -ldl -lm
Mo te example, te hanga/te hono i te main.cpp me nga atanga ilp64 me te miro TBB:
icpx -fsycl -fsycl-device-code-split=per_kernel -DMKL_ILP64 -I${MKLROOT}/include main.cpp $
{MKLROOT}/lib/intel64/libmkl_sycl.a -Wl,–tīmata-rōpū ${MKLROOT}/lib/intel64/
libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_tbb_thread.a ${MKLROOT}/lib/intel64/
libmkl_core.a -Wl,–roopu-mutunga -L${TBBROOT}/lib/intel64/gcc4.8 -ltbb -lsycl -lOpenCL -lpthread -lm -ldl

Mo nga atanga DPC++ me te hono hihiri ki runga Linux
icpx -fsycl -DMKL_ILP64 -L$ {MKLROOT}/lib/intel64 -lmkl_sycl -lmkl_intel_ilp64 -lmkl_ -lmkl_core -lsycl -lOpenCL -lpthread -ldl -lm
Mo te exampte, hanga/whakahonohono kaha mai i te main.cpp me nga atanga ilp64 me te miro TBB:
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 -ldl

Mo nga atanga DPC++ me te hono pateko ki 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
Mo te example, te hanga/te hono i te main.cpp me nga atanga ilp64 me te miro 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 mkl_tbb_thread.lib sy mkcl .lib OpenCL.lib tbb.lib

Mo nga atanga DPC++ me te hono hihiri ki runga 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
Mo te exampte, hanga/whakahonohono kaha mai i te main.cpp me nga atanga ilp64 me te miro 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_ilp64_dll.libth mkl_tbb.libth mkl_tbb_libth .lib sycl.lib OpenCL.lib

Mo nga Atanga C/Fortran me te tautoko OpenMP Offload
Whakamahia nga atanga C/Fotran Intel® oneAPI Math Kernel Library me te waahanga OpenMP offload ki te GPU.
Tirohia te C OpenMP Offload Developer Guide mo etahi atu korero mo tenei ahuatanga.
Taapirihia nga huringa e whai ake nei ki te C/Fortran oneMKL whakahiato / raina hono kia taea ai te waahanga OpenMP offload ki te GPU:

  • Ko nga whiringa taapiri / hono taapiri: -fiopenmp -fopenmp-targets=spir64 -mllvm -vpo-paropt-use-raw-dev-ptr -fsycl
  • Ētahi atu whare pukapuka oneMKL: oneMKL DPC++ whare pukapuka

Mo te exampte, hanga/ hono hihiri te main.cpp i runga i te Linux me nga atanga ilp64 me te miro OpenMP:
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
Mo etahi atu whirihoranga e tautokohia ana, tirohia te Kaitohutohu Raina Hononga a Intel® oneAPI Math Kernel Library.

Kimihia atu

Rauemi: Whakaahuatanga

Akoranga: Whakamahi Intel® oneAPI Math Kernel Library mo te Whakarea Matrix:

  • Akoranga – C Language
  • Akoranga – Fortran Language

Ko tenei akoranga e whakaatu ana me pehea e taea ai e koe te whakamahi oneMKL ki te whakarea i nga matrices, te ine i te mahi o te whakareatanga matrix, me te whakahaere miro.

Intel® oneAPI Math Kernel Library (oneMKL) Release Notes mana miro.
Kei roto i nga korero tuku nga korero mo te tukunga hou o te oneMKL tae atu ki nga ahuatanga hou me te whakarereke. Kei roto i nga korero tuku nga hononga ki nga rauemi korero ipurangi matua e pa ana ki te tukunga. Ka kitea hoki e koe nga korero mo:

  • He aha nga mea hou i roto i te tukunga
  • Nga ihirangi hua
  • Te whiwhi tautoko hangarau
  • Nga whakamaramatanga raihana

Intel® oneAPI Math Kernel Library
Te wharangi hua Intel® oneAPI Math Kernel Library (oneMKL). Tirohia tenei wharangi mo te tautoko me nga tuhinga ipurangi.

Intel® oneAPI Math Kernel Library Cookbook
He maha nga mahinga a Intel® oneAPI Math Kernel Library hei awhina i a koe ki te whakaoti rapanga tau, penei i te whakarea matrices, te whakaoti i te punaha wharite, me te mahi i te huringa Fourier.

Tuhipoka mo Intel® oneAPI Math Kernel Library Vector Tatauranga
Kei roto i tenei tuhinga he overview, he tauira whakamahi me nga hua whakamatautau o nga kaihanga tau matapōkere kei roto i te VS.

Intel® oneAPI Math Kernel Library Vector Tatauranga Random Number Generator Performance Raraunga
Ko nga raraunga mahi i whiwhi ma te whakamahi i nga tatauranga wetewete (VS) whakangao tau matapōkere (RNG) tae atu ki te CPE (karaka mo ia huānga) waeine ine, nga kaihanga tau matapōkere taketake (BRNG), nga kaihanga tohatoha kua hangaia, me te roa o nga vectors hanga.

Intel® oneAPI Math Kernel Library Vector Mathematics Mahinga me te Raraunga Tika
Ka tātaihia e te Pāngarau Vector (VM) nga mahi tuatahi i runga i nga tohenga vector. Kei roto i te VM he huinga whakatinanatanga tino arotau o nga mahi pangarau matua utu nui (te hiko, te pakoko, te taupū, te hyperbolic, me etahi atu) e mahi ana i runga i nga vectors.

Panui Tono mo Intel® oneAPI Math Kernel Library Whakarāpopototanga Tatauranga
Whakarāpopototanga Ko te Tatauranga he waahanga iti o te rohe Tatauranga Vector o Intel® oneAPI Math Kernel Library. Whakarāpopototanga Tatauranga e whakarato ana ki a koe nga mahi mo te tātari tauanga tuatahi, me te tuku otinga mo te tukatuka whakarara o nga huingararaunga ahu-maha.

LAPACK Examples
Ka hoatu e tenei tuhinga te waehere examples for oneMKL LAPACK (Linear Algebra PACKage) mahinga.

Nga Panui me nga Whakakahoretanga
Ko nga raupaparorohiko me nga kawenga mahi i whakamahia i roto i nga whakamatautau mahi kua arotauhia pea mo te mahi i runga i nga miihini miihini Intel anake. Ko nga whakamatautau mahi, penei i te SYSmark me te MobileMark, ka inehia ma te whakamahi i nga punaha rorohiko motuhake, nga waahanga, nga punaha, nga mahi me nga mahi. Ko nga huringa ki tetahi o aua mea ka rereke pea nga hua. Me toro atu koe ki etahi atu korero me nga whakamatautau mahi hei awhina i a koe ki te arotake katoa i o hokonga whakaaro, tae atu ki te mahi o taua hua ina honoa ki etahi atu hua. Mo te roanga atu o nga korero haere mai www.intel.com/benchmarks.
Ka hiahia pea nga hangarau Intel ki nga taputapu, rorohiko, ratonga ranei.
Kaore he hua, he waahanga ranei e tino haumaru.
Ka rereke pea o utu me o hua.
© Intel Corporation. Ko Intel, ko te tohu Intel, me etahi atu tohu Intel he tohu hokohoko na Intel Corporation me ona apiti. Ko etahi atu ingoa me etahi atu tohu ka kiia he taonga na etahi atu.

Nga korero mo te hua me te mahi
He rereke te mahinga ma te whakamahi, te whirihoranga me etahi atu mea. Ako atu i www.Intel.com/PerformanceIndex.
Panui whakahou #20201201
Karekau he raihana (e whakaatu ana, e kii ana ranei, ma te estoppel, he aha atu ranei) ki nga mana taonga hinengaro e tukuna ana e tenei tuhinga.
Ko nga hua e whakaahuatia ana kei roto pea he hapa hoahoa, he hapa ranei e kiia nei he errata tera pea ka kotiti ke te hua mai i nga korero kua whakaputaina. E waatea ana nga hapa o naianei i runga i te tono.
Ka whakakorehia e Intel nga whakamana katoa e whakaatu ana, e whakaatu ana hoki, tae atu ki te kore e herea, nga whakamanatanga e tika ana mo te hokohoko, te whai oranga mo tetahi kaupapa, me te kore takahi, tae atu ki etahi whakamana i puta mai i te mahinga, te mahi, te whakamahi ranei i te hokohoko.

Tuhinga / Rauemi

PDF thumbnailoneAPI Math Kernel Library
User Guide · oneAPI Math Kernel Library, Math Kernel Library, Kernel Library, Library

Tohutoro

Patai he patai

Use this section to ask about setup, compatibility, troubleshooting, or anything missing from this manual.

Patai he patai

Ask a question about setup, compatibility, troubleshooting, or anything missing from this manual.