~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to lib/gpu/geryon/nvd_macros.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
#ifdef MPI_GERYON
15
15
#include "mpi.h"
16
 
#define NVD_GERYON_EXIT MPI_Abort(MPI_COMM_WORLD,-1)
 
16
#define NVD_GERYON_EXIT do {                                               \
 
17
  int is_final;                                                            \
 
18
  MPI_Finalized(&is_final);                                                \
 
19
  if (!is_final)                                                           \
 
20
    MPI_Abort(MPI_COMM_WORLD,-1);                                          \
 
21
  } while(0)
17
22
#else
18
23
#define NVD_GERYON_EXIT assert(0==1)
19
24
#endif