1 /***************************************************************************** 2 * * 3 * Copyright (c) 2003-2006 Intel Corporation. * 4 * All rights reserved. * 5 * * 6 ***************************************************************************** 7 8 This code is covered by the Community Source License (CPL), version 9 1.0 as published by IBM and reproduced in the file "license.txt" in the 10 "license" subdirectory. Redistribution in source and binary form, with 11 or without modification, is permitted ONLY within the regulations 12 contained in above mentioned license. 13 14 Use of the name and trademark "Intel(R) MPI Benchmarks" is allowed ONLY 15 within the regulations of the "License for Use of "Intel(R) MPI 16 Benchmarks" Name and Trademark" as reproduced in the file 17 "use-of-trademark-license.txt" in the "license" subdirectory. 18 19 THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR 20 CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT 21 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 22 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is 23 solely responsible for determining the appropriateness of using and 24 distributing the Program and assumes all risks associated with its 25 exercise of rights under this Agreement, including but not limited to 26 the risks and costs of program errors, compliance with applicable 27 laws, damage to or loss of data, programs or equipment, and 28 unavailability or interruption of operations. 29 30 EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR 31 ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, 32 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING 33 WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF 34 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 35 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR 36 DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED 37 HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 38 39 EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF 40 YOUR JURISDICTION. It is licensee's responsibility to comply with any 41 export regulations applicable in licensee's jurisdiction. Under 42 CURRENT U.S. export regulations this software is eligible for export 43 from the U.S. and can be downloaded by or otherwise exported or 44 reexported worldwide EXCEPT to U.S. embargoed destinations which 45 include Cuba, Iraq, Libya, North Korea, Iran, Syria, Sudan, 46 Afghanistan and any other country to which the U.S. has embargoed 47 goods and services. 48 49 *************************************************************************** 50 51 For more documentation than found here, see 52 53 [1] doc/ReadMe_IMB.txt 54 55 [2] Intel (R) MPI Benchmarks 56 Users Guide and Methodology Description 57 In 58 doc/IMB_ug.pdf 59 60 ***************************************************************************/ 61 62 63 64 65 66 #ifndef _APPL_ERRORS_H 67 68 #define _APPL_ERRORS_H 69 70 #include "mpi.h" 71 72 /* Define errors of the application */ 73 #define APPL_ERR_MALLOC 10 74 #define APPL_ERR_INVCASE 20 75 #define APPL_ERR_OPTIONS 30 76 #define APPL_ERR_CINFO 40 77 78 /* Err-handler*/ 79 void Errors_mpi(MPI_Comm *, int*,...); 80 81 #define MAX_ERR_LINES 32 82 struct ERR_HEADER 83 { 84 int n_header; 85 char* Lines[MAX_ERR_LINES]; 86 int err_flag; 87 }; 88 89 #endif 90