Files
rocm-systems/samples/2_Cookbook/21_cmake_hip_cxx_clang/README.md
T
ROCm CI Service Account dcf336b09d SWDEV-336007 - Add sample which verifies CXX language support with amdclang++ (#2733)
Change-Id: Ib4dbe1ce66a7dbd4f60f0a2134d62bdf366aeac5
2022-06-15 13:27:42 -07:00

535 B

This sample tests CXX Language support with amdclang++

I. Build mkdir -p build; cd build rm -rf *; CXX=hipconfig -l/amdclang++ cmake .. (or) cmake -DCMAKE_CXX_COMPILER=/opt/rocm/bin/amdclang++ .. (or) cmake -DCMAKE_CXX_COMPILER=/opt/rocm-X.Y.Z/llvm/bin/amdclang++ .. make

II. Test $ ./square info: running on device Vega 20 [Radeon Pro Vega 20] info: allocate host mem ( 7.63 MB) info: allocate device mem ( 7.63 MB) info: copy Host2Device info: launch 'vector_square' kernel info: copy Device2Host info: check result PASSED!