forked from open-mpi/ompi
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from razor1991/topic/v2.0
[Huawei]HMPI: Update version 2.0
- Loading branch information
Showing
35 changed files
with
4,397 additions
and
3,251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
dnl -*- shell-script -*- | ||
dnl | ||
dnl Copyright (c) 2022 Huawei Technologies Co., Ltd. All rights reserved. | ||
dnl | ||
dnl $COPYRIGHT$ | ||
dnl | ||
dnl Additional copyrights may follow | ||
dnl | ||
dnl $HEADER$ | ||
dnl | ||
|
||
# OMPI_CHECK_UCG(prefix, [action-if-found], [action-if-not-found]) | ||
# -------------------------------------------------------- | ||
# check if ucg support can be found. sets prefix_{CPPFLAGS, | ||
# LDFLAGS, LIBS} as needed and runs action-if-found if there is | ||
# support, otherwise executes action-if-not-found | ||
AC_DEFUN([OMPI_CHECK_UCG],[ | ||
OPAL_VAR_SCOPE_PUSH([ompi_check_ucg_dir ompi_check_ucg_libs ompi_check_ucg_happy CPPFLAGS_save LDFLAGS_save LIBS_save]) | ||
|
||
AC_ARG_WITH([ucg], | ||
[AS_HELP_STRING([--with-ucg(=DIR)], | ||
[Build UCG (Unified Collective Group)])]) | ||
|
||
AS_IF([test "$with_ucg" != "no"], | ||
[ompi_check_ucg_libs=ucg | ||
AS_IF([test ! -z "$with_ucg" && test "$with_ucg" != "yes"], | ||
[ompi_check_ucg_dir=$with_ucg]) | ||
|
||
CPPFLAGS_save=$CPPFLAGS | ||
LDFLAGS_save=$LDFLAGS | ||
LIBS_save=$LIBS | ||
|
||
OPAL_LOG_MSG([$1_CPPFLAGS : $$1_CPPFLAGS], 1) | ||
OPAL_LOG_MSG([$1_LDFLAGS : $$1_LDFLAGS], 1) | ||
OPAL_LOG_MSG([$1_LIBS : $$1_LIBS], 1) | ||
|
||
OPAL_CHECK_PACKAGE([$1], | ||
[ucg/api/ucg.h], | ||
[$ompi_check_ucg_libs], | ||
[ucg_cleanup], | ||
[], | ||
[$ompi_check_ucg_dir], | ||
[], | ||
[ompi_check_ucg_happy="yes"], | ||
[ompi_check_ucg_happy="no"]) | ||
|
||
AS_IF([test "$ompi_check_ucg_happy" = "yes"], | ||
[ | ||
CPPFLAGS=$coll_ucg_CPPFLAGS | ||
LDFLAGS=$coll_ucg_LDFLAGS | ||
LIBS=$coll_ucg_LIBS | ||
], | ||
[]) | ||
|
||
CPPFLAGS=$CPPFLAGS_save | ||
LDFLAGS=$LDFLAGS_save | ||
LIBS=$LIBS_save], | ||
[ompi_check_ucg_happy=no]) | ||
|
||
AS_IF([test "$ompi_check_ucg_happy" = "yes" && test "$enable_progress_threads" = "yes"], | ||
[AC_MSG_WARN([ucg driver does not currently support progress threads. Disabling UCG.]) | ||
ompi_check_ucg_happy="no"]) | ||
|
||
AS_IF([test "$ompi_check_ucg_happy" = "yes"], | ||
[$2], | ||
[AS_IF([test ! -z "$with_ucg" && test "$with_ucg" != "no"], | ||
[AC_MSG_ERROR([UCG support requested but not found. Aborting])]) | ||
$3]) | ||
|
||
OPAL_VAR_SCOPE_POP | ||
]) |
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
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,52 @@ | ||
# | ||
# Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. | ||
# All rights reserved. | ||
# $COPYRIGHT$ | ||
# | ||
# Additional copyrights may follow | ||
# | ||
# $HEADER$ | ||
# | ||
|
||
AM_CPPFLAGS = $(coll_ucg_CPPFLAGS) -DCOLL_UCG_HOME=\"$(coll_ucg_HOME)\" $(coll_ucg_extra_CPPFLAGS) | ||
|
||
#dist_ompidata_DATA = help-coll-ucg.txt | ||
coll_ucg_sources = \ | ||
coll_ucg.h \ | ||
coll_ucg_debug.h \ | ||
coll_ucg_request.h \ | ||
coll_ucg_dt.h \ | ||
coll_ucg_component.c \ | ||
coll_ucg_module.c \ | ||
coll_ucg_request.c \ | ||
coll_ucg_dt.c \ | ||
coll_ucg_allreduce.c \ | ||
coll_ucg_barrier.c \ | ||
coll_ucg_bcast.c \ | ||
coll_ucg_alltoallv.c \ | ||
coll_ucg_scatterv.c \ | ||
coll_ucg_gatherv.c \ | ||
coll_ucg_allgatherv.c | ||
|
||
# Make the output library in this directory, and name it either | ||
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la | ||
# (for static builds). | ||
|
||
if MCA_BUILD_ompi_coll_ucg_DSO | ||
component_noinst = | ||
component_install = mca_coll_ucg.la | ||
else | ||
component_noinst = libmca_coll_ucg.la | ||
component_install = | ||
endif | ||
|
||
mcacomponentdir = $(ompilibdir) | ||
mcacomponent_LTLIBRARIES = $(component_install) | ||
mca_coll_ucg_la_SOURCES = $(coll_ucg_sources) | ||
mca_coll_ucg_la_LIBADD = $(coll_ucg_LIBS) | ||
mca_coll_ucg_la_LDFLAGS = -module -avoid-version $(coll_ucg_LDFLAGS) | ||
|
||
noinst_LTLIBRARIES = $(component_noinst) | ||
libmca_coll_ucg_la_SOURCES = $(coll_ucg_sources) | ||
libmca_coll_ucg_la_LIBADD = $(coll_ucg_LIBS) | ||
libmca_coll_ucg_la_LDFLAGS = -module -avoid-version $(coll_ucg_LDFLAGS) |
Oops, something went wrong.