This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][Offloading] Add a CMake argument LIBOMPTARGET_LIT_ARGS to control behavior of libomptarget lit test
ClosedPublic

Authored by tianshilei1992 on Jul 18 2021, 6:32 AM.

Details

Summary

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.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Jul 18 2021, 6:32 AM
tianshilei1992 requested review of this revision.Jul 18 2021, 6:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2021, 6:32 AM

Could we add this to the openmp docs at the same time?

Aside from whitespace churn, this adds ARGS string to the invocations, which looks plausible.

rebase and fix comments

This revision is now accepted and ready to land.Jul 18 2021, 8:59 AM