Message ID | b9edc90fb6081f2ea0495b9c22527134@schwi.pl |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 73F3527BBEA; Fri, 17 Jun 2022 17:14:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1870B27BBE9 for <patchwork@mira.cbaines.net>; Fri, 17 Jun 2022 17:14:12 +0100 (BST) Received: from localhost ([::1]:56606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1o2Ebr-0001mV-8d for patchwork@mira.cbaines.net; Fri, 17 Jun 2022 12:14:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1o2EWt-00068Y-22 for guix-patches@gnu.org; Fri, 17 Jun 2022 12:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52890) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1o2EWs-0003lO-O7 for guix-patches@gnu.org; Fri, 17 Jun 2022 12:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1o2EWs-0008D3-Cc for guix-patches@gnu.org; Fri, 17 Jun 2022 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56041] [PATCH] gnu: Add vkmark. Resent-From: Tomasz Jeneralczyk <tj@schwi.pl> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Jun 2022 16:09:02 +0000 Resent-Message-ID: <handler.56041.B.165548209631486@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56041 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56041@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165548209631486 (code B ref -1); Fri, 17 Jun 2022 16:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2022 16:08:16 +0000 Received: from localhost ([127.0.0.1]:46781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1o2EW7-0008Bk-0j for submit@debbugs.gnu.org; Fri, 17 Jun 2022 12:08:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:44028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <tj@schwi.pl>) id 1o2Dpr-0002bU-Ln for submit@debbugs.gnu.org; Fri, 17 Jun 2022 11:24:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tj@schwi.pl>) id 1o2Dpr-0000LU-Gk for guix-patches@gnu.org; Fri, 17 Jun 2022 11:24:35 -0400 Received: from outgoing1.lunanode.net ([172.81.176.235]:36135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tj@schwi.pl>) id 1o2Dpp-0005AQ-43 for guix-patches@gnu.org; Fri, 17 Jun 2022 11:24:34 -0400 Received: from mail1.lunanode.net (mail1.lunanode.net [170.75.162.243]) by outgoing1.lunanode.net (Postfix) with ESMTPS id E67964008C for <guix-patches@gnu.org>; Fri, 17 Jun 2022 15:24:29 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 17 Jun 2022 15:24:28 +0000 From: Tomasz Jeneralczyk <tj@schwi.pl> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <b9edc90fb6081f2ea0495b9c22527134@schwi.pl> X-Sender: tj@schwi.pl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=172.81.176.235; envelope-from=tj@schwi.pl; helo=outgoing1.lunanode.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NO_DNS_FOR_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 17 Jun 2022 12:08:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 17 Jun 2022 12:13:45 -0400 X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#56041] gnu: Add vkmark.
|
|
Commit Message
Tomasz Jeneralczyk
June 17, 2022, 3:24 p.m. UTC
* gnu/packages/benchmark.scm (vkmark): Add variable. --- gnu/packages/benchmark.scm | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) ;;; @@ -36,15 +37,20 @@ (define-module (gnu packages benchmark) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages c) #:use-module (gnu packages check) + #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages databases) #:use-module (gnu packages docbook) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gl) + #:use-module (gnu packages graphics) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages maths) @@ -57,6 +63,8 @@ (define-module (gnu packages benchmark) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages vulkan) + #:use-module (gnu packages xorg) #:use-module (gnu packages xml) #:use-module (ice-9 match)) @@ -584,3 +592,38 @@ (define-public sysbench @item @end itemize") (license license:gpl2+))) + +(define-public vkmark + (let ((commit "d872846e2e7c47010c11227eb713d00ccfdd35c6") + (revision "1")) + (package + (name "vkmark") + (version (git-version "2017.08" revision commit)) + (source (origin + (method git-fetch) + (file-name (git-file-name name version)) + (uri (git-reference + (url "https://github.com/vkmark/vkmark") + (commit commit))) + (sha256 + (base32 + "0zlryz8i8jvl160bv30ig5nd9h4ahpjfw53ys839i41xi80jjg5d")))) + (build-system meson-build-system) + (native-inputs (list pkg-config cmake)) + ;; The kms back-end, as it is, seems to have bitrot + ;; and would need maintenance to work with current Mesa: + ;; https://gitlab.freedesktop.org/mesa/mesa/-/commit/5e6db1916806 + (inputs (list vulkan-loader + vulkan-headers + glm + assimp + libxcb + xcb-util-wm + wayland-protocols + wayland)) + (synopsis "Benchmark for Vulkan") + (description + "vkmark is an extensible Vulkan benchmarking suite with targeted, configurable +scenes.") + (home-page "https://github.com/vkmark/vkmark") + (license license:lgpl2.1)))) base-commit: d6bd483cd53cedc8da39fcc6c419f7241080ed21
Comments
Hi! :D This package seems good to me: passes all lints, builds, and style looks okay. On Fri Jun 17, 2022 at 4:24 PM BST, Tomasz Jeneralczyk wrote: > +(define-public vkmark > + (let ((commit "d872846e2e7c47010c11227eb713d00ccfdd35c6") > + (revision "1")) I think it's common to include an explanation of why tags aren't used :) > + (file-name (git-file-name name version)) > + (uri (git-reference > + (url "https://github.com/vkmark/vkmark") > + (commit commit))) Nitpick: file-name usually comes after uri in most of the packages I've seen. Maybe run guix style, if you haven't already. > + (native-inputs (list pkg-config cmake)) Why include cmake? It seems to compile without it :) > + (synopsis "Benchmark for Vulkan") Maybe expand this to "Extensible benchmarking suite for Vulkan" or something? I'd say this synopsis is a bit too short.
On Fri Jun 17, 2022 at 8:10 PM BST, ( via Guix-patches via wrote:
> Maybe run guix style, if you haven't already.
And only then I discover how questionable guix style's formatting
choices are... I retract this suggestion :P
Forwarded message from Tomasz Jeneralczyk on Fri Jun 17, 2022 at 10:40 PM: On 2022-06-17 19:10, ( wrote: > On Fri Jun 17, 2022 at 4:24 PM BST, Tomasz Jeneralczyk wrote: > I think it's common to include an explanation of why tags aren't used > :) The only tag in the repo is "2017.08" and it's a bit old considering the latest commit was just a few days ago. I did not manage to compile the old version successfully anyway, I suspect the api of the libraries it uses has changed significantly in the meantime. On the latest commit all benchmark suites run just fine for me on xcb backend, and someone on irc confirmed it works on wayland too so I rolled with that. Do you want me to write a comment there explaining why I used a specific commit? > Nitpick: file-name usually comes after uri in most of the packages I've > seen. Maybe run guix style, if you haven't already. All I can tell is guix style does not do much, could not even fix this simple issue. > Why include cmake? It seems to compile without it :) You are right. I think it is there because during building process it spits out "Found CMAKE: NO" during compilation and I thought that was an issue. > Maybe expand this to "Extensible benchmarking suite for Vulkan" or > something? I'd say this synopsis is a bit too short. your suggestion sounds good. So do I send a new patch in this thread (with the same or a different subject?) or make a new thread with it? Please only send plain-text email; see <https://useplaintext.email>. Thanks!
Forwarded message from ( on Fri Jun 17, 2022 at 11:47 PM: On Fri Jun 17, 2022 at 11:40 PM BST, Tomasz Jeneralczyk wrote: > Do you want me to write a comment there explaining why I used a specific > commit? Yeah, that'd be good and seems to be usual practise :) > > Nitpick: file-name usually comes after uri in most of the packages I've > > seen. Maybe run guix style, if you haven't already. > > All I can tell is guix style does not do much, could not even fix this > simple > issue. Yeah, i just replied to my message saying that I no longer recommend guix style, since it completely wrecked the formatting of a package I was working on... Interesting that it doesn't do anything here, though. > So do I send a new patch in this thread (with the same or a different > subject?) or make a new thread with it? (1) make modifications (2) commit modifications (3) rebase <https://git-rebase.io> the commits as fixups for the original commits so that your new patchset will be completely independent of the original (4) git send-email -v2 to _this_ thread <56041 <at> debbugs.gnu.org>, not a new one This will send an amended set of commits. Note that these commits should not be fixes for the earlier commits, but modified versions of the original commits (so that the v2 patches can be applied without first applying the v1 patches). Please only send plain-text email; see <https://useplaintext.email>. Thanks!
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm index b167c6de6e..98d9390472 100644 --- a/gnu/packages/benchmark.scm +++ b/gnu/packages/benchmark.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020 Greg Hogan <code@greghogan.com> ;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net> +;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl> ;;; ;;; This file is part of GNU Guix.