From 135c061f51c22be89c15f44bf824917010df8d0e535b6e16ace3c765047b28b8 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 4 Jul 2022 09:30:47 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 20 +++++ _servicedata | 4 + nvtop-2.0.2.obscpio | 3 + nvtop.changes | 175 ++++++++++++++++++++++++++++++++++++++++++++ nvtop.obsinfo | 4 + nvtop.spec | 53 ++++++++++++++ 8 files changed, 283 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 nvtop-2.0.2.obscpio create mode 100644 nvtop.changes create mode 100644 nvtop.obsinfo create mode 100644 nvtop.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..dff2336 --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + https://github.com/Syllo/nvtop.git + git + enable + master + enable + malcolmlewis@opensuse.org + nvtop + @PARENT_TAG@+@TAG_OFFSET@ + (.*)\+0 + \1 + + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..8cac581 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/Syllo/nvtop.git + dcfac6b4f1171b95b71e23b32508075931539577 \ No newline at end of file diff --git a/nvtop-2.0.2.obscpio b/nvtop-2.0.2.obscpio new file mode 100644 index 0000000..bf6e2c2 --- /dev/null +++ b/nvtop-2.0.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14d98076030be1ad3a1fa564c9d75d68c311b5a013216cd70ad32c580e90ed81 +size 615436 diff --git a/nvtop.changes b/nvtop.changes new file mode 100644 index 0000000..9cfbf0c --- /dev/null +++ b/nvtop.changes @@ -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//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. diff --git a/nvtop.obsinfo b/nvtop.obsinfo new file mode 100644 index 0000000..60a0a63 --- /dev/null +++ b/nvtop.obsinfo @@ -0,0 +1,4 @@ +name: nvtop +version: 2.0.2 +mtime: 1654946500 +commit: dcfac6b4f1171b95b71e23b32508075931539577 diff --git a/nvtop.spec b/nvtop.spec new file mode 100644 index 0000000..e9e1d34 --- /dev/null +++ b/nvtop.spec @@ -0,0 +1,53 @@ +# +# spec file for package nvtop +# +# Copyright (c) 2020-2022 Malcolm J Lewis +# +# 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 +