diff --git a/templates/accelerate/ptypy_i13_AuStar_farfield_pycuda.py b/templates/accelerate/ptypy_i13_AuStar_farfield_pycuda.py index 865f5d9ce..635cd7a60 100644 --- a/templates/accelerate/ptypy_i13_AuStar_farfield_pycuda.py +++ b/templates/accelerate/ptypy_i13_AuStar_farfield_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/accelerate/ptypy_i13_AuStar_nearfield_pycuda.py b/templates/accelerate/ptypy_i13_AuStar_nearfield_pycuda.py index 671116fa7..6a63853f8 100644 --- a/templates/accelerate/ptypy_i13_AuStar_nearfield_pycuda.py +++ b/templates/accelerate/ptypy_i13_AuStar_nearfield_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/accelerate/ptypy_id22ni_AuStar_focused_pycuda.py b/templates/accelerate/ptypy_id22ni_AuStar_focused_pycuda.py index fb9c3920b..1d3a39b00 100644 --- a/templates/accelerate/ptypy_id22ni_AuStar_focused_pycuda.py +++ b/templates/accelerate/ptypy_id22ni_AuStar_focused_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import numpy as np import tempfile diff --git a/templates/accelerate/ptypy_laser_logo_focused_pycuda.py b/templates/accelerate/ptypy_laser_logo_focused_pycuda.py index 9628bd970..3d0b44b71 100644 --- a/templates/accelerate/ptypy_laser_logo_focused_pycuda.py +++ b/templates/accelerate/ptypy_laser_logo_focused_pycuda.py @@ -7,7 +7,7 @@ from ptypy import utils as u import ptypy.simulations as sim import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import pathlib import numpy as np diff --git a/templates/accelerate/ptypy_minimal_prep_and_run_pycuda.py b/templates/accelerate/ptypy_minimal_prep_and_run_pycuda.py index d28643f52..347768e5a 100644 --- a/templates/accelerate/ptypy_minimal_prep_and_run_pycuda.py +++ b/templates/accelerate/ptypy_minimal_prep_and_run_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_DM_ML_pycuda.py b/templates/engines/pycuda/moonflower_DM_ML_pycuda.py index ae70d903d..84050fdb4 100644 --- a/templates/engines/pycuda/moonflower_DM_ML_pycuda.py +++ b/templates/engines/pycuda/moonflower_DM_ML_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_DM_pycuda.py b/templates/engines/pycuda/moonflower_DM_pycuda.py index b4842bc30..0ba01ff38 100644 --- a/templates/engines/pycuda/moonflower_DM_pycuda.py +++ b/templates/engines/pycuda/moonflower_DM_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_DM_pycuda_nostream.py b/templates/engines/pycuda/moonflower_DM_pycuda_nostream.py index 3c2a702b1..3fe266276 100644 --- a/templates/engines/pycuda/moonflower_DM_pycuda_nostream.py +++ b/templates/engines/pycuda/moonflower_DM_pycuda_nostream.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_EPIE_ML_pycuda.py b/templates/engines/pycuda/moonflower_EPIE_ML_pycuda.py index a0b1e8c9d..2269a161e 100644 --- a/templates/engines/pycuda/moonflower_EPIE_ML_pycuda.py +++ b/templates/engines/pycuda/moonflower_EPIE_ML_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_EPIE_pycuda.py b/templates/engines/pycuda/moonflower_EPIE_pycuda.py index e96ee91d2..aaf787018 100644 --- a/templates/engines/pycuda/moonflower_EPIE_pycuda.py +++ b/templates/engines/pycuda/moonflower_EPIE_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_ML_ML_pycuda.py b/templates/engines/pycuda/moonflower_ML_ML_pycuda.py index d506ec5ae..87b7a6dd4 100644 --- a/templates/engines/pycuda/moonflower_ML_ML_pycuda.py +++ b/templates/engines/pycuda/moonflower_ML_ML_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_ML_pycuda.py b/templates/engines/pycuda/moonflower_ML_pycuda.py index 4e3ce15f6..2938275f7 100644 --- a/templates/engines/pycuda/moonflower_ML_pycuda.py +++ b/templates/engines/pycuda/moonflower_ML_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_RAAR_ML_pycuda.py b/templates/engines/pycuda/moonflower_RAAR_ML_pycuda.py index 28e565f8a..39634dd12 100644 --- a/templates/engines/pycuda/moonflower_RAAR_ML_pycuda.py +++ b/templates/engines/pycuda/moonflower_RAAR_ML_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_RAAR_pycuda.py b/templates/engines/pycuda/moonflower_RAAR_pycuda.py index 52b9c5395..0575f23b1 100644 --- a/templates/engines/pycuda/moonflower_RAAR_pycuda.py +++ b/templates/engines/pycuda/moonflower_RAAR_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/engines/pycuda/moonflower_SDR_pycuda.py b/templates/engines/pycuda/moonflower_SDR_pycuda.py index d76c7689f..68390804e 100644 --- a/templates/engines/pycuda/moonflower_SDR_pycuda.py +++ b/templates/engines/pycuda/moonflower_SDR_pycuda.py @@ -6,7 +6,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/live_processing/moonflower_DM_delayed_pycuda.py b/templates/live_processing/moonflower_DM_delayed_pycuda.py index ab2bcc419..29e9ac8fe 100644 --- a/templates/live_processing/moonflower_DM_delayed_pycuda.py +++ b/templates/live_processing/moonflower_DM_delayed_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/notebooks/moonflower_dm_pycuda.ipynb b/templates/notebooks/moonflower_dm_pycuda.ipynb index 42937721d..8143ef4cd 100644 --- a/templates/notebooks/moonflower_dm_pycuda.ipynb +++ b/templates/notebooks/moonflower_dm_pycuda.ipynb @@ -12,11 +12,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "import ptypy\n", @@ -27,25 +23,17 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# Import pycuda engines (DM, RAAR)\n", - "ptypy.load_gpu_engines(\"cuda\")" + "ptypy.load_gpu_engines(\"pycuda\")" ] }, { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# create parameter tree\n", @@ -55,11 +43,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# set verbose level to interactive\n", @@ -69,11 +53,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# Nr. of frames in a block\n", @@ -83,11 +63,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# set home path and io settings (no files saved)\n", @@ -101,11 +77,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# max 200 frames (128x128px) of diffraction data\n", @@ -125,11 +97,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# difference map reconstrucion engine\n", @@ -144,11 +112,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# prepare and run\n", @@ -165,11 +129,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "import ptypy.utils.plot_client as pc\n", diff --git a/templates/notebooks/moonflower_epie_pycuda.ipynb b/templates/notebooks/moonflower_epie_pycuda.ipynb index 290d424ef..66bc396f3 100644 --- a/templates/notebooks/moonflower_epie_pycuda.ipynb +++ b/templates/notebooks/moonflower_epie_pycuda.ipynb @@ -27,7 +27,7 @@ "outputs": [], "source": [ "# Import pycuda engines (DM, RAAR)\n", - "ptypy.load_gpu_engines(\"cuda\")" + "ptypy.load_gpu_engines(\"pycuda\")" ] }, { diff --git a/templates/notebooks/moonflower_ml_pycuda.ipynb b/templates/notebooks/moonflower_ml_pycuda.ipynb index e5e9b3d52..f266f8c81 100644 --- a/templates/notebooks/moonflower_ml_pycuda.ipynb +++ b/templates/notebooks/moonflower_ml_pycuda.ipynb @@ -12,11 +12,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "import ptypy\n", @@ -27,25 +23,17 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# Import pycuda engines (DM, RAAR)\n", - "ptypy.load_gpu_engines(\"cuda\")" + "ptypy.load_gpu_engines(\"pycuda\")" ] }, { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# create parameter tree\n", @@ -55,11 +43,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# set verbose level to interactive\n", @@ -69,11 +53,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# Nr. of frames in a block\n", @@ -83,11 +63,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# set home path and io settings (no files saved)\n", @@ -101,11 +77,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# max 200 frames (128x128px) of diffraction data\n", @@ -125,11 +97,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# maximum likelihood reconstrucion engine\n", @@ -149,11 +117,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "# prepare and run\n", @@ -170,11 +134,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "vscode": { - "languageId": "python" - } - }, + "metadata": {}, "outputs": [], "source": [ "import ptypy.utils.plot_client as pc\n", diff --git a/templates/notebooks/moonflower_raar_pycuda.ipynb b/templates/notebooks/moonflower_raar_pycuda.ipynb index 879428e86..e8bb338cc 100644 --- a/templates/notebooks/moonflower_raar_pycuda.ipynb +++ b/templates/notebooks/moonflower_raar_pycuda.ipynb @@ -27,7 +27,7 @@ "outputs": [], "source": [ "# Import pycuda engines (DM, RAAR)\n", - "ptypy.load_gpu_engines(\"cuda\")" + "ptypy.load_gpu_engines(\"pycuda\")" ] }, { diff --git a/templates/position_refinement/moonflower_posref_DM_pycuda.py b/templates/position_refinement/moonflower_posref_DM_pycuda.py index 50ec2da37..dc2b288b3 100644 --- a/templates/position_refinement/moonflower_posref_DM_pycuda.py +++ b/templates/position_refinement/moonflower_posref_DM_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/position_refinement/moonflower_posref_EPIE_pycuda.py b/templates/position_refinement/moonflower_posref_EPIE_pycuda.py index 39cc3b43c..d3d61919e 100644 --- a/templates/position_refinement/moonflower_posref_EPIE_pycuda.py +++ b/templates/position_refinement/moonflower_posref_EPIE_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/position_refinement/moonflower_posref_ML_pycuda.py b/templates/position_refinement/moonflower_posref_ML_pycuda.py index b7bc7b756..0b0cf2cde 100644 --- a/templates/position_refinement/moonflower_posref_ML_pycuda.py +++ b/templates/position_refinement/moonflower_posref_ML_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir() diff --git a/templates/position_refinement/moonflower_posref_SDR_pycuda.py b/templates/position_refinement/moonflower_posref_SDR_pycuda.py index e13cd58d1..880b2c54e 100644 --- a/templates/position_refinement/moonflower_posref_SDR_pycuda.py +++ b/templates/position_refinement/moonflower_posref_SDR_pycuda.py @@ -7,7 +7,7 @@ from ptypy.core import Ptycho from ptypy import utils as u import ptypy -ptypy.load_gpu_engines(arch="cuda") +ptypy.load_gpu_engines(arch="pycuda") import tempfile tmpdir = tempfile.gettempdir()