[OpenMP][Offloading] Add a CMake argument LIBOMPTARGET_LIT_ARGS to control behavior...
authorShilei Tian <tianshilei1992@gmail.com>
Sun, 18 Jul 2021 17:16:03 +0000 (13:16 -0400)
committerShilei Tian <tianshilei1992@gmail.com>
Sun, 18 Jul 2021 17:16:10 +0000 (13:16 -0400)
commit954711ed8f0d1eba3e7708e786a1dadf7e9a18ce
treed4639002c993c111046a7b846601ba99c99f0889
parent1b61d837b9d0eebdecab21939ba5c0e493ed7db2
[OpenMP][Offloading] Add a CMake argument LIBOMPTARGET_LIT_ARGS to control behavior of libomptarget lit test

By default, `lit` uses all threads to invoke tests, which  can easily cause out
of memory on GPUs because most of OpenMP offloading test usually take about 1GB
GPU memory, but a typical GPU only has 4-8GB memory. This patch introduce a
CMake argument `LIBOMPTARGET_LIT_ARGS` to allow users to control the behavior of
`libomptarget` tests, similar to `LLVM_LIT_ARGS`.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D106236
openmp/README.rst
openmp/libomptarget/test/CMakeLists.txt