Skip to content

Commit e8fe4c9

Browse files
committed
no stub-check for ompt api calls
1 parent 01508a8 commit e8fe4c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/src/ompt-general.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ OMPT_API_ROUTINE int ompt_get_task_info(
413413
OMPT_API_ROUTINE int ompt_get_num_places(void)
414414
{
415415
//copied from kmp_ftn_entry.h (but modified)
416-
#if defined(KMP_STUB) || !KMP_AFFINITY_SUPPORTED
416+
#if !KMP_AFFINITY_SUPPORTED
417417
return 0;
418418
#else
419419
if (!KMP_AFFINITY_CAPABLE())
@@ -428,7 +428,7 @@ OMPT_API_ROUTINE int ompt_get_place_proc_ids(
428428
int *ids)
429429
{
430430
//copied from kmp_ftn_entry.h (but modified)
431-
#if defined(KMP_STUB) || !KMP_AFFINITY_SUPPORTED
431+
#if !KMP_AFFINITY_SUPPORTED
432432
return 0;
433433
#else
434434
int i,j,count;
@@ -463,7 +463,7 @@ OMPT_API_ROUTINE int ompt_get_place_proc_ids(
463463
OMPT_API_ROUTINE int ompt_get_place_num(void)
464464
{
465465
//copied from kmp_ftn_entry.h (but modified)
466-
#if defined(KMP_STUB) || !KMP_AFFINITY_SUPPORTED
466+
#if !KMP_AFFINITY_SUPPORTED
467467
return -1;
468468
#else
469469
int gtid;
@@ -483,7 +483,7 @@ OMPT_API_ROUTINE int ompt_get_partition_place_nums(
483483
int *place_nums)
484484
{
485485
//copied from kmp_ftn_entry.h (but modified)
486-
#if defined(KMP_STUB) || !KMP_AFFINITY_SUPPORTED
486+
#if !KMP_AFFINITY_SUPPORTED
487487
return 0;
488488
#else
489489
int i, gtid, place_num, first_place, last_place, start, end;

0 commit comments

Comments
 (0)