Skip to content

Commit

Permalink
examples: Fix tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Nov 8, 2023
1 parent 1e5101a commit ea38319
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions examples/userapi/02_apply.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@
" 'y_m': 0,\n",
" 'y_size': 4,\n",
" 'y_M': 3,\n",
" 'timers': <cparam 'P' (0x7fb0d0550918)>}"
" 'h_x': 0.33333334,\n",
" 'h_y': 0.33333334,\n",
" 'o_x': 0.0,\n",
" 'o_y': 0.0,\n",
" 'timers': <cparam 'P' (0x7f3ce4f15110)>}"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -246,14 +250,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"OOB detected due to time_M=2\n"
"OOB detected due to time_M=3\n"
]
}
],
"source": [
"from devito.exceptions import InvalidArgument\n",
"try:\n",
" op.apply(time_M=2)\n",
" op.apply(time_M=3)\n",
"except InvalidArgument as e:\n",
" print(e)"
]
Expand Down Expand Up @@ -419,8 +423,8 @@
{
"data": {
"text/plain": [
"PerformanceSummary([('section0',\n",
" PerfEntry(time=3e-06, gflopss=0.0, gpointss=0.0, oi=0.0, ops=0, itershapes=[]))])"
"PerformanceSummary([(PerfKey(name='section0', rank=None),\n",
" PerfEntry(time=1e-06, gflopss=0.0, gpointss=0.0, oi=0.0, ops=0, itershapes=[]))])"
]
},
"execution_count": 14,
Expand Down Expand Up @@ -449,14 +453,14 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Operator `Kernel` run in 0.00 s\n"
"Operator `Kernel` ran in 0.01 s\n"
]
},
{
"data": {
"text/plain": [
"PerformanceSummary([('section0',\n",
" PerfEntry(time=3e-06, gflopss=0.021333333333333333, gpointss=0.010666666666666666, oi=0.16666666666666666, ops=2, itershapes=[(2, 4, 4)]))])"
"PerformanceSummary([(PerfKey(name='section0', rank=None),\n",
" PerfEntry(time=1e-06, gflopss=0.064, gpointss=0.032, oi=0.16666666666666666, ops=2, itershapes=((2, 4, 4),)))])"
]
},
"execution_count": 15,
Expand Down Expand Up @@ -527,7 +531,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit ea38319

Please sign in to comment.