[Openmp-commits] [PATCH] D101326: [OpenMP][libomptarget][test] Separate lit tests for different offloading targets (2/2)

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 26 14:27:49 PDT 2021


protze.joachim created this revision.
protze.joachim added reviewers: pdhaliwal, JonChesterfield, tianshilei1992, Meinersbur.
protze.joachim added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
protze.joachim requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

The first part of this patch (D101315 <https://reviews.llvm.org/D101315>) separates libomptarget tests into a lit instance per offloading target.
This allows to fuse the RUN lines for most tests.

This patch updates the RUN lines in libomptarget tests to use a generic run line independent of the offloading target selected for the lit instance.

In cases, where no RUN line was defined for a specific offloading target, the corresponding target is declared as XFAIL. If it turns out that a test actually supports the target, the XFAIL line can be removed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101326

Files:
  openmp/libomptarget/test/api/is_initial_device.c
  openmp/libomptarget/test/api/omp_get_num_devices.c
  openmp/libomptarget/test/api/omp_get_num_devices_with_empty_target.c
  openmp/libomptarget/test/env/base_ptr_ref_count.c
  openmp/libomptarget/test/env/omp_target_debug.c
  openmp/libomptarget/test/mapping/alloc_fail.c
  openmp/libomptarget/test/mapping/data_absent_at_exit.c
  openmp/libomptarget/test/mapping/data_member_ref.cpp
  openmp/libomptarget/test/mapping/declare_mapper_api.cpp
  openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers.cpp
  openmp/libomptarget/test/mapping/declare_mapper_nested_mappers.cpp
  openmp/libomptarget/test/mapping/declare_mapper_target.cpp
  openmp/libomptarget/test/mapping/declare_mapper_target_data.cpp
  openmp/libomptarget/test/mapping/declare_mapper_target_data_enter_exit.cpp
  openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp
  openmp/libomptarget/test/mapping/delete_inf_refcount.c
  openmp/libomptarget/test/mapping/lambda_mapping.cpp
  openmp/libomptarget/test/mapping/pr38704.c
  openmp/libomptarget/test/mapping/present/target.c
  openmp/libomptarget/test/mapping/present/target_array_extension.c
  openmp/libomptarget/test/mapping/present/target_data.c
  openmp/libomptarget/test/mapping/present/target_data_array_extension.c
  openmp/libomptarget/test/mapping/present/target_data_at_exit.c
  openmp/libomptarget/test/mapping/present/target_enter_data.c
  openmp/libomptarget/test/mapping/present/target_exit_data_delete.c
  openmp/libomptarget/test/mapping/present/target_exit_data_release.c
  openmp/libomptarget/test/mapping/present/target_update.c
  openmp/libomptarget/test/mapping/present/target_update_array_extension.c
  openmp/libomptarget/test/mapping/present/unified_shared_memory.c
  openmp/libomptarget/test/mapping/present/zero_length_array_section.c
  openmp/libomptarget/test/mapping/present/zero_length_array_section_exit.c
  openmp/libomptarget/test/mapping/private_mapping.c
  openmp/libomptarget/test/mapping/ptr_and_obj_motion.c
  openmp/libomptarget/test/mapping/target_data_array_extension_at_exit.c
  openmp/libomptarget/test/mapping/target_implicit_partial_map.c
  openmp/libomptarget/test/mapping/target_update_array_extension.c
  openmp/libomptarget/test/offloading/assert.cpp
  openmp/libomptarget/test/offloading/bug47654.cpp
  openmp/libomptarget/test/offloading/bug49021.cpp
  openmp/libomptarget/test/offloading/bug49334.cpp
  openmp/libomptarget/test/offloading/d2d_memcpy.c
  openmp/libomptarget/test/offloading/dynamic_module.c
  openmp/libomptarget/test/offloading/dynamic_module_load.c
  openmp/libomptarget/test/offloading/host_as_target.c
  openmp/libomptarget/test/offloading/info.c
  openmp/libomptarget/test/offloading/lone_target_exit_data.c
  openmp/libomptarget/test/offloading/looptripcnt.c
  openmp/libomptarget/test/offloading/mandatory_but_no_devices.c
  openmp/libomptarget/test/offloading/memory_manager.cpp
  openmp/libomptarget/test/offloading/non_contiguous_update.cpp
  openmp/libomptarget/test/offloading/offloading_success.c
  openmp/libomptarget/test/offloading/offloading_success.cpp
  openmp/libomptarget/test/offloading/parallel_offloading_map.cpp
  openmp/libomptarget/test/offloading/requires.c
  openmp/libomptarget/test/offloading/target_depend_nowait.cpp
  openmp/libomptarget/test/unified_shared_memory/api.c
  openmp/libomptarget/test/unified_shared_memory/close_enter_exit.c
  openmp/libomptarget/test/unified_shared_memory/close_manual.c
  openmp/libomptarget/test/unified_shared_memory/close_modifier.c
  openmp/libomptarget/test/unified_shared_memory/shared_update.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101326.340649.patch
Type: text/x-patch
Size: 70036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210426/54fd1924/attachment-0001.bin>


More information about the Openmp-commits mailing list