SHA256
1
0
forked from pool/nvtop

Accepting request 986511 from home:malcolmlewis:TESTING

New package submission

OBS-URL: https://build.opensuse.org/request/show/986511
OBS-URL: https://build.opensuse.org/package/show/utilities/nvtop?expand=0&rev=1
This commit is contained in:
Michael Vetter 2022-07-04 09:30:47 +00:00 committed by Git OBS Bridge
commit 135c061f51
8 changed files with 283 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

20
_service Normal file
View File

@ -0,0 +1,20 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/Syllo/nvtop.git</param>
<param name="scm">git</param>
<param name="submodules">enable</param>
<param name="revision">master</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">malcolmlewis@opensuse.org</param>
<param name="filename">nvtop</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service mode="buildtime" name="tar"/>
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Syllo/nvtop.git</param>
<param name="changesrevision">dcfac6b4f1171b95b71e23b32508075931539577</param></service></servicedata>

3
nvtop-2.0.2.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14d98076030be1ad3a1fa564c9d75d68c311b5a013216cd70ad32c580e90ed81
size 615436

175
nvtop.changes Normal file
View File

@ -0,0 +1,175 @@
-------------------------------------------------------------------
Sun Jul 03 23:26:54 UTC 2022 - malcolmlewis@opensuse.org
- Update to version 2.0.2:
* Fix encode/decode window cleaning on AMDGPU.
* Fix fast resize event not registering.
* Put expensive tests behind an option.
* Fix plot for a maximum of 64 GPUs.
* Expensive test at the end.
* Add test for infinite loop fix.
* Fix wrong size UCHAR_MAX -> UINT_MAX.
* Test for expected empty process window.
* Don't redistribute when no rows are left.
* Header stack of minimum 1 to avoid divide by zero.
* More interface tests.
* Resolve compilation warnings.
* C++ friendly header for testing.
* Don't build testing by default unless in Debug.
* Simplified and fixed plot merge algorithm.
* Expose max lines in a plot as a macro.
* Enable CMake testing using GTest.
* Add assert in info_in_plot.
-------------------------------------------------------------------
Fri May 20 23:15:36 UTC 2022 - malcolmlewis@opensuse.org
- Update to version 2.0.1+12:
* Project wide allocarray availability check.
* Metrics reset cleanup.
* Fix AMDGPU encoder value stored in decoder usage.
* Update encode and decode rates for AMDGPU.
* Alternative path to get GPU usage from process info.
* Linear realloc strategy.
* realloc to reallocarray to catch potential overflows.
* Check for reallocarray availability.
-------------------------------------------------------------------
Tue May 03 00:58:30 UTC 2022 - malcolmlewis@opensuse.org
- Update to version 2.0.1+2:
* docs(README): fix typo (querry -> query).
* Use pp_dpm_pcie to get the current PCIe link configuration.
* Guard GPU family to support older libdrm.
* Bump initial major release with AMDGPU support.
* Disable over-verbose warnings and enable useful ones.
* Fix goto label not preceding a statement.
* Dev tooling improvement.
* Update README and manpage with AMDGPU support info.
* Use libdrm for AMDGPU support.
* AMDGPU power cap info.
* AMDGPU max temps and PCIe gen/width and usage.
* Fan speed extraction from sysfs.
* Don't close negative file descriptors and fix error check.
* Convert AMDGPU watts to the datastructure milliwatts.
* Reset return status when handle or function are not loaded.
* Get the right gpu name in the setup window.
* extract_gpuinfo_amdgpu: Support per-process GPU usage.
* Add basic global (not per-process) GPU usage for AMDGPU.
* Prepare mask for inclusion of multiple vendors.
* Make GPU vendors use a hooking mechanism.
* Make devices into a linked list and make use container_of.
* typedef struct foo -> struct foo.
* extract_gpuinfo_nvidia: Get rid of dlsym cast.
* optimization_flags.cmake: Disable quite a few warnings.
-------------------------------------------------------------------
Mon Dec 13 01:43:09 UTC 2021 - malcolmlewis@opensuse.org
- Update to version 1.2.2+5:
* Remove printf statement.
* Use the maximum of graphical and sm as GPU speed.
* Fix: filter out nvidia utilization samples.
-------------------------------------------------------------------
Sun Jun 06 14:21:09 UTC 2021 - malcolmlewis@opensuse.org
- Update to version 1.2.1:
* Remove TODO file.
* Line plot algorithm rewrite.
* Call most specific ncurses function.
* Rename weirdly named function.
* Clear only the updated part of the process window.
* Merge process related options to process logic.
* Separate the shortcut window logic from process and setup.
* end/dec: clear the windows only when needed.
* Make changes to please clang-tidy in some cases.
* Fix: improve backward compatibility for old drivers.
* Fix: potential buffer overflow on process memory buffer.
* Fix: search in the two pid info caches for a match.
* Fix: not assuming at least one process for pid selection.
* Up-to-date screenshots and README.
-------------------------------------------------------------------
Thu May 20 21:26:43 UTC 2021 - malcolmlewis@opensuse.org
- Update to version 1.1.0+34:
* All the charts have the same scale.
* Fix: chart layout now correctly handles multiple GPUs.
* Bump nvtop version to 1.2.
* Integration of per process utilization to the interface.
* NVIDIA per process utilization info retrieval.
* Add the process list metric options to the setup window.
* Add a notice about the maximum number of metrics per GPU.
* Add the GPU/MEM clock rates to the list of metrics that can be
plotted.
* Add the fan speed to the list of metrics that can be plotted.
* Add the power draw rate to the list of metrics that can be
plotted.
* Add the a no-modification notice to the generated config file.
* Reduce legend size.
* Update README and manpage.
* Fix: the memory usage was initialized with a wrong metric.
* Update interface codebase.
* Use a ring buffer to store the chart data.
* Fix: encode/decode now correctly cleared and displayed.
* Consistency size reduction of menu shortcuts.
* Add the update interval as an option.
* Setup window implementation.
* Configuration file support.
* Redisign of program option handling.
* Update README and doc following the gpuinfo redesign.
* Build system update following the gpuinfo redesign.
* Update interface and main compilation units to use the new
gpuinfo functions.
* Processus info field rename and add missing header.
* Per vendor GPU extraction.
* Bump uthash version to 2.3.0.
* Fix: /proc/<pid>/cmdline may be empty so initialize the string
as empty.
* More paths for NVML library.
* Fix: initialize_device_info failed cause double free.
-------------------------------------------------------------------
Sun Apr 18 15:43:35 UTC 2021 - malcolmlewis@opensuse.org
- Update to version 1.1.0+3:
* Interface: plot refresh rate respects the -d option.
* Fix: sorting function relied on integer conversion.
* Add additional path hints for nvml.
-------------------------------------------------------------------
Fri Dec 11 15:53:00 UTC 2020 - malcolmlewis@opensuse.org
- Update to version 1.1.0:
* Bump version 1.1.0
* README.markdown: add gentoo install commands
- Update _service: Change to @PARENT_TAG@+@TAG_OFFSET@ version
scheme, with +0 being stripped when detected.
-------------------------------------------------------------------
Sun Nov 15 00:47:57 UTC 2020 - malcolmlewis@opensuse.org
- Update to version 1.0.0+git20201111.aa48ce2:
* ITF: print power draw or max draw even when both are not
provided by the driver
-------------------------------------------------------------------
Sat Oct 24 23:39:20 UTC 2020 - malcolmlewis@opensuse.org
- Update to version 1.0.0+git20201012.087a025:
* Plot: reverse to march other monitoring programs behavior
* Build: clear cached variable for build check
* Fix: imprecise information from nvml library
* Fix: wrong variable was used for column computation
* Fix: initialize the correct ammount of plot location
* Build: do not use nvml header automatic api upgrade
* CMake: add nvml path hints
* Doc: fix typo and add encoder/decoder info to manpage
* Fix: increase PID field size supporting linux range
* Update Arch Linux installation instructions
-------------------------------------------------------------------
Sat Oct 24 23:39:04 UTC 2020 - malcolmlewis@opensuse.org
- Initial build.

4
nvtop.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: nvtop
version: 2.0.2
mtime: 1654946500
commit: dcfac6b4f1171b95b71e23b32508075931539577

53
nvtop.spec Normal file
View File

@ -0,0 +1,53 @@
#
# spec file for package nvtop
#
# Copyright (c) 2020-2022 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nvtop
Version: 2.0.2
Release: 0
License: GPL-3.0+
Summary: A (h)top like task monitor for NVIDIA and AMD GPUs
Url: https://github.com/Syllo/nvtop
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(ncurses)
%description
Nvtop stands for NVidia TOP, a (h)top like task monitor for AMD and NVIDIA GPUs.
It can handle multiple GPUs and print information about them in a htop familiar
way.
%prep
%autosetup
%build
%cmake -DCMAKE_BUILD_TYPE=Release \
-DNVML_RETRIEVE_HEADER_ONLINE=True
make %{?_smp_mflags}
%install
%cmake_install
%files
%license COPYING
%{_bindir}/nvtop
%{_mandir}/man1/nvtop.1%{?ext_man}
%changelog