[Openmp-commits] [openmp] [libomptarget][flang] Explicitly pass the OpenMP device libraries to tests (PR #76796)

Dominik Adamski via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 3 01:20:55 PST 2024


https://github.com/DominikAdamski created https://github.com/llvm/llvm-project/pull/76796

This pull request is a follow-up of patch:
https://github.com/llvm/llvm-project/pull/68225 and it explicitly specifies OpenMP device libraries for Fortran OpenMP tests.

>From 5096a38f3cb543f45ae751bf93577c30f55fc615 Mon Sep 17 00:00:00 2001
From: Dominik Adamski <dominik.adamski at amd.com>
Date: Wed, 3 Jan 2024 02:49:46 -0600
Subject: [PATCH] [libomptarget][flang] Explicitly pass the OpenMP device
 libraries to tests

This pull request is a follow-up of patch:
https://github.com/llvm/llvm-project/pull/68225 and it explicitly
specifies OpenMP device libraries for Fortran OpenMP tests.
---
 openmp/libomptarget/test/lit.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index 19c5e5c4572227..9078561e3198e6 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -247,7 +247,7 @@ for libomptarget_target in config.libomptarget_all_targets:
             "%clang-" + libomptarget_target + add_libraries(" %s -o %t")))
         config.substitutions.append(("%libomptarget-compile-fortran-" + \
             libomptarget_target, \
-            "%flang-" + libomptarget_target + " %s -o %t"))
+            "%flang-" + libomptarget_target + add_libraries(" %s -o %t")))
         config.substitutions.append(("%libomptarget-compileoptxx-run-and-check-" + \
             libomptarget_target, \
             "%libomptarget-compileoptxx-and-run-" + libomptarget_target + \



More information about the Openmp-commits mailing list