Skip to content

Commit

Permalink
examples: Update cell output, add nbval
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jun 3, 2022
1 parent 780b8aa commit c00887d
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions examples/mpi/overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@
],
"source": [
"%%px --no-stream --group-outputs=engine\n",
"#NBVAL_IGNORE_OUTPUT\n",
"\n",
"op = Operator(Eq(u.forward, u + 1))\n",
"summary = op.apply(time_M=0)"
]
Expand Down Expand Up @@ -832,9 +834,9 @@
"struct dataobj\n",
"{\n",
" void *restrict data;\n",
" int * size;\n",
" int * npsize;\n",
" int * dsize;\n",
" unsigned long * size;\n",
" unsigned long * npsize;\n",
" unsigned long * dsize;\n",
" int * hsize;\n",
" int * hofs;\n",
" int * oofs;\n",
Expand All @@ -846,7 +848,7 @@
"} ;\n",
"\n",
"\n",
"int Kernel(struct dataobj *restrict u_vec, const int time_M, const int time_m, const int x_M, const int x_m, const int y_M, const int y_m, MPI_Comm comm, struct profiler * timers)\n",
"int Kernel(struct dataobj *restrict u_vec, const int time_M, const int time_m, const int x_M, const int x_m, const int y_M, const int y_m, struct profiler * timers)\n",
"{\n",
" float (*restrict u)[u_vec->size[1]][u_vec->size[2]] __attribute__ ((aligned (64))) = (float (*)[u_vec->size[1]][u_vec->size[2]]) u_vec->data;\n",
"\n",
Expand Down Expand Up @@ -915,9 +917,9 @@
"struct dataobj\n",
"{\n",
" void *restrict data;\n",
" int * size;\n",
" int * npsize;\n",
" int * dsize;\n",
" unsigned long * size;\n",
" unsigned long * npsize;\n",
" unsigned long * dsize;\n",
" int * hsize;\n",
" int * hofs;\n",
" int * oofs;\n",
Expand All @@ -940,7 +942,7 @@
"static void scattertxy(float *restrict buf1_vec, const int buf_x_size, const int buf_y_size, struct dataobj *restrict a0_vec, int otime, int ox, int oy);\n",
"static void haloupdate0(struct dataobj *restrict a0_vec, MPI_Comm comm, struct neighborhood * nb, int otime);\n",
"\n",
"int Kernel(const float h_x, struct dataobj *restrict u_vec, const int time_M, const int time_m, const int x_M, const int x_m, const int y_M, const int y_m, MPI_Comm comm, struct neighborhood * nb, struct profiler * timers)\n",
"int Kernel(struct dataobj *restrict u_vec, const float h_x, const int time_M, const int time_m, const int x_M, const int x_m, const int y_M, const int y_m, MPI_Comm comm, struct neighborhood * nb, struct profiler * timers)\n",
"{\n",
" float (*restrict u)[u_vec->size[1]][u_vec->size[2]] __attribute__ ((aligned (64))) = (float (*)[u_vec->size[1]][u_vec->size[2]]) u_vec->data;\n",
"\n",
Expand Down Expand Up @@ -1594,6 +1596,8 @@
],
"source": [
"%%px --no-stream --group-outputs=engine\n",
"#NBVAL_IGNORE_OUTPUT\n",
"\n",
"sf.data[:] = 5.\n",
"op = Operator(sf.inject(field=f, expr=sf))\n",
"summary = op.apply()"
Expand Down

0 comments on commit c00887d

Please sign in to comment.