File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
1717singularity on pypi), and the versions here will coincide with these releases.
1818
1919## [ master] ( https://github.com/singularityhub/singularity-cli/tree/master )
20+ - adding nvidia flag as nv argument (with default False) to run/exec (0.0.41)
2021 - fixing bug in shell.py, cli should be client (0.0.40)
2122 - remove uri function should only right strip to support relative paths (0.0.39)
2223 - adjusting container build to use correct Github branch (vault/release-2.5)
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ def execute(self,
3030 writable = False ,
3131 contain = False ,
3232 bind = None ,
33- stream = False ,
34- nv = False ):
33+ stream = False ,
34+ nv = False ):
3535
3636 ''' execute: send a command to a container
3737
@@ -47,15 +47,14 @@ def execute(self,
4747 bind: list or single string of bind paths.
4848 This option allows you to map directories on your host system to
4949 directories within your container using bind mounts
50- nv: if True, load Nvidia Drivers in Runtime.
51-
50+ nv: if True, load Nvidia Drivers in runtime (default False)
5251 '''
5352 from spython .utils import check_install
5453 check_install ()
5554
5655 cmd = self ._init_command ('exec' )
5756
58- # It option leverage the GPU card
57+ # nv option leverages any GPU cards
5958 if nv is True :
6059 cmd += ['--nv' ]
6160
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ def run(self,
2929 writable = False ,
3030 contain = False ,
3131 bind = None ,
32- stream = False ,
33- nv = False ):
32+ stream = False ,
33+ nv = False ):
3434
3535 '''
3636 run will run the container, with or withour arguments (which
@@ -48,14 +48,14 @@ def run(self,
4848 This option allows you to map directories on your host system to
4949 directories within your container using bind mounts
5050 stream: if True, return <generator> for the user to run
51- nv: if True, load Nvidia Drivers in Runtime.
51+ nv: if True, load Nvidia Drivers in runtime (default False)
5252 '''
5353 from spython .utils import check_install
5454 check_install ()
5555
5656 cmd = self ._init_command ('run' )
5757
58- # It option leverage the GPU card
58+ # nv option leverages any GPU cards
5959 if nv is True :
6060 cmd += ['--nv' ]
6161
Original file line number Diff line number Diff line change 1818
1919
2020
21- __version__ = "0.0.40 "
21+ __version__ = "0.0.41 "
2222AUTHOR = 'Vanessa Sochat'
2323AUTHOR_EMAIL = '[email protected] ' 2424NAME = 'spython'
You can’t perform that action at this time.
0 commit comments