1
0
forked from pool/adaptivecpp

19 Commits

Author SHA256 Message Date
a6a7ce9484 Accepting request 1284234 from devel:tools:compiler
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1284234
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=8
2025-06-10 07:08:30 +00:00
82b9526f65 - Exclude armv{6,7}l from built arches
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=22
2025-06-02 14:07:57 +00:00
a9720c655e Accepting request 1276334 from devel:tools:compiler
- Update to version 25.02.0:
  * Introducing AdaptiveCpp portable CUDA (PCUDA):
    AdaptiveCpp 25.02 introduces support for a new programming
    model in its generic JIT compiler: The portable CUDA (PCUDA)
    model. This programming model is a dialect of the CUDA and HIP
    programming model. AdaptiveCpp PCUDA allows taking CUDA or HIP
    source code, recompile with AdaptiveCpp, and obtain a single
    single binary that can dispatch kernels to CPUs, Intel GPUs,
    AMD GPUs, NVIDIA GPUs (or all at the same time).
  * Full highlights at:
    https://github.com/AdaptiveCpp/AdaptiveCpp/releases/tag/v25.02.0
  * Full changelog at:
    https://github.com/AdaptiveCpp/AdaptiveCpp/compare/v24.10.0...v25.02.0
* Drop adaptivecpp-24.10.0-cmake4.patch: upstreamed

OBS-URL: https://build.opensuse.org/request/show/1276334
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=7
2025-05-12 14:47:32 +00:00
59028ef3f7 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=20 2025-05-09 22:01:58 +00:00
9b8fe5c296 - Update to version 25.02.0:
* Introducing AdaptiveCpp portable CUDA (PCUDA):
    AdaptiveCpp 25.02 introduces support for a new programming
    model in its generic JIT compiler: The portable CUDA (PCUDA)
    model. This programming model is a dialect of the CUDA and HIP
    programming model. AdaptiveCpp PCUDA allows taking CUDA or HIP
    source code, recompile with AdaptiveCpp, and obtain a single
    single binary that can dispatch kernels to CPUs, Intel GPUs,
    AMD GPUs, NVIDIA GPUs (or all at the same time).
  * Full highlights at:
    https://github.com/AdaptiveCpp/AdaptiveCpp/releases/tag/v25.02.0
  * Full changelog at:
    https://github.com/AdaptiveCpp/AdaptiveCpp/compare/v24.10.0...v25.02.0
* Drop adaptivecpp-24.10.0-cmake4.patch: upstreamed

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=19
2025-05-09 22:00:33 +00:00
f6a890aa08 Accepting request 1274861 from devel:tools:compiler
- Use Source URL instead of _service to fetch the source code

OBS-URL: https://build.opensuse.org/request/show/1274861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=6
2025-05-06 14:43:30 +00:00
37f64ba375 - Use Source URL instead of _service to fetch the source code
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=17
2025-05-06 10:39:38 +00:00
0eb784b747 Accepting request 1270916 from devel:tools:compiler
OBS-URL: https://build.opensuse.org/request/show/1270916
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=5
2025-04-20 07:35:32 +00:00
fdd89fa292 Fix up: missing patch for cmake 4
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=15
2025-04-19 00:16:54 +00:00
b54325932b boo#1239788
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=14
2025-04-18 15:27:14 +00:00
ab664165f7 Accepting request 1235204 from devel:tools:compiler
- Update to version 24.10.0~0:
  * AdaptiveCpp 24.10 introduces additional JIT-time optimizations,
    especially at the default ACPP_ADAPTIVITY_LEVEL=1 setting.
    Users may see substantial performance improvements for some
    kernels.
  * ACPP_ALLOCATION_TRACKING=1 was added which can enable the JIT
    compiler to include even more information about memory usage in
    code generation, further improving performance in some cases.
  * Added full support for the SYCL 2020 group algorithms library
    in the default generic JIT compiler on all backends.
  * Additional C++ parallel STL algorithms supported for offloading
  * Introducing the acpp::algorithms library: The algorithms
    underneath the C++ parallel STL offloading support are now also
    documented and exposed on the SYCL level for users who wish to
    invoke them from SYCL with a higher degree of control.
  * Added framework for JIT-time reflection to generic JIT
    compiler.
  * New extensions:
    ~ AdaptiveCpp_restrict_ptr
    ~ AdaptiveCpp_jit::compile_if
- Remove requirement on LLVM 18 and update version
- Renamed libraries to libacpp-*
- Deleted 0002-CMake-acpp-clang-to-MODULE.patch: upstreamed
- Renamed 0003-Remove-realpath-in-acpp.patch to
  0002-Remove-realpath-in-acpp.patch

OBS-URL: https://build.opensuse.org/request/show/1235204
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=4
2025-01-07 19:51:59 +00:00
e09a88cefe Accepting request 1228747 from devel:tools:compiler
- Split OpenMP runtime from the generic library

OBS-URL: https://build.opensuse.org/request/show/1228747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=3
2024-12-08 10:36:59 +00:00
39769e4e07 - Split OpenMP runtime from the generic library
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=7
2024-12-06 11:14:54 +00:00
9af42131dc Accepting request 1226349 from devel:tools:compiler
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1226349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=2
2024-11-26 19:55:45 +00:00
2cd8145f48 - Convert patches to git format
* 01-env-to-interpreter.patch ->
    0001-Use-bin-env-python3-instead-of-python3-in-scripts.patch
  * 02-cmake-modules.patch ->0002-CMake-acpp-clang-to-MODULE.patch
- Added patch 0003-Remove-realpath-in-acpp.patch to remove
  warning when using acpp caused by %fdupes.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=5
2024-11-18 19:14:20 +00:00
7e7ba81832 Accepting request 1224581 from devel:tools:compiler
Adaptivecpp is an open implementation of SYCL for CPUs and GPUs.

AFAIK we do miss an open source SYCL implementation in Factory.

OBS-URL: https://build.opensuse.org/request/show/1224581
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/adaptivecpp?expand=0&rev=1
2024-11-18 19:00:40 +00:00
b019480dc4 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=3 2024-11-18 14:30:47 +00:00
98d967f6cc - Convert patches to git format
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=2
2024-11-18 14:29:30 +00:00
5258bbcf53 Adaptivecpp is an open implementation of SYCL for CPUs and GPUs
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/adaptivecpp?expand=0&rev=1
2024-11-16 06:52:35 +00:00
12 changed files with 62 additions and 127 deletions

View File

@@ -1,25 +0,0 @@
From d7ab43ed1532db1ff04e5e7c324c83179d8318c3 Mon Sep 17 00:00:00 2001
From: VaiTon <eyadlorenzo@gmail.com>
Date: Mon, 18 Nov 2024 15:22:58 +0100
Subject: [PATCH 2/3] CMake acpp-clang to MODULE
---
src/compiler/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/CMakeLists.txt b/src/compiler/CMakeLists.txt
index 96eb97f..faa7c50 100644
--- a/src/compiler/CMakeLists.txt
+++ b/src/compiler/CMakeLists.txt
@@ -75,7 +75,7 @@ else()
set(REFLECTION_BUILTINS "")
endif()
-add_library(acpp-clang SHARED
+add_library(acpp-clang MODULE
AdaptiveCppClangPlugin.cpp
GlobalsPruningPass.cpp
${SSCP_COMPILER}
--
2.47.0

View File

@@ -1,25 +0,0 @@
From 2aeb2359bc3c94c0a2f7abe589f3fcb4a4b3958a Mon Sep 17 00:00:00 2001
From: VaiTon <eyadlorenzo@gmail.com>
Date: Mon, 18 Nov 2024 15:24:43 +0100
Subject: [PATCH 3/3] Remove realpath in acpp
---
bin/acpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/acpp b/bin/acpp
index bab3917..04f51f0 100755
--- a/bin/acpp
+++ b/bin/acpp
@@ -1935,7 +1935,7 @@ if __name__ == '__main__':
print_error("acpp requires python 3.")
sys.exit(-1)
- filename = os.path.basename(os.path.realpath(__file__))
+ filename = os.path.basename(__file__)
if filename == "syclcc":
print_warning("syclcc is deprecated; please use acpp instead.")
if filename == "syclcc-clang":
--
2.47.0

View File

@@ -1,20 +0,0 @@
diff --git a/bin/acpp b/bin/acpp
index 2368348..bab3917 100755
--- a/bin/acpp
+++ b/bin/acpp
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
'''
*
diff --git a/cmake/syclcc-launcher b/cmake/syclcc-launcher
index b56341c..6083201 100755
--- a/cmake/syclcc-launcher
+++ b/cmake/syclcc-launcher
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3
"""
*

View File

@@ -1,13 +0,0 @@
diff --git a/src/compiler/CMakeLists.txt b/src/compiler/CMakeLists.txt
index 96eb97f..faa7c50 100644
--- a/src/compiler/CMakeLists.txt
+++ b/src/compiler/CMakeLists.txt
@@ -75,7 +75,7 @@ else()
set(REFLECTION_BUILTINS "")
endif()
-add_library(acpp-clang SHARED
+add_library(acpp-clang MODULE
AdaptiveCppClangPlugin.cpp
GlobalsPruningPass.cpp
${SSCP_COMPILER}

View File

@@ -1,24 +1,4 @@
<services>
<service name="format_spec_file" mode="manual" />
<service name="obs_scm" mode="manual">
<param name="filename">adaptivecpp</param>
<param name="url">https://github.com/AdaptiveCpp/AdaptiveCpp.git</param>
<param name="scm">git</param>
<param name="revision">v24.10.0</param>
<param name="versionformat">@PARENT_TAG@~@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual" />
<service name="tar" mode="buildtime">
<param name="package-meta">yes</param>
</service>
<service name="recompress" mode="buildtime">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>
<service name="download_files" mode="manual" />
</services>

View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:101237e10e366c61a6b7a97c3f188b7846d3e4f9c19868d6e77e6e0b802a06bb
size 6225933

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:940e5f4f38d2dbb699134bed8189874dce52cbf582f917ebeb1cc531f688907a
size 6600205

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8cc8a3be7bb38f88d7fd51597e0ec924b124d4233f64da62a31b9945b55612ca
size 2362488

View File

@@ -1,3 +1,41 @@
-------------------------------------------------------------------
Mon Jun 2 14:07:28 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Exclude armv{6,7}l from built arches
-------------------------------------------------------------------
Fri May 9 21:53:41 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Update to version 25.02.0:
* Introducing AdaptiveCpp portable CUDA (PCUDA):
AdaptiveCpp 25.02 introduces support for a new programming
model in its generic JIT compiler: The portable CUDA (PCUDA)
model. This programming model is a dialect of the CUDA and HIP
programming model. AdaptiveCpp PCUDA allows taking CUDA or HIP
source code, recompile with AdaptiveCpp, and obtain a single
single binary that can dispatch kernels to CPUs, Intel GPUs,
AMD GPUs, NVIDIA GPUs (or all at the same time).
* Full highlights at:
https://github.com/AdaptiveCpp/AdaptiveCpp/releases/tag/v25.02.0
* Full changelog at:
https://github.com/AdaptiveCpp/AdaptiveCpp/compare/v24.10.0...v25.02.0
* Drop adaptivecpp-24.10.0-cmake4.patch: upstreamed
-------------------------------------------------------------------
Thu Apr 24 19:26:28 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Use Source URL instead of _service to fetch the source code
-------------------------------------------------------------------
Fri Apr 18 08:24:05 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- fix build with cmake4 boo#1239788 adaptivecpp-24.10.0-cmake4.patch
- version is 24.10.0 because the package packs tags without offset
- pin to llvm19
-------------------------------------------------------------------
Fri Jan 03 22:30:08 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>

View File

@@ -1,4 +0,0 @@
name: adaptivecpp
version: 24.10.0~0
mtime: 1734735424
commit: 7677cf6eefd8ab46d66168cd07ab042109448124

View File

@@ -2,6 +2,7 @@
# spec file for package adaptivecpp
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +18,15 @@
Name: adaptivecpp
Version: 24.10.0~0
Version: 25.02.0
Release: 0
Summary: Open implementation of SYCL for CPUs and GPUs
License: BSD-2-Clause
URL: https://adaptivecpp.github.io
Source: %{name}-%{version}.tar.gz
Source: https://github.com/AdaptiveCpp/AdaptiveCpp/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-Use-bin-env-python3-instead-of-python3-in-scripts.patch
Patch2: 0002-Remove-realpath-in-acpp.patch
BuildRequires: boost-devel
BuildRequires: clang
BuildRequires: clang-devel
BuildRequires: cmake
BuildRequires: fdupes
@@ -35,16 +35,15 @@ BuildRequires: gcc-c++
BuildRequires: libboost_context-devel
BuildRequires: libboost_fiber-devel
BuildRequires: libboost_test-devel
BuildRequires: libedit-devel
BuildRequires: llvm
BuildRequires: llvm-devel
BuildRequires: make
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: terminfo
BuildRequires: pkgconfig(libedit)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libzstd)
ExcludeArch: i586
ExcludeArch: i586 armv7l armv6l
%description
AdaptiveCpp is an open implementation of SYCL and C++ standard parallelism
@@ -122,14 +121,17 @@ Requires: libacpp-clang = %{version}
Obsoletes: libadaptivecpp-devel <= %{version}-%{release}
%description devel
Development files for AdaptiveCpp
AdaptiveCpp is an open implementation of SYCL and C++ standard parallelism
for CPUs and GPUs from all vendors.
This package contains the development files for AdaptiveCpp.
%prep
%autosetup -p1
%autosetup -p1 -n AdaptiveCpp-%{version}
%build
%define __builder ninja
%cmake
%cmake -DCMAKE_SKIP_RPATH=ON
%cmake_build
@@ -148,9 +150,11 @@ Development files for AdaptiveCpp
%{_bindir}/acpp
%{_bindir}/acpp-hcf-tool
%{_bindir}/acpp-appdb-tool
%{_bindir}/acpp-pcuda-pp
%{_bindir}/acpp-info
%{_bindir}/syclcc
%{_bindir}/syclcc-clang
%{_bindir}/hipSYCL/
# Leap <= 15.6
%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
@@ -158,6 +162,7 @@ Development files for AdaptiveCpp
%endif
%files devel
%license LICENSE
%{_includedir}/AdaptiveCpp/
%dir %{_prefix}/lib/cmake/
%{_prefix}/lib/cmake/AdaptiveCpp/
@@ -167,22 +172,28 @@ Development files for AdaptiveCpp
%{_prefix}%{_sysconfdir}/AdaptiveCpp/acpp-core.json
%files -n libacpp-common
%license LICENSE
%{_prefix}/lib/libacpp-common.so
%files -n libacpp-clang
%license LICENSE
%{_prefix}/lib/libacpp-clang.so
%files -n libacpp-rt
%license LICENSE
%{_prefix}/lib/libacpp-rt.so
%files -n libacpp-bitcode
%license LICENSE
%dir %{_prefix}/lib/hipSYCL/
%{_prefix}/lib/hipSYCL/bitcode/
%files -n libacpp-rt-omp
%license LICENSE
%{_prefix}/lib/hipSYCL/librt-backend-omp.so
%files -n libacpp-llvm-to-backend
%license LICENSE
%dir %{_prefix}/lib/hipSYCL/
%{_prefix}/lib/hipSYCL/llvm-to-backend/