:CodeXL
{{short description|Open-source software development tool suite}}
{{Infobox software
| title = CodeXL
| name =
| logo =
| logo caption =
| screenshot =
| caption =
| collapsible =
| author = Advanced Micro Devices
| developer =
| released =
| discontinued =
| latest release version = 2.6
| latest release date = {{Start date and age|2018|10|15}}
| latest preview version =
| latest preview date =
| status =
| programming language = C, C++
| operating system = Linux, Windows
| platform =
| size =
| language =
| language count =
| language footnote =
| genre = GPU debugging, GPU & CPU profiling, Static Kernel Analysis
| license = MIT License
| website = {{Official URL}}
}}
CodeXL (formerly AMD CodeXL) was an open-source software development tool suite which included a GPU debugger, a GPU profiler, a CPU profiler, a graphics frame analyzer and a static shader/kernel analyzer.
CodeXL was mainly developed by AMD. With version 2.0 CodeXL was made part of GPUOpen and is free and open-source software subject to the requirements of the MIT License. It is no longer branded as an AMD product.{{cite web |url=http://gpuopen.com/codexl-2-0-is-here-and-open-source/ |title=CodeXL 2.0 made open-source |author=AMD GPUOpen |date=2016-04-19 |access-date=2016-04-21 |archive-url=https://web.archive.org/web/20180627034628/https://gpuopen.com/codexl-2-0-is-here-and-open-source/ |archive-date=2018-06-27 |url-status=dead }}
CPU profiler and Power profiler were included in CodeXL until version 2.5. Now these profilers are released as part of the {{Proper name|AMD uProf}} tool.
In April 2020 AMD updated the GitHub repository announcing that "CodeXL is no longer being actively developed or supported by AMD and is being archived"{{Cite web|title=Update README.md · GPUOpen-Archive/CodeXL@34fffe5|url=https://github.com/GPUOpen-Archive/CodeXL/commit/34fffe5a0342205e6d602c067da79202f4f8694e|access-date=2021-08-20|website=GitHub|language=en}}
Features
= GPU debugger =
CodeXL's GPU debugger allows engineers to debug OpenGL and OpenCL API calls and runtime objects, and debug OpenCL kernels: set breakpoints, step through source code in real-time, view all variables across different GPU cores during kernel execution, identify logic and memory errors, reduce memory transaction overhead, visualize OpenCL/OpenGL buffers and images and OpenGL textures as pictures or as spreadsheet data, and in this way to improve general software quality and optimize its performance.
= GPU profiler =
CodeXL's GPU profiler collects and visualizes hardware performance counters data, application trace, kernel occupancy, and offers hotspot analysis for AMD GPUs and APUs. The profiler gathers data from the OpenCL runtime, and from the GPU/APU itself during the execution of the kernels, and can be used to discover performance bottlenecks and optimize kernel execution.
= CPU profiler =
{{Proper name|AMD uProf}} supersedes the CodeXL for CPU and Power Profiling functionalities on AMD processors.{{cite web |url=https://developer.amd.com/amd-uprof/|title=AMD μProf}}
CodeXL's CPU profiling suite can be used to identify, investigate and improve the performance of applications, drivers and system software on AMD CPUs. CodeXL's CPU profiler uses a statistical sampling based approach with various profiling techniques and measures: Time-Based Profiling (TBP), Event-Based Profiling (EBP), Instruction-Based Sampling (IBS) and CPU hardware performance monitors. The CodeXL CPU profiler replaces AMD CodeAnalyst.
= Static Shader/Kernel Analyzer =
CodeXL's static kernel analyzer allows engineers to compile, analyze and disassemble the code of DirectX, OpenGL and Vulkan shaders and OpenCL kernels. The tool provides performance estimation for each shader/kernel on different kinds of AMD chips, without actually executing the code. This way, the tool assists in fine-tuning to achieve best performance on AMD GPUs.{{cite web |url=http://gpuopen.com/gaming-product/amd-codexl-analyzercli/ |title=CodeXL Analyzer CLI – GPUOpen |website=gpuopen.com |url-status=dead |archive-url=https://web.archive.org/web/20160126165852/http://gpuopen.com/gaming-product/amd-codexl-analyzercli/ |archive-date=2016-01-26}}{{Cite web|url=http://gpuopen.com/up-and-running-with-codexl-analyzer-cli/|title=Up and Running with CodeXL Analyzer CLI|access-date=2017-02-11|archive-date=2019-01-09|archive-url=https://web.archive.org/web/20190109012040/https://gpuopen.com/up-and-running-with-codexl-analyzer-cli/|url-status=dead}}
== Radeon GPU Analyzer (RGA) ==
In Q1 2017, AMD CodeXL Analyzer was replaced by Radeon GPU Analyzer (RGA), maintaining backward compatibility. Radeon GPU Analyzer CLI is an offline compiler and a performance analysis tool for DirectX shaders, OpenGL shaders, Vulkan shaders and OpenCL kernels.{{Cite web|url=https://github.com/GPUOpen-Tools/RGA|title=RGA (Radeon™ GPU Analyzer)|website=GitHub|date=11 October 2021}}
= HSA profiler =
= Graphics Frame Analyzer =
The Frame Analyzer can collect and display a frame timeline for applications that use Microsoft DirectX 12 or Vulkan. The analyzer's view lists each API call that was made on the CPU side and its corresponding command that executed on the GPU side in an inter-linked and unified timeline view, as well as aggregated statistics for user-selected specific time fragment – cumulative time for each type of API, number of calls, 20 longest calls and more.
Supported platforms
CodeXL officially supports both Linux and Microsoft Windows operating systems. On Windows, CodeXL is available both as a standalone application and as a fully integrated Microsoft Visual Studio extension.
CodeXL was successfully used to debug Bullet.{{cite web |url=http://www.slideshare.net/DevCentralAMD/gs4150-erwincoumans |title=Bullet 3 OpenCL Rigid Body Simulation |date=2013-11-21}}
Versions and availability
- AMD CodeXL 1.0, released on December 4, 2012.http://developer.amd.com/community/blog/2012/12/04/continue-your-heterogeneous-computing-hc-development-with-amd-codexl-1-0-final-release-now-available/ AMD Developer Central CodeXL 1.0 release blog post
- AMD CodeXL 1.1, released on February 27, 2013.http://developer.amd.com/community/blog/2013/02/27/amd-codexl-version-1-1-released-to-developer-amd-com/ AMD Developer Central CodeXL 1.1 release blog post
- AMD CodeXL 1.2, released on July 9, 2013.http://developer.amd.com/community/blog/2013/07/09/latest-versions-of-amd-codexl-bolt-and-amd-app-sdk-now-available/ AMD Developer Central CodeXL 1.2 release blog post
- AMD CodeXL 1.3, released on November 11, 2013.http://developer.amd.com/community/blog/2013/11/08/codexl-1-3-released/ AMD Developer Central CodeXL 1.3 release blog post
- AMD CodeXL 1.4, released on April 11, 2014.http://developer.amd.com/community/blog/2014/04/15/codexl-1-4-released/ AMD Developer Central CodeXL 1.4 release blog post
- AMD CodeXL 1.5, released on September 22, 2014.http://developer.amd.com/community/blog/2014/09/22/whats-new-codexl-1-5/ AMD Developer Central "What's New in CodeXL 1.5?" blog post
- AMD CodeXL 1.6, released on December 16, 2014.http://developer.amd.com/community/blog/2014/12/16/whats-new-amd-codexl-1-6/ AMD Developer Central "What's New in CodeXL 1.6?" blog post
- AMD CodeXL 1.7, released on April 28. 2015.http://developer.amd.com/community/blog/2015/04/28/amd-codexl-1-7/ AMD Developer Central "AMD CodeXL 1.7 is here!" blog post
- AMD CodeXL 1.8, released on August 20. 2015.http://developer.amd.com/community/blog/2015/08/20/amd-codexl-1-8-released/ AMD Developer Central "CodeXL 1.8 Release Loaded With Features" blog post
- CodeXL 2.0, released on April 19, 2016.
- CodeXL 2.1, released on May 31, 2016.{{Cite web|url=http://gpuopen.com/codexl-2-1-is-out-and-searing-hot-with-vulkan/|title=CodeXL 2.1 is out and Searing hot with Vulkan - GPUOpen|date=2016-05-31|language=en-US|access-date=2016-08-15|archive-date=2016-08-15|archive-url=https://web.archive.org/web/20160815153508/http://gpuopen.com/codexl-2-1-is-out-and-searing-hot-with-vulkan/|url-status=dead}}
- CodeXL 2.2, released on August 8, 2016.{{Cite web|url=http://gpuopen.com/blazing-codexl-2-2/|title=Blazing CodeXL 2.2 is here! - GPUOpen|date=2016-08-08|language=en-US|access-date=2016-08-15|archive-date=2016-08-15|archive-url=https://web.archive.org/web/20160815151430/http://gpuopen.com/blazing-codexl-2-2/|url-status=dead}}
- CodeXL 2.4, released on June 20, 2017.
- CodeXL 2.5, released on September 26, 2017.
- CodeXL 2.6, released on October 15, 2018.{{Cite web|url=https://gpuopen.com/codexl-2-6-released/|title=CodeXL 2.6 is released! - GPUOpen|date=2018-10-15|language=en-US|access-date=2018-10-15|archive-date=2018-10-25|archive-url=https://web.archive.org/web/20181025145916/https://gpuopen.com/codexl-2-6-released/|url-status=dead}}
The latest version of CodeXL is freely available for download on the CodeXL GitHub releases page.
GPU PerfStudio
GPU PerfStudio is AMD's performance and debugging tool for graphics applications. It was initially developed to support Direct3D and OpenGL on Microsoft Windows only and was ported to Linux during 2013 and is available for Linux since the end of Q1 2014. The suite of tools is considered useful when developing games for Steam Linux and especially useful when optimizing games for AMD GPUs.
GPU PerfStudio has an integrated Frame Profiles, Frame Debugger and API Trace with CPU timing information.
GPU PerfStudio supports Direct3D 10, Direct3D 10.1, Direct3D 11 and OpenGL 4.2. It is described as a lightweight, no installer, no change to your game, drag and drop suite of GPU tools. It can be run from a USB drive, there is no need for Visual Studio integration, it runs with game executables, it does not require a special driver or a new compilation.
GPU PerfStudio 3.6 supports Direct3D 12 on Windows 10 and Vulkan on Windows and Linux.{{cite web |url=http://developer.amd.com/tools-and-sdks/graphics-development/gpu-perfstudio/gpuperfstudio-vulkan-tools/ |title=GPUPerfStudio Vulkan Tools |publisher=AMD |access-date=2016-10-15 |archive-url=https://web.archive.org/web/20170129175124/http://developer.amd.com/tools-and-sdks/graphics-development/gpu-perfstudio/gpuperfstudio-vulkan-tools/ |archive-date=2017-01-29 |url-status=dead }}
GPU PerfStudio is available for Linux and Microsoft Windows.
At the AMD Developer Summit (APU) in November 2013 Gordon Selley presented GPU PerfStudio 2.{{cite web |url=http://www.slideshare.net/DevCentralAMD/gs4136-optimizing-game-development-using-amds-gpu-perfstudio-2-by-gordon-selley |title=Optimizing Game Development using AMD GPU PerfStudio 2 |date=2013-11-21}}
At the SteamDevDays in February 2014, Tony Hosier and Gordon Selley presented GPU PerfStudio 2 in a 43 minutes video.{{Cite web |url=http://developer.amd.com/tools-and-sdks/graphics-development/gpu-perfstudio/ |title=GPU PerfStudio - AMD |access-date=2015-02-07 |archive-url=https://web.archive.org/web/20150107193040/http://developer.amd.com/tools-and-sdks/graphics-development/gpu-perfstudio/ |archive-date=2015-01-07 |url-status=dead }}
= Frame Debugger =
= Frame Profiles =
= Shader Debugger =
= API Trace =
= GPUPerfAPI =
GPUPerfAPI is AMD's library for accessing GPU performance counters on AMD Radeon graphics cards and APUs. It is used by GPU PerfStudio and CodeXL and is also available to third-party developers who wish to incorporate it within their own applications. GPUPerfAPI supports DirectX11, OpenGL, and OpenCL applications. GPUPerfAPI is available for Linux and Microsoft Windows.{{Cite web |url=http://developer.amd.com/tools-and-sdks/graphics-development/gpuperfapi/ |title=GPUPerfAPI - AMD |access-date=2015-02-07 |archive-url=https://web.archive.org/web/20150107193127/http://developer.amd.com/tools-and-sdks/graphics-development/gpuperfapi/ |archive-date=2015-01-07 |url-status=dead }}
See also
{{Portal|Free and open-source software}}
References
{{Reflist|30em}}
Notes
{{notelist}}