pymtt
 All Classes Namespaces Files Functions Variables Groups
openshmem_tests_patch.ini
Go to the documentation of this file.
1 shmem_2dheat_patch = <<EOF
2 312a313,329
3 > if (U_Curr)
4 > {
5 > if (U_Curr[0])
6 > {
7 > free(U_Curr[0]);
8 > }
9 > free(U_Curr);
10 > }
11 >
12 > if (U_Next)
13 > {
14 > if (U_Next[0])
15 > {
16 > free(U_Next[0]);
17 > }
18 > free(U_Next);
19 > }
20 352a370,374
21 > if ( !U_Curr_Above || !U_Curr_Below || !U_Send_Buffer)
22 > {
23 > printf("error: shmalloc returned NULL (no memory)");
24 > exit(1);
25 > }
26 427a450,462
27 >
28 > if (U_Send_Buffer)
29 > {
30 > shfree(U_Send_Buffer);
31 > }
32 > if (U_Curr_Above)
33 > {
34 > shfree(U_Curr_Above);
35 > }
36 > if (U_Curr_Below)
37 > {
38 > shfree(U_Curr_Below);
39 > }
40 441a477,482
41 >
42 > if ( !U_Curr_Above || !U_Curr_Below || !U_Send_Buffer)
43 > {
44 > printf("error: shmalloc returned NULL (no memory)");
45 > exit(1);
46 > }
47 578a620,632
48 >
49 > if (U_Send_Buffer)
50 > {
51 > shfree(U_Send_Buffer);
52 > }
53 > if (U_Curr_Above)
54 > {
55 > shfree(U_Curr_Above);
56 > }
57 > if (U_Curr_Below)
58 > {
59 > shfree(U_Curr_Below);
60 > }
61 593a648,653
62 >
63 > if ( !U_Curr_Above || !U_Curr_Below || !U_Send_Buffer)
64 > {
65 > printf("error: shmalloc returned NULL (no memory)");
66 > exit(1);
67 > }
68 730a791,803
69 >
70 > if (U_Send_Buffer)
71 > {
72 > shfree(U_Send_Buffer);
73 > }
74 > if (U_Curr_Above)
75 > {
76 > shfree(U_Curr_Above);
77 > }
78 > if (U_Curr_Below)
79 > {
80 > shfree(U_Curr_Below);
81 > }
82 827c900
83 < for (j = start; j < end; j++)
84 ---
85 > for (j = start; j <= end; j++)
86 EOF
87 
88 shmem_zeroget_patch = <<EOF
89 65,71c65,71
90 < short src1[N];
91 < int src2[N];
92 < long src3[N];
93 < long double src4[N];
94 < long long src5[N];
95 < double src6[N];
96 < float src7[N];
97 ---
98 > static short src1[N];
99 > static int src2[N];
100 > static long src3[N];
101 > static long double src4[N];
102 > static long long src5[N];
103 > static double src6[N];
104 > static float src7[N];
105 108c108
106 < src8 = (char *)malloc(N*sizeof(char));
107 ---
108 > src8 = (char *)shmalloc(N*sizeof(char));
109 134c134
110 < dest8 = (char *)shmalloc( 4 * sizeof(*dest8) );
111 ---
112 > dest8 = (char *)shmalloc( N * sizeof(*dest8) );
113 EOF