forked from openucx/ucx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HyperMPI initial commit.
- Loading branch information
Showing
56 changed files
with
2,990 additions
and
36 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,4 @@ | ||
[submodule "xucg"] | ||
path = src/ucg | ||
url = https://github.com/kunpengcompute/xucg.git | ||
branch = huawei |
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 |
---|---|---|
@@ -1,6 +1,40 @@ | ||
#!/bin/sh | ||
|
||
usage() | ||
{ | ||
echo "Usage: autogen.sh <options>" | ||
echo | ||
echo " -h|--help Show this help message" | ||
echo " --with-ucg Fetch UCG submodule" | ||
echo | ||
} | ||
|
||
with_ucg="no" | ||
|
||
for key in "$@" | ||
do | ||
case $key in | ||
-h|--help) | ||
usage | ||
exit 0 | ||
;; | ||
--with-ucg) | ||
with_ucg="yes" | ||
;; | ||
*) | ||
usage | ||
exit -2 | ||
;; | ||
esac | ||
done | ||
|
||
rm -rf autom4te.cache | ||
mkdir -p config/m4 config/aux | ||
mkdir -p config/m4 config/aux | ||
|
||
if [ "X$with_ucg" = "Xyes" ] | ||
then | ||
git submodule update --init --recursive --remote | ||
fi | ||
|
||
autoreconf -v --install || exit 1 | ||
rm -rf autom4te.cache |
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
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,37 @@ | ||
/** | ||
* Copyright (C) Huawei Technologies Co., Ltd. 2019. ALL RIGHTS RESERVED. | ||
* | ||
* See file LICENSE for terms. | ||
*/ | ||
|
||
#include "ucx_info.h" | ||
|
||
#include <ucg/api/ucg_mpi.h> | ||
#include <ucg/api/ucg_plan_component.h> | ||
#include <ucg/api/ucg_mpi.h> | ||
#include <ucs/debug/memtrack.h> | ||
|
||
/* In accordance with @ref enum ucg_predefined */ | ||
const char *collective_names[] = { | ||
"barrier", | ||
"reduce", | ||
"gather", | ||
"bcast", | ||
"scatter", | ||
"allreduce", | ||
NULL | ||
}; | ||
|
||
#define EMPTY UCG_GROUP_MEMBER_DISTANCE_LAST | ||
|
||
ucg_address_t *worker_address = 0; | ||
ucs_status_t dummy_resolve_address(void *cb_group_obj, | ||
ucg_group_member_index_t index, | ||
ucg_address_t **addr, size_t *addr_len) | ||
{ | ||
*addr = worker_address; | ||
*addr_len = 0; /* special debug flow: replace uct_ep_t with member indexes */ | ||
return UCS_OK; | ||
} | ||
|
||
void dummy_release_address(ucg_address_t *addr) { } |
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
Oops, something went wrong.