Skip to content

Commit 6bf7e2b

Browse files
authored
Merge pull request #13536 from jsquyres/pr/example-components
Removals and updates for example / demo components
2 parents 80bd9de + f2f5d14 commit 6bf7e2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+54
-1466
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Compile ignored components
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
compile-ignored:
7+
runs-on: ubuntu-24.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
submodules: recursive
12+
- name: Remove .opal_ignore files so that we build all examples
13+
run: |
14+
find . -name .opal_ignore -exec rm -f {} \; -print
15+
- name: Build Open MPI
16+
run: |
17+
./autogen.pl
18+
./configure --prefix=${PWD}/install --disable-silent-rules
19+
make -j

ompi/mca/coll/demo/coll_demo.h

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ BEGIN_C_DECLS
6464
struct ompi_datatype_t *rdtype,
6565
struct ompi_communicator_t *comm,
6666
mca_coll_base_module_t *module);
67-
int mca_coll_demo_allgatherv_inter(const void *sbuf, int scount,
67+
int mca_coll_demo_allgatherv_inter(const void *sbuf, size_t scount,
6868
struct ompi_datatype_t *sdtype,
6969
void * rbuf, ompi_count_array_t rcounts, ompi_disp_array_t disps,
7070
struct ompi_datatype_t *rdtype,
@@ -109,15 +109,15 @@ BEGIN_C_DECLS
109109
mca_coll_base_module_t *module);
110110

111111
int mca_coll_demo_alltoallw_intra(const void *sbuf, ompi_count_array_t scounts, ompi_disp_array_t sdisps,
112-
struct ompi_datatype_t **sdtypes,
112+
struct ompi_datatype_t *const *sdtypes,
113113
void *rbuf, ompi_count_array_t rcounts, ompi_disp_array_t rdisps,
114-
struct ompi_datatype_t **rdtypes,
114+
struct ompi_datatype_t *const *rdtypes,
115115
struct ompi_communicator_t *comm,
116116
mca_coll_base_module_t *module);
117-
int mca_coll_demo_alltoallw_inter(void *sbuf, ompi_count_array_t scounts, ompi_disp_array_t sdisps,
118-
struct ompi_datatype_t **sdtypes,
117+
int mca_coll_demo_alltoallw_inter(const void *sbuf, ompi_count_array_t scounts, ompi_disp_array_t sdisps,
118+
struct ompi_datatype_t *const *sdtypes,
119119
void *rbuf, ompi_count_array_t rcounts, ompi_disp_array_t rdisps,
120-
struct ompi_datatype_t **rdtypes,
120+
struct ompi_datatype_t *const *rdtypes,
121121
struct ompi_communicator_t *comm,
122122
mca_coll_base_module_t *module);
123123

@@ -159,15 +159,15 @@ BEGIN_C_DECLS
159159
int root, struct ompi_communicator_t *comm,
160160
mca_coll_base_module_t *module);
161161

162-
int mca_coll_demo_gatherv_intra(const void *sbuf, int scount,
162+
int mca_coll_demo_gatherv_intra(const void *sbuf, size_t scount,
163163
struct ompi_datatype_t *sdtype, void *rbuf,
164164
ompi_count_array_t rcounts, ompi_disp_array_t disps,
165165
struct ompi_datatype_t *rdtype, int root,
166166
struct ompi_communicator_t *comm,
167167
mca_coll_base_module_t *module);
168-
int mca_coll_demo_gatherv_inter(void *sbuf, int scount,
169-
struct ompi_datatype_t *sdtype, void *rbuf,
170-
ompi_count_array_t rcounts, ompi_disp_array_t disps,
168+
int mca_coll_demo_gatherv_inter(const void *sbuf, size_t scount,
169+
struct ompi_datatype_t *sdtype,
170+
void *rbuf, ompi_count_array_t rcounts, ompi_disp_array_t disps,
171171
struct ompi_datatype_t *rdtype, int root,
172172
struct ompi_communicator_t *comm,
173173
mca_coll_base_module_t *module);
@@ -199,15 +199,10 @@ BEGIN_C_DECLS
199199
mca_coll_base_module_t *module);
200200

201201
int mca_coll_demo_scan_intra(const void *sbuf, void *rbuf, size_t count,
202-
struct ompi_datatype_t *dtype,
203-
struct ompi_op_t *op,
204-
struct ompi_communicator_t *comm,
205-
mca_coll_base_module_t *module);
206-
int mca_coll_demo_scan_inter(const void *sbuf, void *rbuf, size_t count,
207-
struct ompi_datatype_t *dtype,
208-
struct ompi_op_t *op,
209-
struct ompi_communicator_t *comm,
210-
mca_coll_base_module_t *module);
202+
struct ompi_datatype_t *dtype,
203+
struct ompi_op_t *op,
204+
struct ompi_communicator_t *comm,
205+
mca_coll_base_module_t *module);
211206

212207
int mca_coll_demo_scatter_intra(const void *sbuf, size_t scount,
213208
struct ompi_datatype_t *sdtype, void *rbuf,

ompi/mca/coll/demo/coll_demo_allgatherv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Accepts: - same as MPI_Allgatherv()
3535
* Returns: - MPI_SUCCESS or error code
3636
*/
37-
int mca_coll_demo_allgatherv_intra(const void *sbuf, int scount,
37+
int mca_coll_demo_allgatherv_intra(const void *sbuf, size_t scount,
3838
struct ompi_datatype_t *sdtype,
3939
void * rbuf, ompi_count_array_t rcounts, ompi_disp_array_t disps,
4040
struct ompi_datatype_t *rdtype,
@@ -57,7 +57,7 @@ int mca_coll_demo_allgatherv_intra(const void *sbuf, int scount,
5757
* Accepts: - same as MPI_Allgatherv()
5858
* Returns: - MPI_SUCCESS or error code
5959
*/
60-
int mca_coll_demo_allgatherv_inter(const void *sbuf, int scount,
60+
int mca_coll_demo_allgatherv_inter(const void *sbuf, size_t scount,
6161
struct ompi_datatype_t *sdtype,
6262
void * rbuf, ompi_count_array_t rcounts, ompi_disp_array_t disps,
6363
struct ompi_datatype_t *rdtype,

ompi/mca/coll/demo/coll_demo_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_demo_component = {
6262
about the component itself */
6363

6464
.collm_version = {
65-
MCA_COLL_BASE_VERSION_2_4_0,
65+
MCA_COLL_BASE_VERSION_3_0_0,
6666

6767
/* Component name and version */
6868
.mca_component_name = "demo",

ompi/mca/coll/demo/coll_demo_gatherv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Accepts: - same arguments as MPI_Gatherv()
3535
* Returns: - MPI_SUCCESS or error code
3636
*/
37-
int mca_coll_demo_gatherv_intra(const void *sbuf, int scount,
37+
int mca_coll_demo_gatherv_intra(const void *sbuf, size_t scount,
3838
struct ompi_datatype_t *sdtype,
3939
void *rbuf, ompi_count_array_t rcounts, ompi_disp_array_t disps,
4040
struct ompi_datatype_t *rdtype, int root,
@@ -57,7 +57,7 @@ int mca_coll_demo_gatherv_intra(const void *sbuf, int scount,
5757
* Accepts: - same arguments as MPI_Gatherv()
5858
* Returns: - MPI_SUCCESS or error code
5959
*/
60-
int mca_coll_demo_gatherv_inter(const void *sbuf, int scount,
60+
int mca_coll_demo_gatherv_inter(const void *sbuf, size_t scount,
6161
struct ompi_datatype_t *sdtype,
6262
void *rbuf, ompi_count_array_t rcounts, ompi_disp_array_t disps,
6363
struct ompi_datatype_t *rdtype, int root,

ompi/mca/coll/demo/coll_demo_scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Accepts: - same arguments as MPI_Scan()
3535
* Returns: - MPI_SUCCESS or error code
3636
*/
37-
int mca_coll_demo_scan_intra(void *sbuf, void *rbuf, size_t count,
37+
int mca_coll_demo_scan_intra(const void *sbuf, void *rbuf, size_t count,
3838
struct ompi_datatype_t *dtype,
3939
struct ompi_op_t *op,
4040
struct ompi_communicator_t *comm,

ompi/mca/coll/demo/coll_demo_scatterv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
int mca_coll_demo_scatterv_intra(const void *sbuf, ompi_count_array_t scounts,
3838
ompi_disp_array_t disps, struct ompi_datatype_t *sdtype,
39-
void *rbuf, int rcount,
39+
void *rbuf, size_t rcount,
4040
struct ompi_datatype_t *rdtype, int root,
4141
struct ompi_communicator_t *comm,
4242
mca_coll_base_module_t *module)
@@ -59,7 +59,7 @@ int mca_coll_demo_scatterv_intra(const void *sbuf, ompi_count_array_t scounts,
5959
*/
6060
int mca_coll_demo_scatterv_inter(const void *sbuf, ompi_count_array_t scounts,
6161
ompi_disp_array_t disps, struct ompi_datatype_t *sdtype,
62-
void *rbuf, int rcount,
62+
void *rbuf, size_t rcount,
6363
struct ompi_datatype_t *rdtype, int root,
6464
struct ompi_communicator_t *comm,
6565
mca_coll_base_module_t *module)

ompi/mca/pml/example/.opal_ignore

Whitespace-only changes.

ompi/mca/pml/example/Makefile.am

Lines changed: 0 additions & 61 deletions
This file was deleted.

ompi/mca/pml/example/pml_example.c

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)