-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differentiate between Pthread and OpenMP Infrastructure. (#210)
Signed-off-by: Samuel K. Gutierrez <[email protected]>
- Loading branch information
1 parent
244c3ae
commit c70d13c
Showing
17 changed files
with
344 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* -*- Mode: C; c-basic-offset:4; indent-tabs-mode:nil -*- */ | ||
/* | ||
* Copyright (c) 2022-2024 Triad National Security, LLC | ||
* All rights reserved. | ||
* | ||
* Copyright (c) 2022-2024 Inria | ||
* All rights reserved. | ||
* | ||
* Copyright (c) 2022-2024 Bordeaux INP | ||
* All rights reserved. | ||
* | ||
* This file is part of the quo-vadis project. See the LICENSE file at the | ||
* top-level directory of this distribution. | ||
*/ | ||
|
||
/** | ||
* @file quo-vadis-omp.h | ||
*/ | ||
|
||
#ifndef QUO_VADIS_OMP_H | ||
#define QUO_VADIS_OMP_H | ||
|
||
#include "quo-vadis.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
int | ||
qv_omp_scope_get( | ||
qv_scope_intrinsic_t iscope, | ||
qv_scope_t **scope | ||
); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
|
||
/* | ||
* vim: ft=cpp ts=4 sts=4 sw=4 expandtab | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* -*- Mode: C++; c-basic-offset:4; indent-tabs-mode:nil -*- */ | ||
/* | ||
* Copyright (c) 2022-2024 Triad National Security, LLC | ||
* All rights reserved. | ||
* | ||
* Copyright (c) 2022-2024 Inria | ||
* All rights reserved. | ||
* | ||
* Copyright (c) 2022-2024 Bordeaux INP | ||
* All rights reserved. | ||
* | ||
* This file is part of the quo-vadis project. See the LICENSE file at the | ||
* top-level directory of this distribution. | ||
*/ | ||
|
||
/** | ||
* @file quo-vadis-thread.cc | ||
*/ | ||
|
||
#include "qvi-common.h" // IWYU pragma: keep | ||
#include "quo-vadis-omp.h" | ||
#include "qvi-group-omp.h" | ||
#include "qvi-scope.h" | ||
#include "qvi-utils.h" | ||
|
||
int | ||
qv_omp_scope_get( | ||
qv_scope_intrinsic_t iscope, | ||
qv_scope_t **scope | ||
) { | ||
// Create the base process group. | ||
qvi_group_omp_s *zgroup = nullptr; | ||
const int rc = qvi_new(&zgroup); | ||
if (rc != QV_SUCCESS) { | ||
*scope = nullptr; | ||
return rc; | ||
} | ||
return qvi_scope_get(zgroup, iscope, scope); | ||
} | ||
|
||
/* | ||
* vim: ft=cpp ts=4 sts=4 sw=4 expandtab | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.