Lightweight Parallel Foundations 1.0.1-alpha 2023-06-26T11:02:34Z
A high performance and model-compliant communication layer
hybrid.h
Go to the documentation of this file.
1
2/*
3 * Copyright 2021 Huawei Technologies Co., Ltd.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef LPFLIB_HYBRID_H
19#define LPFLIB_HYBRID_H
20
21#include <lpf/core.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
61extern _LPFLIB_API
63 LPF_RENAME_PRIMITIVE4( lpf, pthread, LPF_CORE_IMPL_CONFIG, _t) thread,
64 LPF_RENAME_PRIMITIVE4( lpf, mpimsg, LPF_CORE_IMPL_CONFIG, _t) mpi,
65 lpf_pid_t threadId, lpf_pid_t nThreads,
66 lpf_pid_t nodeId, lpf_pid_t nNodes, lpf_init_t * init );
67
68
69
70/* Releases all resources associated with a #lpf_init_t object that was initialised using
71 * lpf_hybrid_initialize(). This function must be called collectively by all
72 * processes that participated in the initialization.
73
74 * \param[in] init The #lpf_init_t object that was created through
75 * lpf_hybrid_intialize().
76 *
77 * \returns #LPF_SUCCESS
78 * when resources were successfully released.
79 *
80 * \returns #LPF_ERR_FATAL
81 * when the system encountered an unrecoverable error.
82 */
83extern _LPFLIB_API
85
93#ifdef __cplusplus
94}
95#endif
96
97#endif
typedef lpf_init_t
Definition: core.h:919
typedef lpf_pid_t
Definition: core.h:786
typedef lpf_err_t
Definition: core.h:871
lpf_err_t lpf_hybrid_initialize(CONCATENATE(lpf, pthread, LPF_CORE_IMPL_CONFIG, _t) thread, CONCATENATE(lpf, mpimsg, LPF_CORE_IMPL_CONFIG, _t) mpi, lpf_pid_t threadId, lpf_pid_t nThreads, lpf_pid_t nodeId, lpf_pid_t nNodes, lpf_init_t *init)
lpf_err_t lpf_hybrid_finalize(lpf_init_t init)