================ @@ -0,0 +1,8 @@ +// Check that clang-repl initializes the HIP environment. HIP execution is not +// supported yet, so this only verifies that the environment is set up and that +// clang-repl reports it as unsupported. When both -cuda and -hip are passed, +// -hip wins (it appears later), so the HIP path is taken. + +// RUN: not clang-repl -cuda -hip 2>&1 | FileCheck %s ---------------- yxsamliu wrote:
The feature check only verifies that ROCm is installed, but this test also triggers GPU auto-detection. It may fail on systems without a GPU. Since the test does not execute device code, could it pass an explicit `--offload-arch=gfx1100`? https://github.com/llvm/llvm-project/pull/217582 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
