[PATCH] D105191: [Clang][OpenMP] Add support for Static Device Libraries

Pushpinder Singh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 22 06:18:43 PDT 2021


pdhaliwal added inline comments.


================
Comment at: clang/test/Driver/fat_archive.cpp:9
+// could be resolved correctly.
+// RUN: env LIBRARY_PATH=%T/../../../../../runtimes/runtimes-bins/openmp/libomptarget %clang -O2 -target x86_64-pc-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 %s -L%S/Inputs/hip_dev_lib -lFatArchive -o - | FileCheck %s -check-prefix=LINKERROR
+// LINKERROR-NOT: error: linker command failed with exit code 1
----------------
Here, LIBRARY_PATH is specifying path to build directory of openmp runtime which might not be available when openmp is not built. Why not use %S/Inputs directory and put the required files into that?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105191/new/

https://reviews.llvm.org/D105191



More information about the cfe-commits mailing list