Files
rocm-systems/samples/2_Cookbook/19_cmake_lang
ROCm CI Service Account a94de8f202 SWDEV-339113 - update coordinate in HIP sample kernels (#2736)
Change-Id: I8ea179b4ba8f1c0ebec830a5aa5947e843f06e42
2022-06-15 11:22:27 +05:30
..
2021-07-08 12:51:46 -04:00
2021-07-08 12:51:46 -04:00
2021-07-08 12:51:46 -04:00

This will test cmake lang support: CXX and Fortran

I. Prepare

  1. You must install cmake version 3.18 or above to support LINK_LANGUAGE. Otherwise, Fortran build will fail. To download the latest cmake, see https://cmake.org/download/.
  2. If there is no Fortran on your system, you must install it via, sudo apt install gfortran

II. Build mkdir -p build; cd build rm -rf *; CXX=hipconfig -l/clang++ FC=$(which gfortran) cmake .. make

III. Test

./test_fortran

Succeeded testing Fortran!

./test_cpp

Device name Device 66a7 PASSED!