main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
398 bytes
|
| Rev | Line | |
|---|
| [a9a9973] | 1 | /* erroneous program: a send is never received. Will be detected
|
|---|
| 2 | * with -deadlock=potential */
|
|---|
| 3 | #include<mpi.h>
|
|---|
| 4 |
|
|---|
| 5 | int nprocs;
|
|---|
| 6 | int myrank;
|
|---|
| [a289c43] | 7 | #define NULL ((void*)0)
|
|---|
| [a9a9973] | 8 | void main() {
|
|---|
| [a289c43] | 9 | double x = 0;
|
|---|
| [a9a9973] | 10 | MPI_Status status;
|
|---|
| [a289c43] | 11 |
|
|---|
| 12 | MPI_Init(NULL, NULL);
|
|---|
| [a9a9973] | 13 | MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
|
|---|
| 14 | if (myrank == 0) {
|
|---|
| 15 | MPI_Send(&x, 1, MPI_DOUBLE, 0, 1, MPI_COMM_WORLD);
|
|---|
| 16 | }
|
|---|
| 17 | MPI_Finalize();
|
|---|
| 18 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.