summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/ompt
diff options
context:
space:
mode:
authorJoachim Protze <protze@itc.rwth-aachen.de>2018-08-15 13:54:28 +0000
committerJoachim Protze <protze@itc.rwth-aachen.de>2018-08-15 13:54:28 +0000
commite1a04b4659a6cc7ef0f777622b38c3da3535b92d (patch)
treedc67f515f3b32beb2c5ee2e3e863855117e40e9e /openmp/runtime/test/ompt
parentfabf7fe5f86db42d9bdc98942c3d522cf5889d53 (diff)
downloadbcm5719-llvm-e1a04b4659a6cc7ef0f777622b38c3da3535b92d.tar.gz
bcm5719-llvm-e1a04b4659a6cc7ef0f777622b38c3da3535b92d.zip
[OMPT] Remove OMPT idle callback
The idle callback was removed from the spec as of TR7. This removes it from the implementation. Patch provided by Simon Convent Reviewers: hbae, protze.joachim Differential Revision: https://reviews.llvm.org/D48362 llvm-svn: 339771
Diffstat (limited to 'openmp/runtime/test/ompt')
-rwxr-xr-xopenmp/runtime/test/ompt/callback.h16
-rw-r--r--openmp/runtime/test/ompt/misc/idle.c32
2 files changed, 0 insertions, 48 deletions
diff --git a/openmp/runtime/test/ompt/callback.h b/openmp/runtime/test/ompt/callback.h
index f1191ad8a79..1ded070e03f 100755
--- a/openmp/runtime/test/ompt/callback.h
+++ b/openmp/runtime/test/ompt/callback.h
@@ -414,21 +414,6 @@ on_ompt_callback_cancel(
}
static void
-on_ompt_callback_idle(
- ompt_scope_endpoint_t endpoint)
-{
- switch(endpoint)
- {
- case ompt_scope_begin:
- printf("%" PRIu64 ": ompt_event_idle_begin:\n", ompt_get_thread_data()->value);
- break;
- case ompt_scope_end:
- printf("%" PRIu64 ": ompt_event_idle_end:\n", ompt_get_thread_data()->value);
- break;
- }
-}
-
-static void
on_ompt_callback_implicit_task(
ompt_scope_endpoint_t endpoint,
ompt_data_t *parallel_data,
@@ -732,7 +717,6 @@ int ompt_initialize(
register_callback(ompt_callback_control_tool);
register_callback(ompt_callback_flush);
register_callback(ompt_callback_cancel);
- register_callback(ompt_callback_idle);
register_callback(ompt_callback_implicit_task);
register_callback_t(ompt_callback_lock_init, ompt_callback_mutex_acquire_t);
register_callback_t(ompt_callback_lock_destroy, ompt_callback_mutex_t);
diff --git a/openmp/runtime/test/ompt/misc/idle.c b/openmp/runtime/test/ompt/misc/idle.c
deleted file mode 100644
index 7413c32fe12..00000000000
--- a/openmp/runtime/test/ompt/misc/idle.c
+++ /dev/null
@@ -1,32 +0,0 @@
-// RUN: %libomp-compile-and-run | FileCheck %s
-// REQUIRES: ompt
-#include "callback.h"
-#include <omp.h>
-
-int main()
-{
- int x = 0;
- #pragma omp parallel num_threads(3)
- {
- #pragma omp atomic
- x++;
- }
- #pragma omp parallel num_threads(2)
- {
- #pragma omp atomic
- x++;
- }
-
-
- printf("x=%d\n", x);
-
- // Check if libomp supports the callbacks for this test.
- // CHECK-NOT: {{^}}0: Could not register callback 'ompt_callback_idle'
-
- // CHECK: 0: NULL_POINTER=[[NULL:.*$]]
-
- // CHECK: {{^}}[[THREAD_ID:[0-9]+]]: ompt_event_idle_begin:
- // CHECK: {{^}}[[THREAD_ID]]: ompt_event_idle_end:
-
- return 0;
-}
OpenPOWER on IntegriCloud