-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@16401 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
# This file is part of Xpra. | ||
# Copyright (C) 2013, 2014 Antoine Martin <[email protected]> | ||
# Copyright (C) 2013-2017 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
@@ -159,7 +159,7 @@ def init_all_devices(): | |
log(" created context=%s", context) | ||
log(" api version=%s", context.get_api_version()) | ||
free, total = driver.mem_get_info() | ||
log(" memory: free=%sMB, total=%sMB", int(free/1024/1024), int(total/1024/1024)) | ||
log(" memory: free=%sMB, total=%sMB", int(free//1024//1024), int(total//1024//1024)) | ||
log(" multi-processors: %s, clock rate: %s", device.get_attribute(da.MULTIPROCESSOR_COUNT), device.get_attribute(da.CLOCK_RATE)) | ||
log(" max block sizes: (%s, %s, %s)", device.get_attribute(da.MAX_BLOCK_DIM_X), device.get_attribute(da.MAX_BLOCK_DIM_Y), device.get_attribute(da.MAX_BLOCK_DIM_Z)) | ||
log(" max grid sizes: (%s, %s, %s)", device.get_attribute(da.MAX_GRID_DIM_X), device.get_attribute(da.MAX_GRID_DIM_Y), device.get_attribute(da.MAX_GRID_DIM_Z)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
# This file is part of Xpra. | ||
# Copyright (C) 2013, 2014 Antoine Martin <[email protected]> | ||
# Copyright (C) 2013-2017 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
@@ -9,6 +9,7 @@ | |
from xpra.log import Logger | ||
log = Logger("encoder", "nvenc") | ||
from xpra.util import pver, print_nested_dict, engs, envbool | ||
from xpra.os_util import bytestostr | ||
|
||
|
||
MAX_TESTED = 384 | ||
|
@@ -19,7 +20,7 @@ def get_nvml_driver_version(): | |
try: | ||
nvmlInit() | ||
v = nvmlSystemGetDriverVersion() | ||
log("nvmlSystemGetDriverVersion=%s", v) | ||
log("nvmlSystemGetDriverVersion=%s", bytestostr(v)) | ||
return v.split(b".") | ||
except Exception as e: | ||
log("get_nvml_driver_version() pynvml error", exc_info=True) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters