From 787cd5c4400f8991862141b301376a95cbf7e3a3 Mon Sep 17 00:00:00 2001 From: Cordell Bloor Date: Thu, 9 Mar 2023 01:53:43 -0700 Subject: [PATCH] d/qualify-clang.sh: add test for hip-lang --- debian/qualify-clang.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 1804077f..d0e300fa 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -1665,6 +1665,18 @@ if test ! -f /usr/lib/llvm-$VERSION/lib/libclangBasic.a; then exit 1 fi +# check that the hip language is functioning +echo "Testing HIP language ..." +echo "if this fails, please run" +echo "apt-get install hipcc" +if test $VERSION -eq 15; then + cat > foo.hip < +int main() { return 0; } +EOF + clang++-15 -x hip -lamdhip64 foo.hip +fi + #clean up rm -f a.out bar crash-* foo foo.* lldb-cmd.txt main.* test_fuzzer.cc foo.* o rm -rf output matmul.* *profraw opt.ll a.json default.profdata test test.cpp