* implement the most basic MPI program one can implement
This commit was SVN r658.
Этот коммит содержится в:
родитель
a070d9af63
Коммит
446838f5db
@ -5,4 +5,4 @@
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = support lam
|
||||
SUBDIRS = support lam mpi
|
||||
|
2
test/mpi/.cvsignore
Обычный файл
2
test/mpi/.cvsignore
Обычный файл
@ -0,0 +1,2 @@
|
||||
Makefile.in
|
||||
Makefile
|
8
test/mpi/Makefile.am
Обычный файл
8
test/mpi/Makefile.am
Обычный файл
@ -0,0 +1,8 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = environment
|
6
test/mpi/environment/.cvsignore
Обычный файл
6
test/mpi/environment/.cvsignore
Обычный файл
@ -0,0 +1,6 @@
|
||||
Makefile.in
|
||||
Makefile
|
||||
.deps
|
||||
.gdb_history
|
||||
.libs
|
||||
chello
|
17
test/mpi/environment/Makefile.am
Обычный файл
17
test/mpi/environment/Makefile.am
Обычный файл
@ -0,0 +1,17 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/test/support -DLAM_ENABLE_DEBUG=1
|
||||
|
||||
noinst_PROGRAMS = chello
|
||||
|
||||
chello_SOURCES = chello.c
|
||||
chello_LDADD = \
|
||||
$(top_builddir)/src/libmpi.la \
|
||||
$(top_builddir)/src/liblam.la
|
||||
chello_DEPENDENCIES = $(chello_LDADD)
|
||||
|
21
test/mpi/environment/chello.c
Обычный файл
21
test/mpi/environment/chello.c
Обычный файл
@ -0,0 +1,21 @@
|
||||
/* -*- C -*-
|
||||
*
|
||||
* $HEADER$
|
||||
*
|
||||
* The most basic of MPI applications
|
||||
*/
|
||||
|
||||
#include <mpi.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
MPI_Init(&argc, &argv);
|
||||
|
||||
printf("Hello, World\n");
|
||||
|
||||
MPI_Finalize();
|
||||
|
||||
return 0;
|
||||
}
|
Загрузка…
x
Ссылка в новой задаче
Block a user