Skip to content

Commit 2c2ab82

Browse files
authored
Merge pull request #162 from Ricks-Lab/rc2_28may24
Rc2 28may24
2 parents eeb7290 + 59820ca commit 2c2ab82

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

GPUmodules/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.9.0-RC1'
1+
__version__ = '3.9.0-RC2'
22
__status__ = 'Development Status :: 5 - Production/Stable'
33
#__status__ = 'Development Status :: 4 - Beta'
44
__author__ = 'RicksLab'

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ parameters to be written to the GPU. The default behavior is to only write chan
134134
* Optimized regex compile strategy for improved performance.
135135
* Fixed issue with handling of alpha strings in kernel version.
136136
* Fixed matplotlib deprecation issue.
137+
* Enhanced `gpu-ls --about` output.
138+
* Catch and report PermissionError for driver files.
137139
* Prep for debian repository release.
138140

139141
## Development Plans

gpu-ls

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ __docformat__ = 'reStructuredText'
5151
import argparse
5252
import sys
5353
import logging
54+
from platform import release
5455
from GPUmodules import __version__, __status__, __credits__
5556
from GPUmodules import GPUmodule as Gpu
5657
from GPUmodules.env import GUT_CONST
@@ -60,8 +61,7 @@ LOGGER = logging.getLogger('gpu-utils')
6061

6162

6263
def main() -> None:
63-
"""
64-
Main flow for gpu-ls.
64+
""" Main flow for gpu-ls.
6565
"""
6666
parser = argparse.ArgumentParser()
6767
parser.add_argument('--about', help='README',
@@ -104,14 +104,18 @@ def main() -> None:
104104

105105
# About me
106106
if args.about:
107+
GUT_CONST.check_env()
107108
current_pversion = sys.version_info
109+
current_kversion_str = release()
108110
print(__doc__)
109111
print('Author: ', __author__)
110112
print('Copyright: ', __copyright__)
111113
print('Credits: ', *['\n {}'.format(item) for item in __credits__])
112114
print('License: ', __license__)
113115
print('Rickslab-gpu-utils Version: ', __version__)
114116
print('Install Type: ', GUT_CONST.install_type)
117+
print('Distro: {}'.format(GUT_CONST.distro))
118+
print('Kernel Version: {}'.format(current_kversion_str))
115119
print('Python Version: {}.{}.{}'.format(current_pversion[0],
116120
current_pversion[1],
117121
current_pversion[2]))
@@ -172,9 +176,6 @@ def main() -> None:
172176
else:
173177
gpu_list.print()
174178

175-
if GUT_CONST.debug:
176-
for key, value in GUT_CONST.PATTERNS.patterns.items():
177-
print('{}\n {}'.format(key, value))
178179
sys.exit(0)
179180

180181

0 commit comments

Comments
 (0)