818aa18d59
Add test on CXX and Fortran build in cmake. Add test on hip::device interface linking in cmake. Change-Id: I3fe6dba05a7a140a9a19df107b7885df83d28042
21 righe
551 B
Markdown
21 righe
551 B
Markdown
### 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!
|