请输入您要查询的百科知识:

 

词条 Heterogeneous System Architecture
释义

  1. Rationale

  2. Overview

     HSA memory model  HSA dispatcher and run-time  Block diagrams 

  3. Software support{{Anchor|AMDKFD|HQ|HMM}}

  4. Hardware support

     AMD  ARM 

  5. See also

  6. References

  7. External links

Heterogeneous System Architecture (HSA) is a cross-vendor set of specifications that allow for the integration of central processing units and graphics processors on the same bus, with shared memory and tasks.[1] The HSA is being developed by the HSA Foundation, which includes (among many others) AMD and ARM. The platform's stated aim is to reduce communication latency between CPUs, GPUs and other compute devices, and make these various devices more compatible from a programmer's perspective,[2]{{rp|3}}[3] relieving the programmer of the task of planning the moving of data between devices' disjoint memories (as must currently be done with OpenCL or CUDA).[4]

CUDA and OpenCL as well as most other fairly advanced programming languages can use HSA to increase their execution performance.[5] Heterogeneous computing is widely used in system-on-chip devices such as tablets, smartphones, other mobile devices, and video game consoles.[6] HSA allows programs to use the graphics processor for floating point calculations without separate memory or scheduling.[7]

Rationale

The rationale behind HSA is to ease the burden on programmers when offloading calculations to the GPU. Originally driven solely by AMD and called the FSA, the idea was extended to encompass processing units other than GPUs, such as other manufacturers' DSPs, as well.

{{Gallery
| width = 320
| height = 190
| align = center
| lines = 3
| File:HSA – using the GPU without HSA.svg
| Steps performed when offloading calculations to the GPU on a non-HSA system
|File:HSA – using the GPU with HSA.svg
| Steps performed when offloading calculations to the GPU on a HSA system, using the HSA functionality
}}

Modern GPUs are very well suited to perform single instruction, multiple data (SIMD) and single instruction, multiple threads (SIMT), while modern CPUs are still being optimized for branching. etc.

Overview

{{Refimprove section|date=May 2014}}

Originally introduced by embedded systems such as the Cell Broadband Engine, sharing system memory directly between multiple system actors makes heterogeneous computing more mainstream. Heterogeneous computing itself refers to systems that contain multiple processing units{{snd}} central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), or any type of application-specific integrated circuits (ASICs). The system architecture allows any accelerator, for instance a graphics processor, to operate at the same processing level as the system's CPU.

Among its main features, HSA defines a unified virtual address space for compute devices: where GPUs traditionally have their own memory, separate from the main (CPU) memory, HSA requires these devices to share page tables so that devices can exchange data by sharing pointers. This is to be supported by custom memory management units.[2]{{rp|6–7}} To render interoperability possible and also to ease various aspects of programming, HSA is intended to be ISA-agnostic for both CPUs and accelerators, and to support high-level programming languages.

So far, the HSA specifications cover:

===HSA Intermediate Layer===

HSA Intermediate Layer (HSAIL), a virtual instruction set for parallel programs

  • similar{{according to whom|date=May 2015}} to LLVM Intermediate Representation and SPIR (used by OpenCL and Vulkan)
  • finalized to a specific instruction set by a JIT compiler
  • make late decisions on which core(s) should run a task
  • explicitly parallel
  • supports exceptions, virtual functions and other high-level features
  • debugging support

HSA memory model

  • compatible with C++11, OpenCL, Java and .NET memory models
  • relaxed consistency
  • designed to support both managed languages (e.g. Java) and unmanaged languages (e.g. C)
  • will make it much easier to develop 3rd-party compilers for a wide range of heterogeneous products programmed in Fortran, C++, C++ AMP, Java, et al.

HSA dispatcher and run-time

  • designed to enable heterogeneous task queueing: a work queue per core, distribution of work into queues, load balancing by work stealing
  • any core can schedule work for any other, including itself
  • significant reduction of overhead of scheduling work for a core

Mobile devices are one of the HSA's application areas, in which it yields improved power efficiency.[6]

Block diagrams

The block diagrams below provide high-level illustrations of how HSA operates and how it compares to traditional architectures.

{{Gallery
| width = 320
| height = 190
| align = center
| lines = 3
| File:Desktop computer bus bandwidths.svg
| Standard architecture with a discrete GPU attached to the PCI Express bus. Zero-copy between the GPU and CPU is not possible due to distinct physical memories.
|File:HSA-enabled virtual memory with distinct graphics card.svg
| HSA brings unified virtual memory, and facilitates passing pointers over PCI Express instead of copying the entire data.
| File:Integrated graphics with distinct memory allocation.svg
| In partitioned main memory, one part of the system memory is exclusively allocated to the GPU. As a result, zero-copy operation are not possible.
| File:HSA-enabled integrated graphics.svg
| Unified main memory, made possible by a combination of HSA-enabled GPU and CPU. As a result, it is possible to perform zero-copy operations.[8]
| File:MMU and IOMMU.svg
| Both the CPU's MMU and the GPU's IOMMU have to comply with the HSA hardware specifications.
}}{{Clear}}

Software support{{Anchor|AMDKFD|HQ|HMM}}

Some of the HSA-specific features implemented in the hardware need to be supported by the operating system kernel and specific device drivers. For example, support for AMD Radeon and AMD FirePro graphics cards, and APUs based on Graphics Core Next (GCN), was merged into version 3.19 of the Linux kernel mainline, released on February 8, 2015.[10] Programs do not interact directly with {{Mono|amdkfd}}, but queue their jobs utilizing the HSA runtime.[11] This very first implementation, known as {{Mono|amdkfd}}, focuses on "Kaveri" or "Berlin" APUs and works alongside the existing Radeon kernel graphics driver.

Additionally, {{Mono|amdkfd}} supports heterogeneous queuing (HQ), which aims to simplify the distribution of computational jobs among multiple CPUs and GPUs from the programmer's perspective. Support for heterogeneous memory management (HMM), suited only for graphics hardware featuring version 2 of the AMD's IOMMU, was accepted into the Linux kernel mainline version 4.14.[12]

Integrated support for HSA platforms has been announced for the "Sumatra" release of OpenJDK, due in 2015.[13]

AMD APP SDK is AMD's proprietary software development kit targeting parallel computing, available for Microsoft Windows and Linux. Bolt is a C++ template library optimized for heterogeneous computing.[14]GPUOpen comprehends a couple of other software tools related to HSA. CodeXL version 2.0 includes an HSA profiler.[15]{{Clear}}

Hardware support

AMD

{{As of|2015|2}}, only AMD's "Kaveri" A-series APUs (cf. "Kaveri" desktop processors and "Kaveri" mobile processors) and Sony's PlayStation 4 allowed the integrated GPU to access memory via version 2 of the AMD's IOMMU. Earlier APUs (Trinity and Richland) included the version 2 IOMMU functionality, but only for use by an external GPU connected via PCI Express.{{Citation needed|date=June 2016}}

Post-2015 Carrizo and Bristol Ridge APUs also include the version 2 IOMMU functionality for the integrated GPU.{{Citation needed|date=June 2016}}

{{AMD APU features}}

ARM

ARM's Bifrost microarchitecture, as implemented in the Mali-G71,[16] is fully compliant with the HSA 1.1 hardware specifications. {{As of|2016|6}}, ARM has not announced software support that would use this hardware feature.

See also

  • General-purpose computing on graphics processing units (GPGPU)
  • Non-Uniform Memory Access (NUMA)
  • OpenMP
  • Shared memory
  • Zero-copy

References

1. ^{{cite web |url=http://www.tomshardware.com/news/AMD-HSA-hUMA-APU,22324.html |title=AMD Unveils its Heterogeneous Uniform Memory Access (hUMA) Technology |website=Tom's Hardware |author=Tarun Iyer |date=30 April 2013}}
2. ^{{Cite report |author=George Kyriazis |date=30 August 2012 |title=Heterogeneous System Architecture: A Technical Review |url=http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/hsa10.pdf |publisher=AMD}}
3. ^{{cite web |title=What is Heterogeneous System Architecture (HSA)? |url=http://developer.amd.com/resources/heterogeneous-computing/what-is-heterogeneous-system-architecture-hsa/ |publisher=AMD |accessdate=23 May 2014}}
4. ^{{cite web |author=Joel Hruska |title=Setting HSAIL: AMD explains the future of CPU/GPU cooperation |url=http://www.extremetech.com/gaming/164817-setting-hsail-amd-cpu-gpu-cooperation |website=ExtremeTech |publisher=Ziff Davis |date=2013-08-26}}
5. ^{{cite web|url=http://www.slideshare.net/mobile/linaroorg/hsa-linaro-updatejuly102013|title=LCE13: Heterogeneous System Architecture (HSA) on ARM|author=Linaro|work=slideshare.net}}
6. ^{{cite web | url = http://gpuscience.com/cs/heterogeneous-system-architecture-purpose-and-outlook/ | archiveurl = https://web.archive.org/web/20140201183411/http://gpuscience.com/cs/heterogeneous-system-architecture-purpose-and-outlook/ | title = Heterogeneous System Architecture: Purpose and Outlook | date = 2012-11-09 | accessdate = 2014-05-24 | archivedate = 2014-02-01 | website = gpuscience.com}}
7. ^{{cite web |title=Heterogeneous system architecture: Multicore image processing using a mix of CPU and GPU elements |website=Embedded Computing Design |url=http://embedded-computing.com/articles/heterogeneous-processing-using-mix-cpu-gpu-elements/ |accessdate=23 May 2014}}
8. ^{{cite web |url=http://semiaccurate.com/2014/01/15/technical-look-amds-kaveri-architecture/ |title=Kaveri microarchitecture |date=2014-01-15 |work=SemiAccurate}}
9. ^{{cite web | url = https://www.phoronix.com/scan.php?page=news_item&px=MTc0NTk | title = AMDKFD Driver Still Evolving For Open-Source HSA On Linux | date = July 21, 2014 | accessdate = January 21, 2015 | author = Michael Larabel | publisher = Phoronix}}
10. ^{{cite web | url = http://kernelnewbies.org/Linux_3.19#head-ae54e026ef7588f4431f7e94178d27d5cd830bbf | title = Linux kernel 3.19, Section 1.3. HSA driver for AMD GPU devices | date = February 8, 2015 | accessdate = February 12, 2015 | website = kernelnewbies.org}}
11. ^{{cite web | url = https://github.com/HSAFoundation/HSA-Runtime-Reference-Source/blob/master/README.md | title = HSA-Runtime-Reference-Source/README.md at master | date = November 14, 2014 | accessdate = February 12, 2015 | website = github.com}}
12. ^{{cite web|url=https://www.xda-developers.com/linux-kernel-414/|title=Linux Kernel 4.14 Announced with Secure Memory Encryption and More|date=13 November 2017|publisher=}}
13. ^{{cite web |url=http://www.hpcwire.com/2013/08/26/hsa_foundation_aims_to_boost_javas_gpu_prowess/ |title=HSA Foundation Aims to Boost Java’s GPU Prowess |author=Alex Woodie |date=26 August 2013 |website=HPCwire}}
14. ^{{cite web |url=https://github.com/HSA-Libraries/Bolt |title=Bolt on github}}
15. ^{{cite web |url=http://gpuopen.com/codexl-2-0-is-here-and-open-source/ |title=CodeXL 2.0 includes HSA profiler |author=AMD GPUOpen |date=2016-04-19}}
16. ^{{cite web |url=http://www.anandtech.com/show/10375/arm-unveils-bifrost-and-mali-g71/5 |title=ARM Bifrost GPU Architecture |date=2016-05-30}}

External links

{{Commons category}}
  • {{YouTube|id=ln8JpfaLvbM|title=HSA Heterogeneous System Architecture Overview}} by Vinod Tipparaju at SC13 in November 2013
  • HSA and the software ecosystem
  • 2012 – HSA by Michael Houston

2 : Heterogeneous System Architecture|Heterogeneous computing

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 6:54:37