Skip to content

Commit

Permalink
Update to latest from build 10.9.0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Breyer committed Feb 11, 2019
1 parent 8113bea commit d5ea7f9
Show file tree
Hide file tree
Showing 80 changed files with 84 additions and 21 deletions.
Empty file modified Esm/ib/include/cs_g.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/cs_log.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/hsm_com_srvr_api.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/hsm_config_srvr_api.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/hsm_config_srvr_data.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_const.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_macros.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_mad.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_sa.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_sm.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_status.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ib_types.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/if3.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/ifs_g.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/mai_g.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/os_g.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/vfi_g.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/include/vs_g.h
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/cs/cs_sema.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/cs/cs_string.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/cs/cs_utility.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/cs/vs_pool_common.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/cs/vs_thr_common.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/ibaccess/vs_lck.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/ibaccess/vs_pool.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/ibaccess/vs_thr.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/ibaccess/vs_utility.c
100755 → 100644
Empty file.
Empty file modified Esm/ib/src/linux/log/common/vslog.c
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions Esm/ib/src/linux/startup/fm_config/config_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ is_special (void) {
StringCopy ((void *)subnetSize, equals + 1, sizeof(subnetSize));
/* add SUBNET_SIZE to each manager environment */
memset (line_key, 0, 100);
strncpy ((void *)line_key, "SUBNET_SIZE", 11);
StringCopy ((void *)line_key, "SUBNET_SIZE", strlen("SUBNET_SIZE") + 1);
memset (line_value, 0, 200);
strncpy ((void *)line_value, (void *)subnetSize, 128);
for (i = 0; i < MAX_INSTANCES; i++) {
Expand All @@ -1319,7 +1319,7 @@ is_special (void) {
/* add SYSLOG_MODE to each manager's environment */
StringCopy ((void *)syslogMode, equals + 1, sizeof(syslogMode));
memset (line_key, 0, 100);
strncpy ((void *)line_key, "SYSLOG_MODE", 11);
StringCopy ((void *)line_key, "SYSLOG_MODE", strlen("SYSLOG_MODE") + 1);
memset (line_value, 0, 200);
strncpy ((void *)line_value, (void *)syslogMode, 16);
for (i = 0; i < MAX_INSTANCES; i++) {
Expand Down
8 changes: 4 additions & 4 deletions IbAccess/Common/Inc/stl_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -904,20 +904,20 @@ void StlCableInfoDecodeCableType(uint8_t cableType, uint8_t mediaConnType, uint8

if ((cableType <= STL_CIB_STD_TXTECH_1490_DFB) && (cableType != STL_CIB_STD_TXTECH_OTHER)) {
if (mediaConnType == STL_CIB_STD_CONNECTOR_NO_SEP) {
strncat(cableTypeInfo->cableTypeShortDesc, " AOC", 4);
strncat(cableTypeInfo->cableTypeShortDesc, " AOC", strlen(" AOC") + 1);
cableTypeInfo->cableLengthValid = 1;
} else {
strncat(cableTypeInfo->cableTypeShortDesc, " Xcvr", 5);
strncat(cableTypeInfo->cableTypeShortDesc, " Xcvr", strlen(" Xcvr") + 1);
cableTypeInfo->cableLengthValid = 0;
}
cableTypeInfo->activeCable = 1;
} else {
if (cableType >= STL_CIB_STD_TXTECH_CU_UNEQ) {
if (cableType <= STL_CIB_STD_TXTECH_CU_PASSIVEQ) {
strncat(cableTypeInfo->cableTypeShortDesc, " Copper", 7);
strncat(cableTypeInfo->cableTypeShortDesc, " Copper", strlen(" Copper") + 1);
cableTypeInfo->activeCable = 0;
} else {
strncat(cableTypeInfo->cableTypeShortDesc, " ActCu", 6);
strncat(cableTypeInfo->cableTypeShortDesc, " ActCu", strlen(" ActCu") + 1);
cableTypeInfo->activeCable = 1;
}
cableTypeInfo->cableLengthValid = 1;
Expand Down
4 changes: 2 additions & 2 deletions IbPrint/stl_sma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ void PrintStlCableInfoLowPage(PrintDest_t *dest, int indent, const uint8_t *cabl
case CABLEINFO_DETAIL_VERBOSE:
if (printLineByLine) {
StringCopy(tempBuf, tempBuf2, strlen(tempBuf2));
strncat(tempBuf2, ": Direct CableInfo", strlen(": Direct CableInfo"));
strncat(tempBuf2, ": Direct CableInfo", strlen(": Direct CableInfo") + 1);
PrintStrWithDots(dest, indent, tempBuf2, "");
PrintStrWithDots(dest, indent, "Temperature", temperature);
PrintStrWithDots(dest, indent, "Supply Voltage", vcc);
Expand All @@ -1848,7 +1848,7 @@ void PrintStlCableInfoLowPage(PrintDest_t *dest, int indent, const uint8_t *cabl
default:
if (printLineByLine) {
StringCopy(tempBuf, tempBuf2, strlen(tempBuf2));
strncat(tempBuf2, ": Direct CableInfo", strlen(": Direct CableInfo"));
strncat(tempBuf2, ": Direct CableInfo", strlen(": Direct CableInfo") + 1);
PrintStrWithDots(dest, indent, tempBuf2, "");
PrintStrWithDots(dest, indent, "Temperature", temperature);
PrintStrWithDots(dest, indent, "Supply Voltage", vcc);
Expand Down
Empty file modified IbaTools/FastFabric/chassis_fmconfig.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/chassis_fmcontrol.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/chassis_fmgetconfig.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/chassis_fmgetsecurityfiles.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/chassis_fmsecurityfiles.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/chassis_reboot.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/chassis_upgrade.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/configipoib.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/ff_function.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/ipoibping.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/load.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/mpiperf.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/mpiperfdeviation.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/reboot.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/sacache.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_capture.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_dump.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_fwverify.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_getconfig.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_hwvpd.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_info.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_ping.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_reboot.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/switch_upgrade.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/FastFabric/upgrade.exp
100755 → 100644
Empty file.
Empty file modified IbaTools/opagenchassis/opachassisip.c
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions IbaTools/opareport/opareport.c
Original file line number Diff line number Diff line change
Expand Up @@ -11828,9 +11828,9 @@ void ShowCableHealthReport(Point *focus, Format_t format, int indent, int detail

PrintFunc(&destFile, "%s%s\n",
(FSUCCESS == status1)?tempBuf1:
strncat(tempBuf1,CABLEHEALTH_EMPTY_FIELD,strlen(CABLEHEALTH_EMPTY_FIELD)),
strncat(tempBuf1,CABLEHEALTH_EMPTY_FIELD,strlen(CABLEHEALTH_EMPTY_FIELD) + 1),
(FSUCCESS == status2)?tempBuf2:
strncat(tempBuf2,CABLEHEALTH_EMPTY_FIELD,strlen(CABLEHEALTH_EMPTY_FIELD)));
strncat(tempBuf2,CABLEHEALTH_EMPTY_FIELD,strlen(CABLEHEALTH_EMPTY_FIELD) + 1));
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions MakeTools/funcs-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ function os_vendor()
centos)
rval=redhat
;;
fedora)
rval=redhat
;;
*)
rval=""
;;
Expand Down
Empty file modified MpiApps/apps/deviation/deviation.c
100755 → 100644
Empty file.
Empty file modified MpiApps/apps/groupstress/mpi_groupstress.c
100755 → 100644
Empty file.
Empty file modified MpiApps/apps/groupstress/mpi_latencystress.c
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion OpenIb_Host/build.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adjust the environment variables if necessary
export PRODUCT=OPENIB_FF
export RELEASE_TAG=10_9_0_2_1
export RELEASE_TAG=10_9_0_3_1
export BUILD_CONFIG=${BUILD_CONFIG:-"release"}
export BUILD_WITH_STACK=OPENIB
2 changes: 1 addition & 1 deletion OpenIb_Host/build_label
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Build of OPENIB_FF 02/05/19 11:27 Tag: OPENIB_FF_LINUX_opa-10_9_0_2_10_9_0_2_1
Build of OPENIB_FF 02/08/19 16:57 Tag: OPENIB_FF_LINUX_opa-10_9_0_2_10_9_0_3_1
2 changes: 2 additions & 0 deletions OpenIb_Host/mpi-apps.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Contains applications and source for testing MPI performance in conjunction with opa-fastfabric or stand alone.
IFSComponent: Tools_FF __RPM_VERSION.__RPM_RELEASE

__RPM_DBG

%prep
%setup -q -c

Expand Down
6 changes: 6 additions & 0 deletions OpenIb_Host/update_mpi_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ versionid=$(./get_id_and_versionid.sh | cut -f2 -d' ')
if [ "$id" = "rhel" -o "$id" = "centos" ]
then
sed -i "s/__RPM_REQ/Requires: atlas/" mpi-apps.spec
sed -i "/__RPM_DBG/,+1d" mpi-apps.spec
elif [ "$id" = "fedora" ]
then
sed -i "s/__RPM_REQ/Requires: atlas/" mpi-apps.spec
sed -i "s/__RPM_DBG/%global debug_package %{nil}/" mpi-apps.spec
elif [ "$id" = "sles" ]
then
sed -i "/__RPM_REQ/,+1d" mpi-apps.spec
sed -i "/__RPM_DBG/,+1d" mpi-apps.spec
else
echo ERROR: Unsupported distribution: $id $versionid
exit 1
Expand Down
25 changes: 25 additions & 0 deletions OpenIb_Host/update_opa_spec.sh.base
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,31 @@ then
#Cleanup EPOCH macros from sles spec.
#Note that SUSE discourages and does not use epochs
sed -i "/__RPM_EPOCH_*/d" opa.spec

elif [ "$id" = "fedora" ]
then
# __RPM_REQ_BASIC1 -
sed -i "s/__RPM_REQ_BASIC1/expect%{?_isa}, tcl%{?_isa}, openssl%{?_isa}, expat%{?_isa}, libibumad%{?_isa}, libibverbs%{?_isa}/g" opa.spec
sed -i "/__RPM_REQ_BASIC2/d" opa.spec

# __RPM_REQ_OPAMGT_DEV - different for RHEL7.4 and greater
sed -i "s/__RPM_REQ_OPAMGT_DEV/rdma-core-devel, openssl-devel, opa-libopamgt,/g" opa.spec

# __RPM_BLDREQ1 - different for RHEL 7.5, RHEL7.4, or earlier
sed -i "s/__RPM_BLDREQ1/expat-devel, gcc-c++, openssl-devel, ncurses-devel, tcl-devel, rdma-core-devel, ibacm-devel/g" opa.spec
sed -i "/__RPM_BLDREQ2/d" opa.spec

# __RPM_REQ_ADDR_RES,__RPM_REQ_OPAMGT and __RPM_DEBUG same for all RHEL versions
sed -i "s/__RPM_REQ_OPAMGT/libibumad%{?_isa}, libibverbs%{?_isa}, openssl%{?_isa}/g" opa.spec
sed -i "s/__RPM_REQ_ADDR_RES/opa-basic-tools ibacm/g" opa.spec
sed -i "/__RPM_DEBUG_PKG/,+1d" opa.spec

#Setup Epoch tags for RHEL rpms
sed -i "s/__RPM_EPOCH_BASIC/Epoch: 1/g" opa.spec
sed -i "s/__RPM_EPOCH_FF/Epoch: 1/g" opa.spec
sed -i "s/__RPM_EPOCH_ADDR_RES/Epoch: 1/g" opa.spec
sed -i "s/__RPM_EPOCH_LIBOPAMGT/Epoch: 1/g" opa.spec

else
echo ERROR: Unsupported distribution: $id $versionid
exit 1
Expand Down
Empty file modified TestTools/basic.exp
100755 → 100644
Empty file.
Empty file modified TestTools/chassis.exp
100755 → 100644
Empty file.
Empty file modified TestTools/extmng.exp
100755 → 100644
Empty file.
Empty file modified TestTools/ib.exp
100755 → 100644
Empty file.
Empty file modified TestTools/install.exp
100755 → 100644
Empty file.
Empty file modified TestTools/mpi.exp
100755 → 100644
Empty file.
Empty file modified TestTools/network.exp
100755 → 100644
Empty file.
Empty file modified TestTools/proc_mgr.exp
100755 → 100644
Empty file.
Empty file modified TestTools/sm_control.exp
100755 → 100644
Empty file.
Empty file modified TestTools/target.exp
100755 → 100644
Empty file.
Empty file modified TestTools/tools.exp
100755 → 100644
Empty file.
22 changes: 13 additions & 9 deletions opa-ff.spec.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: opa
Version: 10.9.0.2
Version: 10.9.0.3
Release: 1%{?dist}
Summary: Intel Omni-Path basic tools and libraries for fabric managment.

Expand All @@ -18,7 +18,7 @@ __RPM_DEBUG_PKG

%description
This package contains the tools necessary to manage an Intel(R) Omni-Path Architecture fabric.
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}

%package basic-tools
Summary: Managment level tools and scripts.
Expand All @@ -35,7 +35,7 @@ Epoch: 1

%description basic-tools
Contains basic tools for fabric managment necessary on all compute nodes.
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}

%package fastfabric
Summary: Management level tools and scripts.
Expand All @@ -48,7 +48,7 @@ Epoch: 1

%description fastfabric
Contains tools for managing fabric on a managment node.
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}

%package address-resolution
Summary: Contains Address Resolution manager
Expand All @@ -62,7 +62,7 @@ Epoch: 1
%description address-resolution
This package contains the ibacm distributed SA provider (dsap) for name and address resolution on OPA platform.
It also contains the library and tools to access the shared memory database exported by dsap.
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}

#opasnapconfig
%package snapconfig
Expand All @@ -73,7 +73,7 @@ Requires: opa-fastfabric

%description snapconfig
Parse information from provided snapshot file and issue packets to program
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}

%package libopamgt
Summary: Omni-Path management API library
Expand All @@ -82,7 +82,7 @@ Requires: __RPM_REQ_OPAMGT

%description libopamgt
This package contains the library necessary to build applications that interface with an Omni-Path FM.
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}


%package libopamgt-devel
Expand All @@ -92,7 +92,7 @@ Requires: __RPM_REQ_OPAMGT_DEV

%description libopamgt-devel
This package contains the necessary headers for opamgt development.
IFSComponent: Tools_FF 10.9.0.2.1%{?dist}
IFSComponent: Tools_FF 10.9.0.3.1%{?dist}

%prep
#rm -rf %{_builddir}/*
Expand Down Expand Up @@ -145,14 +145,18 @@ __RPM_FF_FILES
%{_bindir}/opa_osd_exercise
%{_bindir}/opa_osd_perf
%{_bindir}/opa_osd_query
%{_bindir}/opa_osd_query_many
%{_bindir}/opa_osd_load
%{_libdir}/ibacm
%{_libdir}/libopasadb.so.*
%{_libdir}/libopasadb.so*
%{_includedir}/infiniband
%{_mandir}/man1/opa_osd_dump.1*
%{_mandir}/man1/opa_osd_exercise.1*
%{_mandir}/man1/opa_osd_perf.1*
%{_mandir}/man1/opa_osd_query.1*
%config(noreplace) %{_sysconfdir}/rdma/dsap.conf
%config(noreplace) %{_sysconfdir}/rdma/op_path_rec.conf
%{_sysconfdir}/rdma/opasadb.xml

%files snapconfig
__RPM_SNAP_FILES
Expand Down
23 changes: 23 additions & 0 deletions update_opa_spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,29 @@ then
#Cleanup EPOCH macros from sles spec.
#Note that SUSE discourages and does not use epochs
sed -i "/__RPM_EPOCH_*/d" $to

elif [ "$id" = "fedora" ]
then
# __RPM_REQ_BASIC -
sed -i "s/__RPM_REQ_BASIC/expect%{?_isa}, tcl%{?_isa}, openssl%{?_isa}, expat%{?_isa}, libibumad%{?_isa}, libibverbs%{?_isa}/g" $to

# __RPM_REQ_OPAMGT_DEV - different for RHEL7.4 and greater
sed -i "s/__RPM_REQ_OPAMGT_DEV/rdma-core-devel, openssl-devel, opa-libopamgt,/g" $to

# __RPM_BLDREQ - different for RHEL 7.5, RHEL7.4, or earlier
sed -i "s/__RPM_BLDREQ/expat-devel, gcc-c++, openssl-devel, ncurses-devel, tcl-devel, rdma-core-devel, ibacm-devel/g" $to

# __RPM_REQ_ADDR_RES,__RPM_REQ_OPAMGT and __RPM_DEBUG same for all RHEL versions
sed -i "s/__RPM_REQ_ADDR_RES/opa-basic-tools ibacm/g" $to
sed -i "s/__RPM_REQ_OPAMGT/libibumad%{?_isa}, libibverbs%{?_isa}, openssl%{?_isa}/g" $to
sed -i "/__RPM_DEBUG_PKG/,+1d" $to

#Setup Epoch tags for RHEL rpms
sed -i "s/__RPM_EPOCH_BASIC/Epoch: 1/g" $to
sed -i "s/__RPM_EPOCH_FF/Epoch: 1/g" $to
sed -i "s/__RPM_EPOCH_ADDR_RES/Epoch: 1/g" $to
sed -i "s/__RPM_EPOCH_LIBOPAMGT/Epoch: 1/g" $to

else
echo ERROR: Unsupported distribution: $id $versionid
exit 1
Expand Down

0 comments on commit d5ea7f9

Please sign in to comment.