Skip to content

Commit

Permalink
fix jupyter resource args (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Feb 2, 2022
1 parent 6ed0b92 commit 94a31eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ansys/mapdl/core/jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def launch_mapdl_on_cluster(
verbose=False,
start_timeout=600,
tag="latest",
**kwargs,
):
"""Start MAPDL on the ANSYS jupyter cluster in gRPC mode.
Expand Down Expand Up @@ -123,7 +122,13 @@ def launch_mapdl_on_cluster(

additional_switches += f"-m -{memory} -np {nproc}"
args = additional_switches.split()
ip, name = manager.spawn_mapdl(version=tag, args=args, verbose=verbose)
ip, name = manager.spawn_mapdl(
version=tag,
args=args,
verbose=verbose,
cpu=1000*nproc,
memory=memory,
)

# connect to the pod instance
from ansys.mapdl.core import Mapdl
Expand Down

0 comments on commit 94a31eb

Please sign in to comment.