mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] nvtop: new package
Date: Thu, 22 Jun 2023 14:09:34 +0200	[thread overview]
Message-ID: <20230622120934.4021449-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20230620085957.347454-1-p.zabel@pengutronix.de>

Thanks, applied as 74923a19b980ec93c8a4122a859d3ce98d1eac3e.

Michael

[sent from post-receive hook]

On Thu, 22 Jun 2023 14:09:34 +0200, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> Only supports AMD (amdgpu), Intel (i915), and Adreno (msm) GPUs for now.
> NVIDIA support would require libnvml.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> Message-Id: <20230620085957.347454-1-p.zabel@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/nvtop.in b/rules/nvtop.in
> new file mode 100644
> index 000000000000..af42874156aa
> --- /dev/null
> +++ b/rules/nvtop.in
> @@ -0,0 +1,34 @@
> +## SECTION=shell_and_console
> +
> +menuconfig NVTOP
> +	bool
> +	prompt "nvtop"
> +	select HOST_CMAKE
> +	select NCURSES
> +	select LIBDRM		if NVTOP_AMDGPU || NVTOP_MSM
> +	select LIBDRM_AMDGPU	if NVTOP_AMDGPU
> +	select SYSTEMD		if NVTOP_AMDGPU || NVTOP_INTEL
> +	help
> +	  Interactive GPU process monitor
> +
> +if NVTOP
> +
> +config NVTOP_NVIDIA
> +	bool
> +	# needs libnvml
> +	depends on BROKEN
> +	prompt "build support for NVIDIA GPUs"
> +
> +config NVTOP_AMDGPU
> +	bool
> +	prompt "build support for AMD GPUs using the amdgpu driver"
> +
> +config NVTOP_INTEL
> +	bool
> +	prompt "build support for Intel GPUs using the i915 driver"
> +
> +config NVTOP_MSM
> +	bool
> +	prompt "build support for Adreno GPUs using the msm driver"
> +
> +endif
> diff --git a/rules/nvtop.make b/rules/nvtop.make
> new file mode 100644
> index 000000000000..738b7a013032
> --- /dev/null
> +++ b/rules/nvtop.make
> @@ -0,0 +1,62 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Philipp Zabel <p.zabel@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_NVTOP) += nvtop
> +
> +#
> +# Paths and names
> +#
> +NVTOP_VERSION	:= 3.0.2
> +NVTOP_MD5	:= fdf9bc33c2240ba99cee0d726d267427
> +NVTOP		:= nvtop-$(NVTOP_VERSION)
> +NVTOP_SUFFIX	:= tar.gz
> +NVTOP_URL	:= https://github.com/Syllo/nvtop/archive/refs/tags/$(NVTOP_VERSION).$(NVTOP_SUFFIX)
> +NVTOP_SOURCE	:= $(SRCDIR)/$(NVTOP).$(NVTOP_SUFFIX)
> +NVTOP_DIR	:= $(BUILDDIR)/$(NVTOP)
> +NVTOP_LICENSE	:= GPL-3.0-or-later
> +NVTOP_LICENSE_FILES := \
> +	file://COPYING;md5=d32239bcb673463ab874e80d47fae504
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# cmake
> +#
> +NVTOP_CONF_TOOL	:= cmake
> +NVTOP_CONF_OPT	:= \
> +	$(CROSS_CMAKE_USR) \
> +	-DNVIDIA_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_NVIDIA) \
> +	-DAMDGPU_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_AMDGPU) \
> +	-DINTEL_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_INTEL) \
> +	-DMSM_SUPPORT=$(call ptx/onoff, PTXCONF_NVTOP_MSM)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/nvtop.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, nvtop)
> +	@$(call install_fixup, nvtop, PRIORITY, optional)
> +	@$(call install_fixup, nvtop, SECTION, base)
> +	@$(call install_fixup, nvtop, AUTHOR, "Philipp Zabel <p.zabel@pengutronix.de>")
> +	@$(call install_fixup, nvtop, DESCRIPTION, missing)
> +
> +	@$(call install_copy, nvtop, 0, 0, 0755, -, /usr/bin/nvtop)
> +
> +	@$(call install_finish, nvtop)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make



      reply	other threads:[~2023-06-22 12:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20  8:59 [ptxdist] [PATCH] " Philipp Zabel
2023-06-22 12:09 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230622120934.4021449-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=p.zabel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox