# oneAPI

**oneAPI** 是英特尔在2019年超级计算大会上推出的一种开放、基于标准的异构计算统一编程模型，旨在让开发者用单一源代码库为CPU、GPU、FPGA及其他加速器编写代码。<sup>[1](https://www.intc.com/news-events/press-releases/detail/38/intel-unveils-new-gpu-architecture-with-high-performance)</sup> 其核心语言是数据并行C++（DPC++），构建于Khronos SYCL标准之上，同时也支持面向C、C++和Fortran的OpenMP卸载。<sup>[2](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)</sup> 自2023年起，该规范由Linux基金会下属的统一加速（UXL）基金会管理。<sup>[3](https://www.linuxfoundation.org/press/announcing-unified-acceleration-foundation-uxl)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 面向CPU、GPU、FPGA及其他加速器的统一跨架构编程模型，基于开放标准<sup>[1](https://www.intc.com/news-events/press-releases/detail/38/intel-unveils-new-gpu-architecture-with-high-performance)</sup><sup> • </sup><sup>[4](https://www.intc.com/news-events/press-releases/detail/1512/intel-empowers-developers-with-oneapi-2022-toolkits)</sup> |
| 核心语言 | 数据并行C++（DPC++），是ISO C++的演进版本，融合了Khronos SYCL与社区扩展<sup>[5](https://github.com/oneapi-src/DPCPP_Reference)</sup> |
| 第二条可移植路径 | 面向C、C++和Fortran的OpenMP卸载；FPGA设备不支持OpenMP<sup>[2](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)</sup> |
| 规范版本 | 1.0 rev 3（2020-10-21）、1.1 rev 1（2021-11-12）、1.2 rev 1（2022-11-10）、1.3 rev 1（2023-11-06）、1.4 rev 1（2024-12-18）<sup>[6](https://oneapi-spec.uxlfoundation.org/)</sup> |
| 治理 | 统一加速（UXL）基金会，2023年9月19日在Linux基金会下成立；英特尔向其贡献了oneAPI规范及开源项目<sup>[3](https://www.linuxfoundation.org/press/announcing-unified-acceleration-foundation-uxl)</sup> |
| 多厂商GPU | Codeplay插件（2022年12月）为DPC++编译器增加了通过CUDA对NVIDIA GPU的支持以及通过HIP对AMD GPU的支持<sup>[7](https://oneapi.io/blog/bringing-nvidia-and-amd-support-to-oneapi/)</sup> |
| CUDA迁移 | 英特尔报告称，DPC++兼容工具可将90%至95%的CUDA代码自动迁移至SYCL/DPC++<sup>[4](https://www.intc.com/news-events/press-releases/detail/1512/intel-empowers-developers-with-oneapi-2022-toolkits)</sup> |

## 编程模型

在异构计算中，主机处理器利用加速器设备来更高效地执行应用程序的部分任务。oneAPI模型为此支持两种可移植方法：基于SYCL的数据并行C++，以及面向C、C++和Fortran的OpenMP。<sup>[2](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)</sup> 该模型基于数据并行，即对每个数据元素执行相同的计算，应用程序的并行度随数据规模而扩展。<sup>[8](https://d1c71xsfq9wxv8.cloudfront.net/ci/main/introduction.html)</sup>

**SYCL与DPC++。** SYCL是一个跨平台抽象层，允许用标准ISO C++编写异构代码，应用程序的主机代码与内核代码包含在同一源文件中，这种风格称为单源编程。<sup>[2](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)</sup><sup> • </sup><sup>[9](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html)</sup> 作为oneAPI的直接编程语言及其相关API，DPC++构建于ISO C++之上，是一种开放、符合标准的衍生语言，加入了Khronos SYCL以及使数据并行编码更简便的社区扩展。<sup>[5](https://github.com/oneapi-src/DPCPP_Reference)</sup> 英特尔的DPC++编译器是SYCL-2020标准的一种实现。<sup>[10](https://intelpython.github.io/portable-data-parallel-extensions-europython-2025/docs/oneapi/)</sup> DPC++开源项目为LLVM C++编译器增加了SYCL支持；在其编译流程中，前端提取出代码的设备部分，生成[LLVM IR](https://www.edgepedia.org/zh/llvm-ir)，用`llvm-spirv`工具将其转换为SPIR-V模块，再用`clang-offload-wrapper`将其封装进主机目标文件。<sup>[2](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)</sup><sup> • </sup><sup>[11](https://github.com/intel/llvm/blob/sycl/sycl/doc/design/CompilerAndRuntimeDesign.md)</sup>

**OpenMP卸载。** OpenMP作为标准已有20多年历史，英特尔实现了该标准的第5版。英特尔oneAPI DPC++/C++编译器和英特尔Fortran编译器均支持OpenMP卸载，但FPGA设备不支持OpenMP。<sup>[2](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)</sup>

## 工具包与库

英特尔以工具包的形式发布oneAPI，其中包含编译器、库、预优化框架、分析器和调试器。<sup>[4](https://www.intc.com/news-events/press-releases/detail/1512/intel-empowers-developers-with-oneapi-2022-toolkits)</sup> 具名库包括oneAPI DPC++库（oneDPL）、数学核心库（oneMKL）、线程构建块（oneTBB）、数据分析库（oneDAL）、集合通信库（oneCCL）和深度神经网络库（oneDNN）。<sup>[12](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2025-0/gpu-flow.html)</sup> oneDPL增加了用于在多核CPU和GPU上执行的并行API、SYCL内核API，以及用于在可用计算资源上调度SYCL内核的动态选择API。<sup>[13](https://www.youtube.com/watch?v=AHip3vsPh_0)</sup>

随着2026.0版本的发布，原英特尔oneAPI基础工具包和英特尔oneAPI高性能计算工具包被统一为单一的英特尔oneAPI工具包。<sup>[14](https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-toolkit/2026.html)</sup>

## 多厂商GPU支持

尽管oneAPI由英特尔推出，其SYCL基础允许提供面向其他厂商硬件的实现。2022年12月，英特尔的独立子公司Codeplay Software发布了首批官方二进制插件，使英特尔DPC++/C++编译器能够通过CUDA面向NVIDIA GPU、通过HIP面向AMD GPU。<sup>[7](https://oneapi.io/blog/bringing-nvidia-and-amd-support-to-oneapi/)</sup> 英特尔oneAPI工具包默认附带OpenCL和Level Zero插件，而Codeplay插件需要安装基础工具包。<sup>[7](https://oneapi.io/blog/bringing-nvidia-and-amd-support-to-oneapi/)</sup> 在2023.0版本中，NVIDIA插件实现了大部分SYCL 2020特性，主要支持搭配CUDA SDK 11.7或更高版本的[NVIDIA A100](https://www.edgepedia.org/zh/nvidia-a100)；AMD插件处于测试阶段，支持超过50%的SYCL 2020特性，主要面向搭配ROCm 4.5.2的AMD W6800。<sup>[7](https://oneapi.io/blog/bringing-nvidia-and-amd-support-to-oneapi/)</sup> 使用这些插件的SYCL应用程序与原生CUDA和HIP应用程序运行于相同的执行路径，因此可以使用nsys、ncu和cuda-gdb等标准厂商工具。<sup>[7](https://oneapi.io/blog/bringing-nvidia-and-amd-support-to-oneapi/)</sup>

## UXL基金会下的治理

2023年9月19日，Linux基金会宣布成立统一加速（UXL）基金会，这是一个致力于开放标准加速器编程模型的跨行业组织。该基金会被称为oneAPI计划的演进，英特尔向其贡献了oneAPI规范及开源项目；英特尔公司的oneAPI规范编辑Robert Cohn是创始成员。<sup>[3](https://www.linuxfoundation.org/press/announcing-unified-acceleration-foundation-uxl)</sup><sup> • </sup><sup>[15](https://oneapi.io/blog/announcing-the-unified-acceleration-uxl-foundation/)</sup> 英特尔2024年年报确认，其已将oneAPI规范及实现贡献给UXL基金会。<sup>[16](https://d1io3yog0oux5.cloudfront.net/_85b3aa05d5446fafadc55d45cc60542f/intel/db/887/9101/annual_report/2024%2BARS%2BForm%2B10-K.pdf)</sup> 规范本身持续发展，1.4版本于2024年12月18日发布。<sup>[6](https://oneapi-spec.uxlfoundation.org/)</sup><sup> • </sup><sup>[17](https://oneapi.io/spec/)</sup>

## 移植与性能可移植性

对于现有CUDA代码，英特尔提供DPC++兼容工具，该公司报告称在其2022年工具包中该工具可将90%至95%的CUDA代码自动迁移至SYCL/DPC++。<sup>[4](https://www.intc.com/news-events/press-releases/detail/1512/intel-empowers-developers-with-oneapi-2022-toolkits)</sup> 一项使用该兼容工具将SW#db序列比对工具从CUDA移植到DPC++的案例研究，证实了该工具的实用性以及迁移后代码的跨GPU厂商、跨架构可移植性。<sup>[18](https://arxiv.org/abs/2203.11100)</sup>

实测结果让人对可移植性的性能代价有所了解。2023年一项将PAGANI和m-Cubes数值积分代码从CUDA移植到oneAPI的研究发现，在处理了寄存器使用、编译器优化和库调用映射方面的差异后，oneAPI移植版在Nvidia V100 GPU上通常能达到相当的性能，最多比CUDA版本慢10%。<sup>[19](https://arxiv.org/abs/2302.05730)</sup> 大规模宇宙学应用CRK-HACC的SYCL实现在AMD、英特尔和NVIDIA GPU上运行，取得了0.96的性能可移植性评分，代码分歧几乎为零。<sup>[20](https://arxiv.org/abs/2310.16122)</sup> 独立研究也指出了局限：SYCL并不保证跨架构的自动性能可移植性，对带宽受限应用的研究报告称，目标CPU、编译器和后端的组合会产生性能影响，可能需要手动调优。<sup>[21](https://www.khronos.org/sycl/?trk=public_post_main-feed-card-text)</sup><sup> • </sup><sup>[22](https://link.springer.com/article/10.1007/s11227-025-07063-7)</sup>

## References

1. [Intel Unveils New GPU Architecture with High-Performance Computing and AI Acceleration, and oneAPI Software Stack (Intel press release, Supercomputing 2019)](https://www.intc.com/news-events/press-releases/detail/38/intel-unveils-new-gpu-architecture-with-high-performance)
2. [oneAPI Programming Model, Intel oneAPI Programming Guide (2024.2)](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2024-2/oneapi-programming-model.html)
3. [Unified Acceleration Foundation Forms to Drive Open Accelerated Compute and Cross-Platform Performance (Linux Foundation, September 19, 2023)](https://www.linuxfoundation.org/press/announcing-unified-acceleration-foundation-uxl)
4. [Intel Empowers Developers with oneAPI 2022 Toolkits (Intel press release)](https://www.intc.com/news-events/press-releases/detail/1512/intel-empowers-developers-with-oneapi-2022-toolkits)
5. [oneapi-src/DPCPP_Reference: oneAPI Data Parallel C++ language reference (GitHub)](https://github.com/oneapi-src/DPCPP_Reference)
6. [oneAPI Specification Releases (UXL Foundation)](https://oneapi-spec.uxlfoundation.org/)
7. [Bringing Nvidia and AMD support to oneAPI (oneAPI blog, Ruyman Reyes, Codeplay, December 16, 2022)](https://oneapi.io/blog/bringing-nvidia-and-amd-support-to-oneapi/)
8. [Introduction, oneAPI Specification 1.0 documentation](https://d1c71xsfq9wxv8.cloudfront.net/ci/main/introduction.html)
9. [SYCL 2020 Specification (revision 12), Khronos Group](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html)
10. [About oneAPI: Portable Data-Parallel Python Extensions with oneAPI (Intel)](https://intelpython.github.io/portable-data-parallel-extensions-europython-2025/docs/oneapi/)
11. [oneAPI DPC++ Compiler and Runtime architecture design (intel/llvm, GitHub)](https://github.com/intel/llvm/blob/sycl/sycl/doc/design/CompilerAndRuntimeDesign.md)
12. [GPU Flow, Intel oneAPI Programming Guide (2025.0)](https://www.intel.com/content/www/us/en/docs/oneapi/programming-guide/2025-0/gpu-flow.html)
13. [Faster C++ Multiarchitecture Programming Using oneDPL (Intel Software, YouTube, 2024)](https://www.youtube.com/watch?v=AHip3vsPh_0)
14. [Intel oneAPI Toolkit Release Notes and System Requirements (2026)](https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-toolkit/2026.html)
15. [Announcing the Unified Acceleration (UXL) Foundation (oneAPI blog)](https://oneapi.io/blog/announcing-the-unified-acceleration-uxl-foundation/)
16. [Intel Corporation 2024 Annual Report (Form 10-K)](https://d1io3yog0oux5.cloudfront.net/_85b3aa05d5446fafadc55d45cc60542f/intel/db/887/9101/annual_report/2024%2BARS%2BForm%2B10-K.pdf)
17. [Specifications, oneAPI](https://oneapi.io/spec/)
18. [Migrating CUDA to oneAPI: A Smith-Waterman Case Study (arXiv:2203.11100)](https://arxiv.org/abs/2203.11100)
19. [Porting numerical integration codes from CUDA to oneAPI: a case study (arXiv:2302.05730)](https://arxiv.org/abs/2302.05730)
20. [A Performance-Portable SYCL Implementation of CRK-HACC for Exascale (arXiv:2310.16122)](https://arxiv.org/abs/2310.16122)
21. [SYCL: C++ Single-source Heterogeneous Programming for Acceleration Offload (Khronos Group)](https://www.khronos.org/sycl/?trk=public_post_main-feed-card-text)
22. [Analyzing performance portability for a SYCL implementation of the 2D shallow water equations (Journal of Supercomputing, 2025)](https://link.springer.com/article/10.1007/s11227-025-07063-7)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Graphics & GPU hardware › GPGPU & GPU computing › GPGPU frameworks and libraries

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/oneapi

English original: https://www.edgepedia.org/oneapi
