From 9f015e7ccd19ece656e8acdf72cbd0ccc79cb8543f010d7d9d60102280f630ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:12:08 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main nvptx-tools revision 49e977e6d2f527a0f3864341ebf5b61d --- .gitattributes | 23 +++++++ _service | 14 +++++ _servicedata | 4 ++ nvptx-tools-1.0+git.20230122.93e0090.tar.xz | 3 + nvptx-tools.changes | 50 +++++++++++++++ nvptx-tools.spec | 68 +++++++++++++++++++++ 6 files changed, 162 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 nvptx-tools-1.0+git.20230122.93e0090.tar.xz create mode 100644 nvptx-tools.changes create mode 100644 nvptx-tools.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/_service b/_service new file mode 100644 index 0000000..a6954ef --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/MentorEmbedded/nvptx-tools + git + enable + nvptx-tools + 1.0+git.%cd.%h + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..447df99 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/MentorEmbedded/nvptx-tools + 93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b \ No newline at end of file diff --git a/nvptx-tools-1.0+git.20230122.93e0090.tar.xz b/nvptx-tools-1.0+git.20230122.93e0090.tar.xz new file mode 100644 index 0000000..940ce15 --- /dev/null +++ b/nvptx-tools-1.0+git.20230122.93e0090.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c6ef5dd16d22da04f4d176d2860c56ac3f5066deff84ccd84c880e803d060c7 +size 539056 diff --git a/nvptx-tools.changes b/nvptx-tools.changes new file mode 100644 index 0000000..42eaacb --- /dev/null +++ b/nvptx-tools.changes @@ -0,0 +1,50 @@ +------------------------------------------------------------------- +Tue Mar 21 21:44:49 UTC 2023 - mliska@suse.cz + +- Start using tar_scm OBS server for a tarball. +- Update to version 1.0+git.20230122.93e0090: + * nm: '#define __STDC_FORMAT_MACROS' for '#include ' [#40] + * 'nm' + * ld: Clean up the 'symbol_table' when we're done + * as: Clean up the 'symbol_table' when we're done + * ld: Clean up 'file_hash_entry' instances when we're done with the 'symbol_table' + * as: Always 'free' the 'tok_preamble_target_arg'-deduced 'target_arg' string after 'ptxas' verification + * as: 'obstack_free' after 'ptxas' verification + * run: Close files after use + +------------------------------------------------------------------- +Thu Oct 13 09:34:42 UTC 2022 - Richard Biener + +- Update nvptx-tools tarball from git + * includes changes in nvptx-tools.patch + * deals with CUDA 11 dropping support for NVIDIA Kepler sm_30 and sm_32 +- Remove nvptx-tools.patch as it is included in the above tarball update +- Package nvptx-none-run and nvptx-none-run-single tools + +------------------------------------------------------------------- +Wed Jun 3 12:02:34 UTC 2020 - Guillaume GARDET + +- Enable build on aarch64 + +------------------------------------------------------------------- +Tue Sep 5 07:03:59 UTC 2017 - rguenther@suse.com + +- Update nvptx-tools.patch to check for getopt to avoid providing + an incompatible declaration. + +------------------------------------------------------------------- +Mon Feb 6 14:56:34 UTC 2017 - jengelh@inai.de + +- Update description + +------------------------------------------------------------------- +Mon Feb 6 11:18:26 UTC 2017 - rguenther@suse.com + +- Package COPYING3. + +------------------------------------------------------------------- +Thu Jan 26 11:30:32 UTC 2017 - rguenther@suse.com + +- Initial version. +- Add nvptx-tools.patch to avoid errors when ptxas is not available. + diff --git a/nvptx-tools.spec b/nvptx-tools.spec new file mode 100644 index 0000000..cc0d08a --- /dev/null +++ b/nvptx-tools.spec @@ -0,0 +1,68 @@ +# +# spec file for package nvptx-tools +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: nvptx-tools +Version: 1.0+git.20230122.93e0090 +Release: 0 +Summary: PTX language tools +License: GPL-3.0-or-later +Group: Development/Tools/Building +URL: https://github.com/MentorEmbedded/nvptx-tools/ +Source: %{name}-%{version}.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# Note that w/o a CUDA development (at least cuda.h and libcuda.so) the +# tools for executing are not built. CUDA is not free software. +BuildRequires: gcc-c++ +# The package is used for NVPTX offloading support in GCC which is currently +# only enabled on x86_64 and aarch64 +ExclusiveArch: x86_64 aarch64 + +%description +A collection of tools for use with nvptx-none (NVIDIA Parallel Thread +Execution) GCC toolchains. + +* nvptx-none-as: "assembler" for PTX. +* nvptx-none-ld: "linker" for PTX. +* nvptx-none-run: run PTX binaries compiled with -mmainkernel. +* nvptx-none-run-single: like nvptx-none-run, but locked, such that + system-wide, only one instance of it is running at a time. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +make DESTDIR=%{buildroot} install + +%files +%defattr(-,root,root) +%dir %{_prefix}/nvptx-none +%{_prefix}/nvptx-none +%{_bindir}/nvptx-none-ar +%{_bindir}/nvptx-none-as +%{_bindir}/nvptx-none-ld +%{_bindir}/nvptx-none-nm +%{_bindir}/nvptx-none-ranlib +%{_bindir}/nvptx-none-run +%{_bindir}/nvptx-none-run-single +%doc COPYING3 + +%changelog