PaNOSC-ViNYL / McStasScript

McStas API for creating and running McStas instruments from python scripting
BSD 3-Clause "New" or "Revised" License
9 stars 11 forks source link

Feature request: Add openacc (GPU) acceleration option alongside MPI #66

Closed willend closed 1 year ago

willend commented 1 year ago

A boolean flag to allow requesting openacc via https://mads-bertelsen.github.io/_autosummary/mcstasscript.helper.managed_mcrun.ManagedMcrun.html?highlight=mpi#mcstasscript.helper.managed_mcrun.ManagedMcrun.mpi

mads-bertelsen commented 1 year ago

Will do, but for now you can use the custom_flags in settings to add anything you want to the mcrun call.

instr.settings(custom_flags="--openacc")

Will also add a NeXus option that will set --format=NeXus.

mads-bertelsen commented 1 year ago

The settings now support openacc and NeXus keywords that default to False.