fba826fc3c
Recent compiler patch https://github.com/llvm/llvm-project/pull/81700/ introduced changes to certain hip external symbols clang emits. This patch makes the tests "16_assembly_to_executable" and "17_llvm_ir_to_executable" follow these changes. I expect comments on whether this is an unintended compiler behaviour that needs fix in compiler or this is the proper fix. Change-Id: I3943f5365600f683a65c98c6d17c14a5e4192351
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.
- 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
- 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.
- To package samples and generate packages. From hip-tests/build
cmake ../samples
make package_samples