Skip to content

Commit c5ccd08

Browse files
authored
COMPUTE_DEVICE in lowercase, forced conversion to UpperCase added (#278)
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 11df84b commit c5ccd08

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.16.0 - 2024-07-30]
6+
7+
### Fixed
8+
9+
- NextcloudApp: `get_computation_device` function now correctly returns result in upper_case.
10+
511
## [0.15.0 - 2024-07-19]
612

713
### Added

nc_py_api/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of nc_py_api."""
22

3-
__version__ = "0.15.0"
3+
__version__ = "0.16.0.dev0"

nc_py_api/ex_app/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ def get_model_path(model_name: str) -> str:
5454

5555
def get_computation_device() -> str:
5656
"""Returns computation device(`ROCM` or `CUDA`) if it is defined in the environment variable."""
57-
return os.environ.get("COMPUTE_DEVICE", "")
57+
return str(os.environ.get("COMPUTE_DEVICE", "")).upper()

0 commit comments

Comments
 (0)