Files
rocm-systems/projects/hip-tests/samples
Aravindan Cheruvally 9e559345d2 Revert "SWDEV-342167, SWDEV-461080 - Remove Hard Coded Install Permission"
This reverts commit e495390b7f.

Reason for revert: Observing issue SWDEV-488249 due to catch test permission settings. 

Change-Id: Ifdc55e4eb3938c9bc0b9af0a4e9dc9ba366614b3


[ROCm/hip-tests commit: c2671515df]
2024-10-02 10:33:03 -04:00
..

Build procedure

The CMakeLists.txt at hip-tests/samples folder can be used for building and packaging samples.

CMakeLists.txt can support shared and static libs of hip-rocclr runtime. The same steps can be followed for both.

  1. To build a specific sample (e.g. 0_Intro/bit_extract) run ..

cd samples/0_Intro/bit_extract

mkdir -p build && cd build

cmake ..

make all

  1. To build all samples together run ..

cd hip-tests

mkdir -p build && cd build

rm -rf * (to clear up)

cmake ../samples

make build_samples

In order to build specific samples (Intro, Utils or Cookbook) run ..

make build_intro make build_utils make build_cookbook

Note that if you want debug version, add "-DCMAKE_BUILD_TYPE=Debug" in cmake cmd.

  1. To package samples and generate packages. From hip-tests/build

cmake ../samples

make package_samples

Note: sample 2_Cookbook/22_cmake_hip_lang is current not included in toplevel cmake. To build this sample from toplevel cmake, uncomment Line 43 inside samples/2_Cookbook/CMakeLists.txt.