You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Sohaib Nadeem 8d406e6fec
Add CTest module to subdirectories' CMakeLists files (#191)
5 months ago
..
bitonic_sort Re-generated VS .vcxproj and .vcxproj.filters files 7 months ago
convolution Re-generated VS .vcxproj and .vcxproj.filters files 7 months ago
floyd_warshall Re-generated VS .vcxproj and .vcxproj.filters files 7 months ago
histogram Re-generated VS .vcxproj and .vcxproj.filters files 7 months ago
monte_carlo_pi Re-generated VS .vcxproj and .vcxproj.filters files 7 months ago
prefix_sum Re-generated VS .vcxproj and .vcxproj.filters files 7 months ago
CMakeLists.txt Add CTest module to subdirectories' CMakeLists files (#191) 5 months ago
Makefile HIP SDK Application Examples (part II) (#50) 2 years ago
README.md Develop Stream: update to ROCm 6.1 (#138) 1 year ago

README.md

Applications Examples

Summary

The examples in this subdirectory showcase several GPU-implementations of finance, computer science, physics, etc. models or algorithms that additionally offer a command line application. The examples are build on Linux for the ROCm (AMD GPU) backend. Some examples additionally support the CUDA (NVIDIA GPU) backend.

Prerequisites

Linux

  • CMake (at least version 3.21)
  • OR GNU Make - available via the distribution's package manager
  • ROCm (at least version 6.x.x)

Windows

  • Visual Studio 2019 or 2022 with the "Desktop Development with C++" workload
  • ROCm toolchain for Windows (No public release yet)
    • The Visual Studio ROCm extension needs to be installed to build with the solution files.
  • CMake (optional, to build with CMake. Requires at least version 3.21)
  • Ninja (optional, to build with CMake)

Building

Linux

Make sure that the dependencies are installed, or use one of the provided Dockerfiles to build and run the examples in a containerized environment.

Using CMake

All examples in the Applications subdirectory can either be built by a single CMake project or be built independently.

  • $ cd Libraries/Applications
  • $ cmake -S . -B build (on ROCm) or $ cmake -S . -B build -D GPU_RUNTIME=CUDA (on CUDA, when supported)
  • $ cmake --build build

Using Make

All examples can be built by a single invocation to Make or be built independently.

  • $ cd Libraries/Applications
  • $ make (on ROCm) or $ make GPU_RUNTIME=CUDA (on CUDA, when supported)

Windows

Visual Studio

Visual Studio solution files are available for the individual examples. To build all supported HIP runtime examples open the top level solution file ROCm-Examples-VS2019.sln and filter for Applications.

For more detailed build instructions refer to the top level README.md.

CMake

All examples in the Applications subdirectory can either be built by a single CMake project or be built independently. For build instructions refer to the top-level README.md.