summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/ompt
diff options
context:
space:
mode:
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