As the test source files are not in the tarball, so add them in the windows contrib folder.
This commit was SVN r26976.
Этот коммит содержится в:
родитель
e304c19920
Коммит
3713cddde3
@ -108,7 +108,7 @@ ADD_SUBDIRECTORY(opal)
|
|||||||
INCLUDE_DIRECTORIES (${LIBEVENT_INCLUDE_DIRS} ${HWLOC_PATH}/hwloc/include)
|
INCLUDE_DIRECTORIES (${LIBEVENT_INCLUDE_DIRS} ${HWLOC_PATH}/hwloc/include)
|
||||||
ADD_SUBDIRECTORY(ompi)
|
ADD_SUBDIRECTORY(ompi)
|
||||||
ADD_SUBDIRECTORY(orte)
|
ADD_SUBDIRECTORY(orte)
|
||||||
ADD_SUBDIRECTORY(test)
|
ADD_SUBDIRECTORY(contrib/platform/win32/examples)
|
||||||
|
|
||||||
END_CONFIGURE()
|
END_CONFIGURE()
|
||||||
|
|
||||||
|
@ -125,7 +125,10 @@ EXTRA_DIST = \
|
|||||||
platform/win32/CMakeModules/opal_hwloc_config.cmake \
|
platform/win32/CMakeModules/opal_hwloc_config.cmake \
|
||||||
platform/win32/include/hwloc/autogen/config.h \
|
platform/win32/include/hwloc/autogen/config.h \
|
||||||
platform/win32/include/private/autogen/config.h \
|
platform/win32/include/private/autogen/config.h \
|
||||||
platform/win32/examples/chello.vcxproj \
|
platform/win32/examples/CMakeLists.txt \
|
||||||
|
platform/win32/examples/chello/CMakeLists.txt \
|
||||||
|
platform/win32/examples/chello/chello.vcxproj \
|
||||||
|
platform/win32/examples/chello/chello.c \
|
||||||
platform/cisco/macosx-dynamic \
|
platform/cisco/macosx-dynamic \
|
||||||
platform/cisco/macosx-dynamic.conf \
|
platform/cisco/macosx-dynamic.conf \
|
||||||
platform/cisco/linux \
|
platform/cisco/linux \
|
||||||
|
25
contrib/platform/win32/examples/CMakeLists.txt
Обычный файл
25
contrib/platform/win32/examples/CMakeLists.txt
Обычный файл
@ -0,0 +1,25 @@
|
|||||||
|
# Copyright (c) 2007-2012 High Performance Computing Center Stuttgart,
|
||||||
|
# University of Stuttgart. All rights reserved.
|
||||||
|
# $COPYRIGHT$
|
||||||
|
#
|
||||||
|
# Additional copyrights may follow
|
||||||
|
#
|
||||||
|
# $HEADER$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
ADD_SUBDIRECTORY(chello)
|
||||||
|
|
||||||
|
|
||||||
|
FILE(READ ${OpenMPI_SOURCE_DIR}/contrib/platform/win32/examples/chello/chello.vcxproj EXAMPLE_SOLUTION)
|
||||||
|
|
||||||
|
IF(CMAKE_CL_64)
|
||||||
|
STRING(REPLACE "Win32" "X64" EXAMPLE_SOLUTION "${EXAMPLE_SOLUTION}")
|
||||||
|
STRING(REPLACE "X86" "X64" EXAMPLE_SOLUTION "${EXAMPLE_SOLUTION}")
|
||||||
|
ENDIF(CMAKE_CL_64)
|
||||||
|
|
||||||
|
FILE(WRITE ${OpenMPI_SOURCE_DIR}/contrib/platform/win32/examples/chello/chello.vcxproj "${EXAMPLE_SOLUTION}")
|
||||||
|
|
||||||
|
INSTALL(FILES ${OpenMPI_SOURCE_DIR}/contrib/platform/win32/examples/chello/chello.c
|
||||||
|
${OpenMPI_SOURCE_DIR}/contrib/platform/win32/examples/chello/chello.vcxproj
|
||||||
|
DESTINATION share/examples)
|
18
contrib/platform/win32/examples/chello/CMakeLists.txt
Обычный файл
18
contrib/platform/win32/examples/chello/CMakeLists.txt
Обычный файл
@ -0,0 +1,18 @@
|
|||||||
|
# Copyright (c) 2007-2012 High Performance Computing Center Stuttgart,
|
||||||
|
# University of Stuttgart. All rights reserved.
|
||||||
|
# $COPYRIGHT$
|
||||||
|
#
|
||||||
|
# Additional copyrights may follow
|
||||||
|
#
|
||||||
|
# $HEADER$
|
||||||
|
#
|
||||||
|
|
||||||
|
#PROJECT(CHELLO C CXX)
|
||||||
|
|
||||||
|
SET(CHELLO_FILES
|
||||||
|
chello.c
|
||||||
|
)
|
||||||
|
|
||||||
|
ADD_EXECUTABLE (chello ${CHELLO_FILES})
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES (chello libmpi)
|
35
contrib/platform/win32/examples/chello/chello.c
Обычный файл
35
contrib/platform/win32/examples/chello/chello.c
Обычный файл
@ -0,0 +1,35 @@
|
|||||||
|
/* -*- C -*-
|
||||||
|
*
|
||||||
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||||
|
* University Research and Technology
|
||||||
|
* Corporation. All rights reserved.
|
||||||
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||||
|
* of Tennessee Research Foundation. All rights
|
||||||
|
* reserved.
|
||||||
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||||
|
* University of Stuttgart. All rights reserved.
|
||||||
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
|
* All rights reserved.
|
||||||
|
* $COPYRIGHT$
|
||||||
|
*
|
||||||
|
* Additional copyrights may follow
|
||||||
|
*
|
||||||
|
* $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;
|
||||||
|
}
|
Загрузка…
Ссылка в новой задаче
Block a user