From 0f24ab4e88bf10bd0d6f78c294b31a147d77cb47 Mon Sep 17 00:00:00 2001 From: Philipp Schaad Date: Thu, 31 Oct 2024 10:50:00 +0100 Subject: [PATCH] Fix jupyter SDFV --- dace/sdfg/sdfg.py | 7 +- tutorials/explicit.ipynb | 35 ++--- tutorials/getting_started.ipynb | 112 ++++++-------- tutorials/numpy_frontend.ipynb | 40 ++--- tutorials/sdfg_api.ipynb | 82 ++++++----- tutorials/transformations.ipynb | 251 +++++++++++++++----------------- 6 files changed, 254 insertions(+), 273 deletions(-) diff --git a/dace/sdfg/sdfg.py b/dace/sdfg/sdfg.py index 9d3c155b81..cb8a7d5c2d 100644 --- a/dace/sdfg/sdfg.py +++ b/dace/sdfg/sdfg.py @@ -1464,8 +1464,11 @@ def _repr_html_(self): var sdfg_{uid} = {sdfg}; """.format( # Dumping to a string so that Jupyter Javascript can parse it # recursively diff --git a/tutorials/explicit.ipynb b/tutorials/explicit.ipynb index 45d172cf35..de718ffc4a 100644 --- a/tutorials/explicit.ipynb +++ b/tutorials/explicit.ipynb @@ -123,15 +123,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -159,16 +161,7 @@ "cell_type": "code", "execution_count": 6, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING: Casting scalar argument \"M\" from int to \n", - "WARNING: Casting scalar argument \"N\" from int to \n" - ] - } - ], + "outputs": [], "source": [ "sdfg(A=A, B=B, M=A.shape[0], N=A.shape[1])" ] @@ -201,7 +194,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -225,7 +218,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -310,13 +303,13 @@ "name": "stdout", "output_type": "stream", "text": [ - "WARNING: Casting scalar argument \"threshold\" from int to \n" + "WARNING: Passing uint32 array argument \"outsz\" to a int32 array\n" ] }, { "data": { "text/plain": [ - "array([121], dtype=uint32)" + "array([114], dtype=uint32)" ] }, "execution_count": 13, @@ -351,7 +344,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "dace_dev", "language": "python", "name": "python3" }, @@ -365,7 +358,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.1" + "version": "3.12.0" } }, "nbformat": 4, diff --git a/tutorials/getting_started.ipynb b/tutorials/getting_started.ipynb index 4405c28d56..266d207abc 100644 --- a/tutorials/getting_started.ipynb +++ b/tutorials/getting_started.ipynb @@ -13,22 +13,9 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 16, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "\n" - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "import dace" ] @@ -42,7 +29,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -66,8 +53,8 @@ { "data": { "text/plain": [ - "array([[0.74867876, 0.85403223, 0.16573784],\n", - " [0.71994615, 0.29855314, 0.21483992]])" + "array([[0.02638476, 0.15801766, 0.60640768],\n", + " [0.75281897, 0.02027034, 0.92066681]])" ] }, "execution_count": 3, @@ -89,8 +76,8 @@ { "data": { "text/plain": [ - "array([[1.49735752, 1.70806445, 0.33147568],\n", - " [1.4398923 , 0.59710627, 0.42967985]])" + "array([[0.05276951, 0.31603533, 1.21281536],\n", + " [1.50563794, 0.04054068, 1.84133362]])" ] }, "execution_count": 4, @@ -113,7 +100,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -121,22 +108,21 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ "SDFG (getstarted)" ] }, - "execution_count": 5, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -174,7 +160,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ @@ -190,7 +176,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 20, "metadata": {}, "outputs": [], "source": [ @@ -201,7 +187,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -209,22 +195,21 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ "SDFG (getstarted_sym)" ] }, - "execution_count": 8, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -248,19 +233,19 @@ { "data": { "text/plain": [ - "array([[1.63216549, 1.26522381, 0.21606686, ..., 0.56988572, 1.12572538,\n", - " 1.72701877],\n", - " [0.3829452 , 1.52386969, 0.82165197, ..., 1.3105662 , 1.19336786,\n", - " 1.43671993],\n", - " [1.55277426, 1.50918516, 1.30665626, ..., 1.06562809, 1.53069088,\n", - " 1.10071159],\n", + "array([[0.98818461, 1.27933885, 0.2033508 , ..., 0.547033 , 0.4299565 ,\n", + " 0.24654365],\n", + " [1.91945996, 0.8587834 , 1.6074685 , ..., 0.60969216, 1.7881462 ,\n", + " 1.6251679 ],\n", + " [0.09656663, 0.86573612, 0.79912191, ..., 1.50199177, 0.14342504,\n", + " 0.77152323],\n", " ...,\n", - " [0.60629736, 1.73240929, 1.26797782, ..., 1.72034476, 1.56691557,\n", - " 0.22283613],\n", - " [1.96245486, 1.60559508, 0.02009914, ..., 1.40944583, 1.44560312,\n", - " 0.37804927],\n", - " [1.17875002, 0.96963921, 0.28278902, ..., 1.56747976, 0.4616313 ,\n", - " 0.94999278]])" + " [1.86926975, 0.16524055, 0.57659078, ..., 0.06706506, 1.94858343,\n", + " 0.21332081],\n", + " [0.78987173, 0.32493361, 0.33111051, ..., 0.41438505, 1.6625166 ,\n", + " 1.4539469 ],\n", + " [0.32619914, 0.84155838, 0.85757214, ..., 0.93809 , 0.25236549,\n", + " 1.95588663]])" ] }, "execution_count": 9, @@ -283,7 +268,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -299,7 +284,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -315,7 +300,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -324,14 +309,14 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 13, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "12 ms ± 143 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n" + "12 ms ± 258 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n" ] } ], @@ -341,14 +326,14 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "3.86 ms ± 271 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n" + "5.1 ms ± 470 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n" ] } ], @@ -367,7 +352,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -375,22 +360,21 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ "SDFG (sse_sigma)" ] }, - "execution_count": 17, + "execution_count": 22, "metadata": {}, "output_type": "execute_result" } @@ -422,7 +406,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "dace_dev", "language": "python", "name": "python3" }, @@ -436,7 +420,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.1" + "version": "3.12.0" } }, "nbformat": 4, diff --git a/tutorials/numpy_frontend.ipynb b/tutorials/numpy_frontend.ipynb index fafda2f1b1..83ca6875ba 100644 --- a/tutorials/numpy_frontend.ipynb +++ b/tutorials/numpy_frontend.ipynb @@ -107,15 +107,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -267,15 +269,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -328,15 +332,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -461,7 +467,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "dace_dev", "language": "python", "name": "python3" }, @@ -475,7 +481,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.1" + "version": "3.12.0" } }, "nbformat": 4, diff --git a/tutorials/sdfg_api.ipynb b/tutorials/sdfg_api.ipynb index 645158ce88..beb4f4b6b0 100644 --- a/tutorials/sdfg_api.ipynb +++ b/tutorials/sdfg_api.ipynb @@ -112,15 +112,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -200,15 +202,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -240,15 +244,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -287,15 +293,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -347,15 +355,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -395,15 +405,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -477,7 +489,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -486,14 +498,14 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 16, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Difference: 1.6358224e-06\n" + "Difference: 7.1136246\n" ] } ], @@ -504,7 +516,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "dace_dev", "language": "python", "name": "python3" }, @@ -518,7 +530,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.1" + "version": "3.12.0" } }, "nbformat": 4, diff --git a/tutorials/transformations.ipynb b/tutorials/transformations.ipynb index d54b294e6e..931df79e18 100644 --- a/tutorials/transformations.ipynb +++ b/tutorials/transformations.ipynb @@ -70,15 +70,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -112,15 +114,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -155,15 +159,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -197,15 +203,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -348,15 +356,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -399,15 +409,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -456,30 +468,22 @@ "4. Transformation GPUTransformLocalStorage in outer_fused[__i0=0:1000, __i1=0:1000]\n", "5. Transformation GPUTransformMap in outer_fused[__i0=0:1000, __i1=0:1000]\n", "6. Transformation GPUTransformSDFG in []\n", - "7. Transformation MapDimShuffle in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "8. Transformation MapExpansion in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "9. Transformation MapFission in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "10. Transformation MapTiling in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "11. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "12. Transformation MapUnroll in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "13. Transformation NestSDFG in []\n", - "14. Transformation ReductionNOperation in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", - "15. Transformation StripMining in outer_fused: ['__i0', '__i1']\n", - "16. Transformation TaskletFusion in [Tasklet (_Mult_), AccessNode (__tmp0), Tasklet (_Add_)]\n" - ] - }, - { - "name": "stdin", - "output_type": "stream", - "text": [ - "Select the pattern to apply (0 - 16 or name$id): MapExpansion$0\n" + "7. Transformation MapExpansion in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", + "8. Transformation MapFission in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", + "9. Transformation MapTiling in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", + "10. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", + "11. Transformation MapUnroll in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", + "12. Transformation NestSDFG in []\n", + "13. Transformation ReductionNOperation in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])]\n", + "14. Transformation StripMining in outer_fused: ['__i0', '__i1']\n", + "15. Transformation TaskletFusion in [Tasklet (_Mult_), AccessNode (__tmp0), Tasklet (_Add_)]\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ - "You selected (MapExpansion$0) pattern MapExpansion in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])] with parameters {}\n", + "You selected (7) pattern MapExpansion in [MapEntry (outer_fused[__i0=0:1000, __i1=0:1000])] with parameters {}\n", "0. Transformation ElementWiseArrayOperation in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", "1. Transformation FPGATransformSDFG in []\n", "2. Transformation FPGATransformState in [SDFGState (BinOp_5)]\n", @@ -491,88 +495,63 @@ "8. Transformation InLocalStorage in outer_fused[__i0=0:1000] -> outer_fused___i1[__i1=0:1000]\n", "9. Transformation MPITransformMap in [MapEntry (outer_fused[__i0=0:1000])]\n", "10. Transformation MPITransformMap in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "11. Transformation MapDimShuffle in [MapEntry (outer_fused[__i0=0:1000])]\n", - "12. Transformation MapDimShuffle in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "13. Transformation MapFission in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "14. Transformation MapInterchange in [MapEntry (outer_fused[__i0=0:1000]), MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "15. Transformation MapTiling in [MapEntry (outer_fused[__i0=0:1000])]\n", - "16. Transformation MapTiling in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "17. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[__i0=0:1000])]\n", - "18. Transformation MapTilingWithOverlap in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "19. Transformation MapToForLoop in [MapEntry (outer_fused[__i0=0:1000])]\n", - "20. Transformation MapToForLoop in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "11. Transformation MapFission in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "12. Transformation MapInterchange in [MapEntry (outer_fused[__i0=0:1000]), MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "13. Transformation MapTiling in [MapEntry (outer_fused[__i0=0:1000])]\n", + "14. Transformation MapTiling in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "15. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[__i0=0:1000])]\n", + "16. Transformation MapTilingWithOverlap in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "17. Transformation MapToForLoop in [MapEntry (outer_fused[__i0=0:1000])]\n", + "18. Transformation MapToForLoop in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "19. Transformation MapToForLoopRegion in [MapEntry (outer_fused[__i0=0:1000])]\n", + "20. Transformation MapToForLoopRegion in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", "21. Transformation MapUnroll in [MapEntry (outer_fused[__i0=0:1000])]\n", "22. Transformation NestSDFG in []\n", "23. Transformation OutLocalStorage in outer_fused___i1[__i1=0:1000] -> outer_fused[__i0=0:1000]\n", "24. Transformation ReductionNOperation in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", "25. Transformation StripMining in outer_fused: ['__i0']\n", "26. Transformation StripMining in outer_fused___i1: ['__i1']\n", - "27. Transformation TaskletFusion in [Tasklet (_Mult_), AccessNode (__tmp0), Tasklet (_Add_)]\n" - ] - }, - { - "name": "stdin", - "output_type": "stream", - "text": [ - "Select the pattern to apply (0 - 27 or name$id): MapTiling$0(tile_sizes=(128,))\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "You selected (MapTiling$0) pattern MapTiling in [MapEntry (outer_fused[__i0=0:1000])] with parameters {'tile_sizes': (128,)}\n", - "0. Transformation ElementWiseArrayOperation in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "1. Transformation FPGATransformSDFG in []\n", - "2. Transformation FPGATransformState in [SDFGState (BinOp_5)]\n", - "3. Transformation GPUGridStridedTiling in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1]), MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "4. Transformation GPUGridStridedTiling in [MapEntry (outer_fused[tile___i0=0:1000:128]), MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1])]\n", - "5. Transformation GPUTransformLocalStorage in outer_fused[tile___i0=0:1000:128]\n", - "6. Transformation GPUTransformMap in outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1]\n", - "7. Transformation GPUTransformMap in outer_fused___i1[__i1=0:1000]\n", - "8. Transformation GPUTransformMap in outer_fused[tile___i0=0:1000:128]\n", + "27. Transformation TaskletFusion in [Tasklet (_Mult_), AccessNode (__tmp0), Tasklet (_Add_)]\n", + "You selected (11) pattern MapFission in [MapEntry (outer_fused___i1[__i1=0:1000])] with parameters {}\n", + "0. Transformation BufferTiling in [MapExit (outer_fused___i1_fission[__i1=0:1000]), AccessNode (__tmp0), MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "1. Transformation ElementWiseArrayOperation in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "2. Transformation ElementWiseArrayOperation in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "3. Transformation FPGATransformSDFG in []\n", + "4. Transformation FPGATransformState in [SDFGState (BinOp_5)]\n", + "5. Transformation GPUTransformLocalStorage in outer_fused[__i0=0:1000]\n", + "6. Transformation GPUTransformMap in outer_fused[__i0=0:1000]\n", + "7. Transformation GPUTransformMap in outer_fused___i1_fission[__i1=0:1000]\n", + "8. Transformation GPUTransformMap in outer_fused___i1_fission[__i1=0:1000]\n", "9. Transformation GPUTransformSDFG in []\n", - "10. Transformation InLocalStorage in outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1] -> outer_fused___i1[__i1=0:1000]\n", - "11. Transformation InLocalStorage in outer_fused[tile___i0=0:1000:128] -> outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1]\n", - "12. Transformation MPITransformMap in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1])]\n", - "13. Transformation MPITransformMap in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "14. Transformation MPITransformMap in [MapEntry (outer_fused[tile___i0=0:1000:128])]\n", - "15. Transformation MapDimShuffle in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1])]\n", - "16. Transformation MapDimShuffle in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "17. Transformation MapDimShuffle in [MapEntry (outer_fused[tile___i0=0:1000:128])]\n", - "18. Transformation MapFission in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "19. Transformation MapInterchange in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1]), MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "20. Transformation MapTiling in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1])]\n", - "21. Transformation MapTiling in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "22. Transformation MapTiling in [MapEntry (outer_fused[tile___i0=0:1000:128])]\n", - "23. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1])]\n", - "24. Transformation MapTilingWithOverlap in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "25. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[tile___i0=0:1000:128])]\n", - "26. Transformation MapToForLoop in [MapEntry (outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1])]\n", - "27. Transformation MapToForLoop in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", - "28. Transformation MapToForLoop in [MapEntry (outer_fused[tile___i0=0:1000:128])]\n", - "29. Transformation MapUnroll in [MapEntry (outer_fused[tile___i0=0:1000:128])]\n", + "10. Transformation InLocalStorage in outer_fused[__i0=0:1000] -> outer_fused___i1_fission[__i1=0:1000]\n", + "11. Transformation InLocalStorage in outer_fused[__i0=0:1000] -> outer_fused___i1_fission[__i1=0:1000]\n", + "12. Transformation MPITransformMap in [MapEntry (outer_fused[__i0=0:1000])]\n", + "13. Transformation MPITransformMap in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "14. Transformation MPITransformMap in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "15. Transformation MapFission in [MapEntry (outer_fused[__i0=0:1000])]\n", + "16. Transformation MapFusion in [MapExit (outer_fused___i1_fission[__i1=0:1000]), AccessNode (__tmp0), MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "17. Transformation MapTiling in [MapEntry (outer_fused[__i0=0:1000])]\n", + "18. Transformation MapTiling in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "19. Transformation MapTiling in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "20. Transformation MapTilingWithOverlap in [MapEntry (outer_fused[__i0=0:1000])]\n", + "21. Transformation MapTilingWithOverlap in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "22. Transformation MapTilingWithOverlap in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "23. Transformation MapToForLoop in [MapEntry (outer_fused[__i0=0:1000])]\n", + "24. Transformation MapToForLoop in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "25. Transformation MapToForLoop in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "26. Transformation MapToForLoopRegion in [MapEntry (outer_fused[__i0=0:1000])]\n", + "27. Transformation MapToForLoopRegion in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "28. Transformation MapToForLoopRegion in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "29. Transformation MapUnroll in [MapEntry (outer_fused[__i0=0:1000])]\n", "30. Transformation NestSDFG in []\n", - "31. Transformation OutLocalStorage in outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1] -> outer_fused[tile___i0=0:1000:128]\n", - "32. Transformation OutLocalStorage in outer_fused___i1[__i1=0:1000] -> outer_fused[__i0=tile___i0:Min(999, tile___i0 + 127) + 1]\n", - "33. Transformation ReductionNOperation in [MapEntry (outer_fused___i1[__i1=0:1000])]\n", + "31. Transformation OTFMapFusion in [MapExit (outer_fused___i1_fission[__i1=0:1000]), AccessNode (__tmp0), MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "32. Transformation OutLocalStorage in outer_fused___i1_fission[__i1=0:1000] -> outer_fused[__i0=0:1000]\n", + "33. Transformation ReductionNOperation in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", "34. Transformation StripMining in outer_fused: ['__i0']\n", - "35. Transformation StripMining in outer_fused___i1: ['__i1']\n", - "36. Transformation StripMining in outer_fused: ['tile___i0']\n", - "37. Transformation TaskletFusion in [Tasklet (_Mult_), AccessNode (__tmp0), Tasklet (_Add_)]\n" - ] - }, - { - "name": "stdin", - "output_type": "stream", - "text": [ - "Select the pattern to apply (0 - 37 or name$id): \n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ + "35. Transformation StripMining in outer_fused___i1_fission: ['__i1']\n", + "36. Transformation StripMining in outer_fused___i1_fission: ['__i1']\n", + "37. Transformation Vectorization in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", + "38. Transformation Vectorization in [MapEntry (outer_fused___i1_fission[__i1=0:1000])]\n", "You did not select a valid option. Quitting optimization ...\n" ] } @@ -654,15 +633,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -786,7 +767,7 @@ { "data": { "text/plain": [ - "1" + "0" ] }, "execution_count": 14, @@ -815,15 +796,17 @@ "text/html": [ "\n", "
\n", - "
\n", + "
\n", "
\n", "\n", "" ], "text/plain": [ @@ -864,7 +847,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "dace_dev", "language": "python", "name": "python3" }, @@ -878,7 +861,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.1" + "version": "3.12.0" } }, "nbformat": 4,