aboutsummaryrefslogtreecommitdiff
path: root/openmp/docs
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-08-03 08:48:26 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-08-03 09:37:47 -0500
commit46642cc83dc575962e1a6eb557714319c65ca5b8 (patch)
tree138dfcc3591d713f9713b303de691a7e0cdab48a /openmp/docs
parent54683405532722b2e1c1677fbc18e2df69a05307 (diff)
downloadllvm-46642cc83dc575962e1a6eb557714319c65ca5b8.zip
llvm-46642cc83dc575962e1a6eb557714319c65ca5b8.tar.gz
llvm-46642cc83dc575962e1a6eb557714319c65ca5b8.tar.bz2
[Libomptarget] Remove debug RAII from libomptarget
This feature was supposed to allow you to trace execution inside of Libomptarget. However, this never really worked properly. The printing was always reoganized, only worked for single threads, and pretty much only told you a handful of things about a runtime library that's an implementation detail to all users. Despite this, it contributed about 40% of the total filesize of the deviceRTL. This patch simply removes this functionalit which I think was past due. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D157001
Diffstat (limited to 'openmp/docs')
-rw-r--r--openmp/docs/design/Runtimes.rst30
1 files changed, 0 insertions, 30 deletions
diff --git a/openmp/docs/design/Runtimes.rst b/openmp/docs/design/Runtimes.rst
index 84a65b1..e681252 100644
--- a/openmp/docs/design/Runtimes.rst
+++ b/openmp/docs/design/Runtimes.rst
@@ -1452,34 +1452,4 @@ to selectively enable and disable different features. Currently, the following
debugging features are supported.
* Enable debugging assertions in the device. ``0x01``
- * Enable OpenMP runtime function traces in the device. ``0x2``
* Enable diagnosing common problems during offloading . ``0x4``
-
-.. code-block:: c++
-
- void copy(double *X, double *Y) {
- #pragma omp target teams distribute parallel for
- for (std::size_t i = 0; i < N; ++i)
- Y[i] = X[i];
- }
-
-Compiling this code targeting ``nvptx64`` with debugging enabled will
-provide the following output from the device runtime library.
-
-.. code-block:: console
-
- $ clang++ -fopenmp -fopenmp-targets=nvptx64 -fopenmp-target-debug=3
- $ env LIBOMPTARGET_DEVICE_RTL_DEBUG=3 ./zaxpy
-
-.. code-block:: text
-
- Kernel.cpp:70: Thread 0 Entering int32_t __kmpc_target_init()
- Parallelism.cpp:196: Thread 0 Entering int32_t __kmpc_global_thread_num()
- Mapping.cpp:239: Thread 0 Entering uint32_t __kmpc_get_hardware_num_threads_in_block()
- Workshare.cpp:616: Thread 0 Entering void __kmpc_distribute_static_init_4()
- Parallelism.cpp:85: Thread 0 Entering void __kmpc_parallel_51()
- Parallelism.cpp:69: Thread 0 Entering <OpenMP Outlined Function>
- Workshare.cpp:575: Thread 0 Entering void __kmpc_for_static_init_4()
- Workshare.cpp:660: Thread 0 Entering void __kmpc_distribute_static_fini()
- Workshare.cpp:660: Thread 0 Entering void __kmpc_distribute_static_fini()
- Kernel.cpp:103: Thread 0 Entering void __kmpc_target_deinit()