Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oneMath

> 数据库
Open source

oneAPI Math Library (oneMath)

772 stars0 likes2 views
WebsiteGitHub

About

oneAPI Math Library (oneMath)

oneAPI Math Library (oneMath)

oneMath is an open-source implementation of the oneMath specification. It can work with multiple devices using multiple libraries (backends) underneath. The oneMath project was previously referred to as oneMKL Interfaces.

oneMath is part of the UXL Foundation.

        User Application
        oneMath Layer
        Third-Party Library
        Hardware Backend
    



    

        oneMath
        oneMath selector
        Intel(R) oneAPI Math Kernel Library (oneMKL)
        x86 CPU, Intel GPU
    

    

    

         NVIDIA cuBLAS
        NVIDIA GPU
    

    

         NVIDIA cuSOLVER
        NVIDIA GPU
    

    

         NVIDIA cuRAND
        NVIDIA GPU
    

    

         NVIDIA cuFFT
        NVIDIA GPU
    

    

         NVIDIA cuSPARSE
        NVIDIA GPU
    

    

         NETLIB LAPACK 
        x86 and aarch64 CPU
    

    

        Arm Performance Libraries
        aarch64 CPU
    

    

        Arm OpenRNG
        x86 and aarch64 CPU
    

    

         AMD rocBLAS
        AMD GPU
    

    

         AMD rocSOLVER
        AMD GPU
    

    

         AMD rocRAND
        AMD GPU
    

    

         AMD rocFFT
        AMD GPU
    

    

         AMD rocSPARSE
        AMD GPU
    

    

         generic SYCL BLAS 
        x86 CPU, Intel GPU, NVIDIA GPU, AMD GPU, Other SYCL devices (unsupported)
    

    

         portFFT 
        x86 CPU, Intel GPU, NVIDIA GPU, AMD GPU, Other SYCL devices (unsupported)

Table of Contents

  • Support and Requirements
  • Documentation
  • FAQs
  • Legal Information

Support and Requirements

Supported Usage Models:

Host API

There are two oneMath selector layer implementations:

  • Run-time dispatching: The application is linked with the oneMath library and the required backend is loaded at run-time based on device vendor (all libraries should be dynamic).

    Example of app.cpp with run-time dispatching:

    cpp
    #include "oneapi/math.hpp"
    
    ...
    cpu_dev = sycl::device(sycl::cpu_selector());
    gpu_dev = sycl::device(sycl::gpu_selector());
    
    sycl::queue cpu_queue(cpu_dev);
    sycl::queue gpu_queue(gpu_dev);
    
    oneapi::math::blas::column_major::gemm(cpu_queue, transA, transB, m, ...);
    oneapi::math::blas::column_major::gemm(gpu_queue, transA, transB, m, ...);

    How to build an application with run-time dispatching:

    if OS is Linux, use icpx compiler. If OS is Windows, use icx compiler. Linux example:

    cmd
    $> icpx -fsycl –I$ONEMATH/include app.cpp
    $> icpx -fsycl app.o –L$ONEMATH/lib –lonemath
  • Compile-time dispatching: The application uses a templated backend selector API where the template parameters specify the required backends and third-party libraries and the application is linked with the required oneMath backend wrapper libraries (libraries can be static or dynamic).

    Example of app.cpp with compile-time dispatching:

    cpp
    #include "oneapi/math.hpp"
    
    ...
    cpu_dev = sycl::device(sycl::cpu_selector());
    gpu_dev = sycl::device(sycl::gpu_selector());
    
    sycl::queue cpu_queue(cpu_dev);
    sycl::queue gpu_queue(gpu_dev);
    
    oneapi::math::backend_selector cpu_selector(cpu_queue);
    
    oneapi::math::blas::column_major::gemm(cpu_selector, transA, transB, m, ...);
    oneapi::math::blas::column_major::gemm(oneapi::math::backend_selector {gpu_queue}, transA, transB, m, ...);

    How to build an application with compile-time dispatching:

    cmd
    $> clang++ -fsycl –I$ONEMATH/include app.cpp
    $> clang++ -fsycl app.o –L$ONEMATH/lib –lonemath_blas_mklcpu –lonemath_blas_cublas

Refer to Selecting a Compiler for the choice between icpx/icx and clang++ compilers.

Device API

Header-based and backend-independent Device API can be called within sycl kernel or work from Host code (device-rng-usage-model-example). Currently, the following domains support the Device API:

  • RNG. To use RNG Device API functionality it's required to include oneapi/math/rng/device.hpp header file.

Supported Configurations:

Supported domains include: BLAS, LAPACK, RNG, DFT, SPARSE_BLAS

Supported compilers include:

  • Intel(R) oneAPI DPC++ Compiler: Intel proprietary compiler that supports CPUs and Intel GPUs. Intel(R) oneAPI DPC++ Compiler will be referred to as "Intel DPC++" in the "Supported Compiler" column of the tables below.
  • oneAPI DPC++ Compiler: Open source compiler that supports CPUs and Intel, NVIDIA, and AMD GPUs. oneAPI DPC++ Compiler will be referred to as "Open DPC++" in the "Supported Compiler" column of the tables below.
  • AdaptiveCpp Compiler: Open source compiler that supports CPUs and Intel, NVIDIA, and AMD GPUs.

Linux*

        Domain
        Backend
        Library
        Supported Compiler		
        Supported Link Type
    



    

        BLAS
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++AdaptiveCpp
        Dynamic, Static
    

    

        NETLIB LAPACK
        Intel DPC++Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        generic SYCL BLAS
        Intel DPC++Open DPC++
        Dynamic, Static
    

    

        aarch64 CPU
        Arm Performance Libraries
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        NETLIB LAPACK
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        generic SYCL BLAS
        Intel DPC++Open DPC++
        Dynamic, Static
    

    

        NVIDIA GPU
        NVIDIA cuBLAS
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        generic SYCL BLAS
        Open DPC++
        Dynamic, Static
    

    

        AMD GPU
        AMD rocBLAS
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        generic SYCL BLAS
        Open DPC++
        Dynamic, Static
    

    

        Other SYCL devices (unsupported)
        generic SYCL BLAS
        Intel DPC++Open DPC++
        Dynamic, Static
    

    

        LAPACK
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        aarch64 CPU
        Arm Performance Libraries
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        NVIDIA GPU
        NVIDIA cuSOLVER
        Open DPC++
        Dynamic, Static
    

    

        AMD GPU
        AMD rocSOLVER
        Open DPC++
        Dynamic, Static
    

    

        RNG
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++AdaptiveCpp
        Dynamic, Static
    

    

        Arm OpenRNG
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        aarch64 CPU
        Arm Performance Libraries
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        Arm OpenRNG
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        NVIDIA GPU
        NVIDIA cuRAND
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        AMD GPU
        AMD rocRAND
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        DFT
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        portFFT (limited API support)
        Intel DPC++
        Dynamic, Static
    

    

        aarch64 CPU
        Arm Performance Libraries
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        portFFT (limited API support)
        Intel DPC++
        Dynamic, Static
    

    

        NVIDIA GPU
        NVIDIA cuFFT
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        portFFT (limited API support)
        Open DPC++
        Dynamic, Static
    

    

        AMD GPU
        AMD rocFFT
        Open DPC++AdaptiveCpp
        Dynamic, Static
    

    

        portFFT (limited API support)
        Open DPC++
        Dynamic, Static
    

    

        Other SYCL devices (unsupported)
        portFFT
        Open DPC++Open DPC++
        Dynamic, Static
    

    

        SPARSE_BLAS
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        NVIDIA GPU
        NVIDIA cuSPARSE
        Open DPC++
        Dynamic, Static
    

    

        AMD GPU
        AMD rocSPARSE
        Open DPC++
        Dynamic, Static

Windows*

        Domain
        Backend
        Library
        Supported Compiler	
        Supported Link Type
    



    

        BLAS
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        NETLIB LAPACK
        Intel DPC++Open DPC++
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        LAPACK
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        RNG
        x86 CPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static
    

    

        Intel GPU
        Intel(R) oneMKL
        Intel DPC++
        Dynamic, Static

Hardware Platform Support

  • CPU
    • Intel Atom(R) Processors
    • Intel(R) Core(TM) Processor Family
    • Intel(R) Xeon(R) Processor Family
    • Arm Neoverse Processor Family (tested on N1, V1, V2)
  • Accelerators
    • Intel(R) Arc(TM) A-Series Graphics
    • Intel(R) Data Center GPU Max Series
    • NVIDIA(R) A100 and H100 (Linux* only)
    • AMD(R) GPUs see here te

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++apiblascpucuda

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库