1
1
This commit was SVN r376.
Этот коммит содержится в:
Tim Woodall 2004-01-14 17:41:36 +00:00
родитель 03af93aa08
Коммит a0d0e4773c
10 изменённых файлов: 139 добавлений и 56 удалений

15
src/mca/mpi/pml/teg/config/Makefile.am Обычный файл
Просмотреть файл

@ -0,0 +1,15 @@
# -*- makefile -*-
#
# $HEADER$
#
include $(top_lam_srcdir)/config/Makefile.options
# This file is only here so that "make dist" grabs all the extra
# config-level files that are necessary to build a LAM distribution
# tarball. Nothing gets built in this directory.
# Seems to be an automake bug -- depcomp is not automatically included
# in distribution tarballs.
EXTRA_DIST = depcomp

Просмотреть файл

@ -7,4 +7,4 @@
PARAM_INIT_FILE=src/pml_teg.c PARAM_INIT_FILE=src/pml_teg.c
PARAM_CONFIG_HEADER_FILE="src/teg_config.h" PARAM_CONFIG_HEADER_FILE="src/teg_config.h"
PARAM_CONFIG_FILES="Makefile src/Makefile" PARAM_CONFIG_FILES="Makefile src/Makefile config/Makefile"

Просмотреть файл

@ -32,7 +32,7 @@ int mca_pml_teg_add_comm(lam_communicator_t* comm)
{ {
/* allocate pml specific comm data */ /* allocate pml specific comm data */
struct mca_pml_comm_t* pml_comm = (mca_pml_comm_t*)LAM_MALLOC(sizeof(mca_pml_comm_t)); struct mca_pml_comm_t* pml_comm = (mca_pml_comm_t*)LAM_MALLOC(sizeof(mca_pml_comm_t));
mca_pml_ptl_comm_init(pml_comm); mca_pml_ptl_comm_init(pml_comm, comm->c_remote_group->g_proc_count);
comm->c_pml_comm = pml_comm; comm->c_pml_comm = pml_comm;
return LAM_SUCCESS; return LAM_SUCCESS;
} }
@ -65,7 +65,7 @@ int mca_pml_teg_add_procs(lam_proc_t** procs, size_t nprocs)
/* preallocate space in array for max number of ptls */ /* preallocate space in array for max number of ptls */
mca_ptl_array_reserve(&proc_pml->proc_ptl_first, mca_pml_teg.teg_num_ptls); mca_ptl_array_reserve(&proc_pml->proc_ptl_first, mca_pml_teg.teg_num_ptls);
mca_ptl_array_reserve(&proc_pml->proc_ptl_first, mca_pml_teg.teg_num_ptls); mca_ptl_array_reserve(&proc_pml->proc_ptl_next, mca_pml_teg.teg_num_ptls);
proc_pml->proc_lam = proc; proc_pml->proc_lam = proc;
proc->proc_pml = proc_pml; proc->proc_pml = proc_pml;
} }
@ -76,9 +76,33 @@ int mca_pml_teg_add_procs(lam_proc_t** procs, size_t nprocs)
mca_ptl_t* ptl = mca_pml_teg.teg_ptls[i]; mca_ptl_t* ptl = mca_pml_teg.teg_ptls[i];
ptl->ptl_add_procs(ptl, procs, nprocs); ptl->ptl_add_procs(ptl, procs, nprocs);
} }
/* compute a weighting factor for each ptl */
for(i=0; i<nprocs; i++) {
lam_proc_t *proc = procs[i];
mca_pml_proc_t* proc_pml = proc->proc_pml;
}
return LAM_SUCCESS; return LAM_SUCCESS;
} }
int mca_pml_teg_del_procs(lam_proc_t** procs, size_t nprocs)
{
#if 0
size_t i;
for(i=0; i<nprocs; i++) {
lam_proc_t *proc = procs[i];
mca_pml_proc_t* proc_pml = proc->proc_pml;
/* notify each ptl that the proc is going away */
size_t p;
for(p=0; p<proc_pml->proc_ptl_first.ptl_size; p++) {
mca_ptl_info_t* ptl_info = proc_pml->proc_ptl_first.ptl_array[p];
ptl_info->ptl->ptl_del_proc(proc);
}
}
#endif
}
int mca_pml_teg_module_fini(void) int mca_pml_teg_module_fini(void)
{ {
return LAM_SUCCESS; return LAM_SUCCESS;

Просмотреть файл

@ -1,7 +1,7 @@
#include "ptl_base_comm.h" #include "ptl_base_comm.h"
void mca_pml_ptl_comm_init(mca_pml_comm_t* comm) void mca_pml_ptl_comm_init(mca_pml_comm_t* comm, size_t size)
{ {
} }

Просмотреть файл

@ -43,7 +43,7 @@ struct mca_pml_comm_t {
typedef struct mca_pml_comm_t mca_pml_comm_t; typedef struct mca_pml_comm_t mca_pml_comm_t;
extern void mca_pml_ptl_comm_init(struct mca_pml_comm_t*); extern void mca_pml_ptl_comm_init(struct mca_pml_comm_t*, size_t);
extern void mca_pml_ptl_comm_destroy(struct mca_pml_comm_t*); extern void mca_pml_ptl_comm_destroy(struct mca_pml_comm_t*);
#endif #endif

6
src/mca/mpi/ptl/tcp/VERSION Обычный файл
Просмотреть файл

@ -0,0 +1,6 @@
major=1
minor=0
release=0
alpha=0
beta=0
cvs=1

23
src/mca/mpi/ptl/tcp/config/.cvsignore Обычный файл
Просмотреть файл

@ -0,0 +1,23 @@
Makefile
Makefile.in
acinclude.m4
aclocal.m4
configure
configure.ac
config.log
config.status
libtool
autom4te.cache
.libs
.deps
*.la
*.lo
.lam*
config.guess
config.sub
depcomp
install-sh
ltmain.sh
missing
mkinstalldirs
stamp-h1

15
src/mca/mpi/ptl/tcp/config/Makefile.am Обычный файл
Просмотреть файл

@ -0,0 +1,15 @@
# -*- makefile -*-
#
# $HEADER$
#
include $(top_lam_srcdir)/config/Makefile.options
# This file is only here so that "make dist" grabs all the extra
# config-level files that are necessary to build a LAM distribution
# tarball. Nothing gets built in this directory.
# Seems to be an automake bug -- depcomp is not automatically included
# in distribution tarballs.
EXTRA_DIST = depcomp

Просмотреть файл

@ -4,4 +4,4 @@
# #
PARAM_INIT_FILE=src/ptl_tcp.c PARAM_INIT_FILE=src/ptl_tcp.c
PARAM_CONFIG_HEADER_FILE="src/tcp_config.h" PARAM_CONFIG_HEADER_FILE="src/tcp_config.h"
PARAM_CONFIG_FILES="Makefile src/Makefile" PARAM_CONFIG_FILES="Makefile src/Makefile config/Makefile"