[PATCH] D43197: [OpenMP] Add flag for linking runtime bitcode library

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 13 01:28:58 PST 2018


Hahnfeld added inline comments.


================
Comment at: test/Driver/openmp-offload-gpu.c:150
+/// bitcode library that will be found via the LIBRARY_PATH.
+// RUN:   touch /tmp/libomptarget-nvptx-sm_60.bc
+// RUN:   LIBRARY_PATH=/tmp %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
----------------
This should not be in `/tmp` but probably `%T`.


================
Comment at: test/Driver/openmp-offload-gpu.c:151
+// RUN:   touch /tmp/libomptarget-nvptx-sm_60.bc
+// RUN:   LIBRARY_PATH=/tmp %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda \
+// RUN:   -Xopenmp-target -march=sm_60 -fopenmp-relocatable-target -save-temps \
----------------
You may want to add `env` which should make this check portable because `lit` on Windows does the right thing then (I don't know if this test is run on Windows, it probably is)


Repository:
  rC Clang

https://reviews.llvm.org/D43197





More information about the cfe-commits mailing list