Skip to content

Commit efc3a98

Browse files
author
Ralph Castain
authored
Merge pull request #3031 from rhc54/topic/ofi
Add CPPFLAGS to build of rml/ofi component.
2 parents 0db9188 + 9f8f7f3 commit efc3a98

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

contrib/platform/intel/bend/linux

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ enable_io_romio=no
2020
enable_contrib_no_build=libnbc
2121
with_memory_manager=no
2222
with_tm=no
23+
with_psm=no
24+
with_psm2=no
25+
with_libfabric=/home/common/libfabric/build
2326
with_devel_headers=yes
2427
with_portals=no
2528
with_valgrind=no

orte/mca/rml/ofi/.opal_unignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
anandhis
2+
rhc

orte/mca/rml/ofi/Makefile.am

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
1212
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
13-
# Copyright (c) 2015 Intel, Inc. All rights reserved
13+
# Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
1414
# $COPYRIGHT$
1515
#
1616
# Additional copyrights may follow
1717
#
1818
# $HEADER$
1919
#
2020

21+
AM_CPPFLAGS = $(opal_common_libfabric_CPPFLAGS)
22+
2123
sources = \
2224
rml_ofi.h \
2325
rml_ofi_request.h \
@@ -39,15 +41,9 @@ endif
3941
mcacomponentdir = $(ortelibdir)
4042
mcacomponent_LTLIBRARIES = $(component_install)
4143
mca_rml_ofi_la_SOURCES = $(sources)
42-
mca_rml_ofi_la_LDFLAGS = \
43-
$(orte_rml_ofi_LDFLAGS) \
44-
-module -avoid-version
45-
mca_rml_ofi_la_LIBADD = $(orte_rml_ofi_LIBS) \
46-
$(OPAL_TOP_BUILDDIR)/opal/mca/common/libfabric/lib@OPAL_LIB_PREFIX@mca_common_libfabric.la
44+
mca_rml_ofi_la_LDFLAGS = -module -avoid-version
45+
mca_rml_ofi_la_LIBADD = $(OPAL_TOP_BUILDDIR)/opal/mca/common/libfabric/lib@OPAL_LIB_PREFIX@mca_common_libfabric.la
4746

4847
noinst_LTLIBRARIES = $(component_noinst)
4948
libmca_rml_ofi_la_SOURCES = $(sources)
50-
libmca_rml_ofi_la_LDFLAGS = \
51-
$(orte_rml_ofi_LDFLAGS) \
52-
-module -avoid-version
53-
libmca_rml_ofi_la_LIBADD = $(orte_rml_ofi_LIBS)
49+
libmca_rml_ofi_la_LDFLAGS = -module -avoid-version

orte/mca/rml/ofi/rml_ofi_component.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2016 Intel, Inc. All rights reserved.
2+
* Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
33
* $COPYRIGHT$
44
*
55
* Additional copyrights may follow
@@ -173,7 +173,6 @@ void free_ofi_prov_resources( int ofi_prov_id)
173173
orte_rml_ofi.ofi_prov[ofi_prov_id].fabric_info = NULL;
174174
orte_rml_ofi.ofi_prov[ofi_prov_id].mr_multi_recv = NULL;
175175
orte_rml_ofi.ofi_prov[ofi_prov_id].ofi_prov_id = RML_OFI_PROV_ID_INVALID;
176-
OPAL_LIST_DESTRUCT(&orte_rml_ofi.recv_msg_queue_list);
177176

178177

179178
if( orte_rml_ofi.ofi_prov[ofi_prov_id].progress_ev_active) {
@@ -195,23 +194,24 @@ rml_ofi_component_close(void)
195194
opal_object_t *value;
196195
uint64_t key;
197196
void *node;
197+
uint8_t ofi_prov_id;
198198

199199
opal_output_verbose(10,orte_rml_base_framework.framework_output,
200200
" %s - rml_ofi_component_close() -begin, total open OFI providers = %d",
201201
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME),orte_rml_ofi.ofi_prov_open_num);
202202

203-
if(orte_rml_ofi.fi_info_list) {
204-
(void) fi_freeinfo(orte_rml_ofi.fi_info_list);
203+
if (orte_rml_ofi.fi_info_list) {
204+
(void) fi_freeinfo(orte_rml_ofi.fi_info_list);
205205
}
206206

207207
/* Close endpoint and all queues */
208-
for( uint8_t ofi_prov_id=0;ofi_prov_id<orte_rml_ofi.ofi_prov_open_num;ofi_prov_id++) {
208+
for (ofi_prov_id=0; ofi_prov_id < orte_rml_ofi.ofi_prov_open_num; ofi_prov_id++) {
209209
free_ofi_prov_resources(ofi_prov_id);
210210
}
211211

212212
/* release all peers from the hash table */
213-
rc = opal_hash_table_get_first_key_uint64 (&orte_rml_ofi.peers, &key,
214-
(void **) &value, &node);
213+
rc = opal_hash_table_get_first_key_uint64(&orte_rml_ofi.peers, &key,
214+
(void **)&value, &node);
215215
while (OPAL_SUCCESS == rc) {
216216
if (NULL != value) {
217217
OBJ_RELEASE(value);
@@ -231,6 +231,7 @@ rml_ofi_component_close(void)
231231
(void **) &value, node, &node);
232232
}
233233
OBJ_DESTRUCT(&orte_rml_ofi.peers);
234+
OPAL_LIST_DESTRUCT(&orte_rml_ofi.recv_msg_queue_list);
234235

235236
opal_output_verbose(10,orte_rml_base_framework.framework_output,
236237
" %s - rml_ofi_component_close() end",ORTE_NAME_PRINT(ORTE_PROC_MY_NAME));

0 commit comments

Comments
 (0)