Software:GPUOpen

From HandWiki
Short description: Middleware software suite


GPUOpen
AMD GPUOpen Logo, Jan 2016.png
Original author(s)Advanced Micro Devices
Developer(s)Advanced Micro Devices
Initial releaseJanuary 26, 2016 (2016-01-26)[1]
Written inC, C++, GLSL
Operating systemLinux, Microsoft Windows
TypeGame effects libraries, GPU debugging, CPU & GPU profiling
LicenseMIT License
Websitegpuopen.com

GPUOpen is a middleware software suite originally developed by AMD's Radeon Technologies Group that offers advanced visual effects for computer games. It was released in 2016. GPUOpen serves as an alternative to, and a direct competitor of Nvidia GameWorks. GPUOpen is similar to GameWorks in that it encompasses several different graphics technologies as its main components that were previously independent and separate from one another.[2] However, GPUOpen is entirely open source software, unlike GameWorks which is proprietary and closed.

History

GPUOpen was announced on December 15, 2015,[3][4][2][5][6] and released on January 26, 2016.

Rationale

Nicolas Thibieroz, AMD's Senior Manager of Worldwide Gaming Engineering, argues that "it can be difficult for developers to leverage their R&D investment on both consoles and PC because of the disparity between the two platforms" and that "proprietary libraries or tools chains with "black box" APIs prevent developers from accessing the code for maintenance, porting or optimizations purposes".[7] He says that upcoming architectures, such as AMD's RX 400 series "include many features not exposed today in PC graphics APIs".

AMD designed GPUOpen to be a competing open-source middleware stack released under the MIT License. The libraries are intended to increase software portability between video game consoles, PCs and also high-performance computing.[8]

Components

GPUOpen unifies many of AMD's previously separate tools and solutions into one package, also fully open-sourcing them under the MIT License.[4] GPUOpen also makes it easy for developers to get low-level GPU access.[9]

Additionally AMD wants to grant interested developers the kind of low-level "direct access" to their GCN-based GPUs, that surpasses the possibilities of Direct3D 12 or Vulkan. AMD mentioned e.g. a low-level access to the Asynchronous Compute Engines (ACEs). The ACE implement "Asynchronous Compute", but they cannot be freely configured under either Vulkan or Direct3D 12.

GPUOpen is made up of several main components, tools, and SDKs.[2]

Games and CGI

Software for computer-generated imagery (CGI) used in development of computer games and movies alike.

Visual effects libraries

GPUOpen Visual Effects Libraries[10]
Name API Source Description
TressFX DirectX 12, Vulkan GitHub This visual effects library allows the creation of realistic hair, fur, and grass.
GeometryFX DirectX 11 GitHub This library allows easy access to compute-based triangle filtering.
DepthOfFieldFX DirectX 11 GitHub This library grants access to a depth of field implementation optimized for the GCN GPU architecture via a compute shader.
ShadowFX DirectX 11, DirectX 12 GitHub This library grants access to an implementation for deferred shadow filtering that is optimized for the GCN GPU architecture.
FidelityFX DirectX 11, DirectX 12, Vulkan GitHub FidelityFX is a suite of visual effects and effects-helper libraries.

FidelityFX

FidelityFX Components[11]
Name Algorithm Source Description
FidelityFX CAS Contrast Adaptive Sharpening GitHub This algorithm adaptively sharpens an image or scene while minimizing artifacts.
FidelityFX CACAO Combined Adaptive Compute Ambient Occlusion GitHub This algorithm is an optimized implementation of adaptive sampling ambient occlusion.
FidelityFX LPM Luminance Preserving Mapper GitHub This algorithm is used to tone map the luma of an RGB pixel rather than tone mapping the color of the pixel.
FidelityFX SPD Single Pass Downsampler GitHub This algorithm, optimized for the RDNA GPU architecture, is used to generate 12 MIP levels for a given texture.
FidelityFX SSSR Stochastic Screen Space Reflections GitHub This algorithm is used to add screen space reflections to a frame or scene.
FidelityFX VS Variable Shading GitHub This algorithm is used to generate image-based variable rate shading using the luminance of samples in the prior frame.
FidelityFX Parallel Sort Radix Sort GitHub This algorithm provides a compute-based radix sort.
FidelityFX Denoiser Shadow & Reflection Denoiser GitHub This algorithm provides denoising functionality for ray-traced shadows and ray-traced or screen-space reflections.
FidelityFX Super Resolution 1 Spatial Upsampler GitHub This algorithm is used to upsample an image or frame into a higher resolution using only the spatial information provided in the input frame.
FidelityFX Super Resolution 2 Temporal Upscaler GitHub This algorithm is used to upscale frame(s) into a higher resolution using the temporal information provided by input frames.

FidelityFX Super Resolution

FidelityFX Super Resolution (FSR) is used to upsample an input image into a higher resolution. There are multiple version of FSR with distinctive upscaling technique and image quality:

  • FSR 1 is a spatial upscaler based on the Lanczos algorithm requiring an anti aliased lower resolution image
  • FSR 2 is a temporal upscaler based on a modified Lanczos requiring an aliased lower resolution image and utilising the temporal data (such as motion vectors and frame history) and then applies its own anti aliasing pass which replaces the game's temporal anti-aliasing solution.
  • FSR 3 adds frame generation and "native anti-aliasing". Frame generation increases the perceived frame rate of a game. "Native anti-aliasing", similar to Nvidia's DLAA, can be used without upscaling for improved anti-aliasing; it can also be combined with frame generation and Anti-Lag+.[12][13]

The standard presets for FSR by AMD can be found in the table below. Note that these presets are not the only way in which the algorithm can be used, they are simply presets for input/output resolutions. Certain titles, such as Dota 2 have offered resolution sliders to fine tune the scaling percentage or dynamically scaling the internal render resolution depending on the FPS cap.

Release history
Release[lower-alpha 1] Release date Highlights
1.0 / 1.0.1 Jun 2021 FidelityFX Super Resolution (FSR) launch, source code available July 2021.[14][15]
1.0.2 Nov 2021 Robust Contrast-Adaptive Sharpening (RCAS) oversharpening hotfix.[16]
1.1 Jul 2023 Available as part of FidelityFX SDK.[17]
2.0.1 / 2.0.1a Mar 2022 FidelityFX Super Resolution 2.0 (FSR 2) launch, source code available June 2022.[18][19]
2.1.0 Sep 2022 Reduced ghosting and improved upscaling quality. Farming Simulator 2022 was one of early adopters with patch 1.7.1.[20]
2.1.1 Sep 2022 [21]
2.1.2 Oct 2022 [22]
2.2.0 / 2.2.0a Nov 2022 HDR range improvements, ghosting and flickering artefacts reduction. Source code available February 2023.[23]
2.2.1 Jun 2023 [24]
2.2.2 Jul 2023 Available as part of FidelityFX SDK.[17][25]
3 Sep 2023 FSR 3 adds frame generation combined with FSR 2 and Anti-Lag+ and supports GPUs from AMD, Nvidia, and Intel. FSR 3 is also compatible with the ninth generation of video game consoles.[12]
Standard FSR presets[26][27]
Quality Preset[lower-alpha 2] Scale Factor[lower-alpha 3] Render Scale[lower-alpha 4]
Ultra Qualityv1.0 only 1.30x 77.0%
Quality 1.50x 66.6%
Balanced 1.70x 58.8%
Performance 2.00x 50.0%
Ultra Performancesince v2.0 3.00x 33.3%

FSR 2 can also be modded into nearly any game supporting DLSS by swapping the DLSS DLL with a translation layer DLL that maps the DLSS API calls to FSR 2 API calls.[28]


  1. FSR versions stated in italic present hotfixes or minor updates.
  2. The algorithm does not necessarily need to be implemented using these presets; it is possible for the implementer to define custom input and output resolutions.
  3. The linear scale factor used for upsampling the input resolution to the output resolution. For example, a scene rendered at 540p with a 2.00x scale factor would have an output resolution of 1080p.
  4. The linear render scale, compared to the output resolution, that the technology uses to render scenes internally before upsampling. For example, a 1080p scene with a 50% render scale would have an internal resolution of 540p.

Frame Generation

FSR 3 adds frame generation. Launching in September 2023, FSR 3 uses a combination of FSR 2 and optical flow analysis, which runs using asynchronous compute (as opposed to Nvidia's DLSS 3 which uses dedicated hardware). Because FSR 3 uses a software-based solution, it is compatible with GPUs from AMD, Nvidia, and Intel as well as the ninth generation of video game consoles. To combat additional latency inherent to the frame generation process, AMD has a driver-level feature called Anti-Lag, which only runs on AMD GPUs.[12]

AMD Fluid Motion Frames (AFMF) is a driver-level frame generation technology launching in Q1 2024 which is compatible with all DirectX 11 and DirectX 12 games, however it runs on RDNA 2 and RDNA 3 GPUs. AFMF uses optical flow analysis but not motion vectors, so it can only interpolate a new frame between two traditionally rendered frames. AFMF currently is not compatible with VSYNC.[12]

Tools

The official AMD directory lists:[29]

Name source-code API OS Task
CodeXL CodeXL Direct3D, OpenGL, OpenCL, Vulkan Linux
Windows
software development tool suite that includes a GPU debugger, a GPU profiler, a CPU profiler, a static OpenCL kernel analyzer and various plugins.[30]
static analyzer for AMD CodeXL amd-codexl-analyzer Direct3D, OpenGL, OpenCL Linux
Windows 64bit
Off-line compiler and performance analysis CLI-tool for processing: OpenCL kernels, HLSL shaders and GLSL shaders
part of the AMD CodeXL tools suite
Requires either Radeon Software Crimson Edition or AMD Catalyst to be installed to run this tool.[31]
D3D 12 plug-in for GPU PerfStudio amd-gpuperfstudio-dx12 Direct3D 12 Windows a plug-in to GPU PerfStudio GPU perfstudio[32]
Tootle amd-tootle agnostic Linux
Windows
Triangle Order Optimization Tool; originally developed in 2006; can be easily integrated as part of a rendering or mesh pre-processing tool chain[33] Cf. http://mgarland.org/files/papers/quadrics.pdf

Having been released by ATI Technologies under the BSD license in 2006 HLSL2GLSL is not part of GPUOpen. Whether similar tools for SPIR-V will be available remains to be seen, as is the official release of the Vulkan (API) itself. Source-code that has been defined as being part of GPUOpen is also part of the Linux kernel (e.g. amdgpu and amdkfd[34]), Mesa 3D and LLVM.

Software development kits

Name Source API OS Task
Advanced Media Framework (AMF) SDK GitHub DirectX 12 Windows 64-bit Light-weight, portable multimedia framework that abstracts away most of the platform and API-specific details.
FireRays (RadeonRays) SDK GitHub agnostic 64-bit Linux, OS X, 64-bit Windows A high efficiency, high performance heterogeneous ray tracing intersection library for GPU and CPU or APU on any platform.
FireRender (ProRender) SDK GitHub physically-based rendering engine
LiquidVR SDK GitHub Direct3D 11 Windows improves the smoothness of virtual reality.[35] The aim is to reduce latency between hardware so that the hardware can keep up with the user's head movement, eliminating the motion sickness. A particular focus is on dual GPU setups where each GPU will now render for one eye individually of the display
RapidFire SDK GitHub facilitates the use of AMD's video compression acceleration SIP blocks VCE (H.264 encoder) and UVD (H.264 decoder) for "Cloud gaming"/off-site rendering
True Audio Next (TAN) SDK GitHub OpenCL Windows 64-bit SDK for Radeon GPU accelerated and multi-core high-performance audio signal processing.

Professional Compute

As of 2022, AMD compute software ecosystem is regrouped under the ROCm metaproject.

AMD Boltzmann Initiative: amdgpu (Linux kernel 4.2+) and amdkfd (Linux kernel 3.19+)

Software around Heterogeneous System Architecture (HSA), General-Purpose computing on Graphics Processing Units (GPGPU) and High-Performance Computing (HPC)

Radeon Open Compute (ROCm)

Main page: Software:ROCm

AMD's "Boltzmann Initiative" (named after Ludwig Boltzmann) was announced in November 2015 at the SuperComputing15[36][37][38][39][40] and productized as the Radeon Open Compute platform (ROCm). It aims to provide an alternative to Nvidia's CUDA which includes a tool to port CUDA source-code to portable (HIP) source-code which can be compiled on both HCC and NVCC.

  • Radeon Open Compute Kernel (ROCK) driver
  • Radeon Open Compute Runtime (ROCR) runtime
  • HCC: Heterogeneous Compute Compiler
  • HIP: C++ Heterogeneous-Compute Interface for Portability

Heterogeneous System Architecture

Main page: Engineering:Heterogeneous System Architecture
  • HSAIL-GDB: provides an GNU Debugger-based debugging environment for HSA Intermediate Layer (HSAIL)
  • HSA Runtime APIs
  • Linux amdkfd v1.6.1 release for Kaveri & Carrizo

Various deprecated

  • clFFT library for Fast Fourier transform written in OpenCL
  • hcFFT library for Fast Fourier transform written in HCC-optimized C++

Availability

GPUOpen are available under the MIT license to the general public through GitHub starting on January 26, 2016.[4]

There is interlocking between GPUOpen and well established and widespread free software projects, e.g. Linux kernel, Mesa 3D and LLVM.

See also

References

  1. AMD: GPUOpen (2016-01-26). "Welcome to GPUOpen". http://gpuopen.com/welcometogpuopen/. 
  2. 2.0 2.1 2.2 Tom's Hardware (2015-12-15). "AMD GPUOpen: Doubling Down On Open-Source Development". http://www.tomshardware.com/news/amd-gpuopen-open-source-development,30750.html. 
  3. Maximum PC (2015-12-15). "AMD Radeon Technologies Group Summit: GPUOpen and Software". http://www.maximumpc.com/amd-rtg-summit-gpuopen-and-software/. 
  4. 4.0 4.1 4.2 AnandTech (2015-12-15). "AMD's GPUOpen bundle of developer tools in 2016". http://www.anandtech.com/show/9853/amd-gpuopen-linux-open-source. 
  5. Heinz Heise (2015-12-16). "AMDs Open-Source-Initiative GPUOpen: Direkte GPU-Kontrolle und bessere Treiber" (in de). http://www.heise.de/newsticker/meldung/AMDs-Open-Source-Initiative-GPUOpen-Direkte-GPU-Kontrolle-und-bessere-Treiber-3045512.html. 
  6. PC Games Hardware (2015-12-16). "AMD GPU Open: Radeon-Software wird bald zu 100 % Open-Source" (in de). http://www.pcgameshardware.de/AMD-Radeon-Grafikkarte-255597/News/GPUOpen-Open-Source-1181069/. 
  7. "It's Time to Open up the GPU". http://gpuopen.com/welcometogpuopen/. 
  8. wccftech.com (2015-12-15). "AMD's Answer To Nvidia's GameWorks, GPUOpen Announced". http://wccftech.com/amds-answer-to-nvidias-gameworks-gpuopen-announced-open-source-tools-graphics-effects-and-libraries/. 
  9. HotHardware (2015-12-15). "AMD Goes Open Source, Announces GPUOpen Initiative, New Compiler And Drivers For Linux And HPC". http://hothardware.com/news/amd-goes-open-source-announces-gpuopen-initiative-new-compiler-and-drivers-for-lunix-and-hpc. 
  10. "GPUOpen Effects". https://github.com/GPUOpen-Effects/. 
  11. "FidelityFX". 20 October 2021. https://github.com/GPUOpen-Effects/FidelityFX. 
  12. 12.0 12.1 12.2 12.3 "AMD reveals long-awaited FSR 3 tech and frame gen for every DX11/DX12 game". EuroGamer. 25 August 2023. https://www.eurogamer.net/digitalfoundry-2023-amd-reveals-long-awaited-fsr-3-tech-and-frame-gen-for-every-dx11dx12-game. "FSR 3 is a frame generation solution that operates along similar lines to Nvidia's DLSS 3 - combining frame generation (Fluid Motion Frames) with super resolution upscaling (FSR 2) and latency reduction (Anti-Lag+) in a small number of supported games, with Forspoken and Immortals of Aveum set to first debut the technology. FSR 3 will work on Radeon graphics cards, as well as Nvidia and Intel GPUs." 
  13. " "AMD claims there’s nothing stopping Starfield from adding Nvidia DLSS". The Verge. 24 August 2023. https://www.theverge.com/2023/8/25/22372077/amd-starfield-dlss-fsr-exclusive-frank-azor". 
  14. "AMD FidelityFX Super Resolution is coming soon to GPUOpen - AMD GPUOpen" (in en-gb). June 1, 2021. https://gpuopen.com/fsr-announce/. 
  15. "FidelityFX Super Resolution (FSR) source code is here, along with Unity and UE4 support too! - AMD GPUOpen" (in en-gb). July 15, 2021. https://gpuopen.com/fsr-source-available/. 
  16. Sommefeldt, Rys (November 16, 2021). "Release FidelityFX FSR v1.0.2 · GPUOpen-Effects/FidelityFX-FSR · GitHub". https://github.com/GPUOpen-Effects/FidelityFX-FSR/releases/tag/v1.0.2. 
  17. 17.0 17.1 "The AMD FidelityFX SDK 1.0 is now available on GPUOpen - AMD GPUOpen" (in en-gb). July 11, 2023. https://gpuopen.com/learn/fidelityfx-sdk-available-now/. 
  18. "It's time for AMD FidelityFX Super Resolution 2.0 - AMD GPUOpen" (in en-gb). March 17, 2022. https://gpuopen.com/fsr2-announce/. 
  19. "It's time to see the FSR 2 source code! - AMD GPUOpen" (in en-gb). June 22, 2022. https://gpuopen.com/fsr2-source-available/. 
  20. "It's time to upscale FSR 2 even further: Meet FSR 2.1! - AMD GPUOpen" (in en-gb). September 8, 2022. https://gpuopen.com/meet-fidelityfx-super-resolution-2-1/. 
  21. Sommefeldt, Rys (September 15, 2022). "Release FidelityFX FSR2 v2.1.1 · GPUOpen-Effects/FidelityFX-FSR2 · GitHub". https://github.com/GPUOpen-Effects/FidelityFX-FSR2/releases/tag/v2.1.1. 
  22. Sommefeldt, Rys (October 19, 2022). "Release FidelityFX FSR2 v2.1.2 · GPUOpen-Effects/FidelityFX-FSR2 · GitHub". https://github.com/GPUOpen-Effects/FidelityFX-FSR2/releases/tag/v2.1.2. 
  23. "Don’t cross the streams! Bust more ghosts with the source code to FidelityFX Super Resolution 2.2 - AMD GPUOpen" (in en-gb). February 16, 2023. https://gpuopen.com/meet-fsr2-2/. 
  24. "AMD FidelityFX Super Resolution 2.2.1 hotfix! - AMD GPUOpen" (in en-gb). June 9, 2023. https://gpuopen.com/fsr2-2-1-hotfix/. 
  25. "FidelityFX Super Resolution 2.2.2 (FSR2) - FidelityFX SDK - AMD GPUOpen" (in en-gb). https://gpuopen.com/manuals/fidelityfx_sdk/fidelityfx_sdk-page_techniques_super-resolution-temporal/. 
  26. Walker, Alex (June 23, 2021). "AMD's FSR Only Supports 7 Games, But It's Already Super Promising" (in en-AU). https://www.kotaku.com.au/2021/06/amds-fsr-only-supports-7-games-but-its-already-super-promising/. 
  27. Mujtaba, Hassan (March 23, 2022). "AMD Details FSR 2.0: NVIDIA GeForce 10 & Up Support, High-Quality Upscaling Without Machine Learning, More Quality Modes" (in en-US). https://wccftech.com/amd-details-fsr-2-0-nvidia-geforce-10-up-support-high-quality-upscaling-without-machine-learning-more-quality-modes/. 
  28. Sims, Daniel (July 5, 2022). "Unofficial FSR 2.0 mod arrives to several more games including Dying Light 2, RDR 2 and Death Stranding" (in en-US). https://www.techspot.com/news/95194-amd-fsr-20-mod-comes-several-more-games.html. 
  29. "GPUOpen Libraries & SDKS". https://github.com/GPUOpen-LibrariesAndSDKs/. 
  30. AMD GPUOpen (2016-04-19). "CodeXL 2.0 made open-source". http://gpuopen.com/codexl-2-0-is-here-and-open-source/. 
  31. AMD GPUOpen (2016-01-26). "CodeXL Static Analyzer CLI". http://gpuopen.com/up-and-running-with-codexl-analyzer-cli/. 
  32. AMD GPUOpen (2016-01-26). "Create Your own GPU PerfStudio Direct3D 12 Plugin". http://gpuopen.com/create-your-own-gpuopen-perfstudio-dx12-plugin/. 
  33. AMD GPUOpen (2016-01-26). "Have You Tootled Your 3D Models?". http://gpuopen.com/have-you-tootled-your-3d-models/. 
  34. "Linux kernel 4.2 /drivers/gpu/drm/amd". https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/drivers/gpu/drm/amd?id=refs/tags/v4.2. 
  35. Heinz Heise (2015-03-04). "LiquidVR: Neues Virtual-Reality-SDK von AMD" (in de). http://heise.de/-2566652. 
  36. AnandTech (2015-11-16). "AMD@SC15: Boltzmann Initiative Announced - C++ and CUDA Compilers for AMD GPUs". http://www.anandtech.com/show/9792/amd-sc15-boltzmann-initiative-announced-c-and-cuda-compilers-for-amd-gpus. 
  37. Heinz Heise (2015-11-17). "Supercomputer: AMD startet Software-Offensive "Boltzmann"" (in de). http://heise.de/-2922782. 
  38. 3dcenter.org (2015-11-16). "AMDs Boltzmann-Initiative geht direkt gegen nVidias CUDA" (in de). http://www.3dcenter.org/news/amds-boltzmann-initiative-geht-direkt-gegen-nvidias-cuda. 
  39. AMD (2015-11-16). "AMD Launches 'Boltzmann Initiative'". https://www.amd.com/en-us/press-releases/Pages/boltzmann-initiative-2015nov16.aspx. 
  40. AMD (2015-11-16). "A Defining Moment for Heterogeneous Computing". https://community.amd.com/community/amd-business/blog/2015/11/16/a-defining-moment-for-heterogeneous-computing. 

External links