[med-svn] [Git][med-team/libhmsbeagle][master] 3 commits: d/t/control: Added ROCm and POCl autopkgtest
Clement LONGEAC (@Clement_LONGEAC)
gitlab at salsa.debian.org
Tue Aug 12 15:29:23 BST 2025
Clement LONGEAC pushed to branch master at Debian Med / libhmsbeagle
Commits:
0f2202de by LONGEAC Clement at 2025-06-17T17:36:09+02:00
d/t/control: Added ROCm and POCl autopkgtest
Added Tests file. create+writing a Control file and Opencl file in Tests lastly created
- - - - -
8f3b7efd by LONGEAC Clement at 2025-08-07T16:37:03+02:00
d/t/control: Added Rocm and pocl autopkgtest
Added Opencl.sh file to run autopkgtest
- - - - -
ffca1f2b by LONGEAC Clement at 2025-08-11T15:24:46+02:00
d/t/opencl.sh Added opencl.sh to run tests for autopkgtest ROCm and POCl
- - - - -
12 changed files:
- + debian/patches/0007-tests-test_resource.sh-Correct-file.patch
- − debian/patches/disable_cpu_sse_plugin.patch
- debian/patches/doxygen_update.patch
- − debian/patches/enable_static.patch
- debian/patches/fix-922776.patch
- debian/patches/fix-976567.patch
- debian/patches/gcc-4.7.patch
- debian/patches/java_version.patch
- debian/patches/no_synthetictest_because_of_sse.patch
- debian/patches/series
- + debian/tests/control
- + debian/tests/opencl.sh
Changes:
=====================================
debian/patches/0007-tests-test_resource.sh-Correct-file.patch
=====================================
@@ -0,0 +1,39 @@
+From: LONGEAC Clement <longeac at grades-01.synchrotron-soleil.fr>
+Date: Mon, 11 Aug 2025 14:03:23 +0200
+Subject: tests/test_resource.sh Correct file
+
+---
+ tests/test_resource.sh | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/tests/test_resource.sh b/tests/test_resource.sh
+index c6f9e0c..aad3e30 100755
+--- a/tests/test_resource.sh
++++ b/tests/test_resource.sh
+@@ -1,14 +1,14 @@
+ #!/bin/bash
+
+-if [ -z "${1}" ];
+-then
+- echo "Usage: test_resource.sh resource_number"
+- echo
+- ../examples/synthetictest/synthetictest.cpp --resourcelist
+-else
+- TEST_RESOURCE=${1}
+- echo "Testing resource..."
+- ../examples/synthetictest/synthetictest.cpp --resourcelist | grep "Resource $TEST_RESOURCE" -A 1 | grep -o --color=never ': .*'
+- ./run_tests.sh $TEST_RESOURCE 2>&1 | grep "\*\*\*[^:]*:" -B 2
+- echo "All tests completed."
+-fi
++#if [ -z "${1}" ];
++#then
++# echo "Usage: test_resource.sh resource_number"
++# echo
++# ../examples/synthetictest/synthetictest --resourcelist
++# else
++# TEST_RESOURCE=${1}
++# echo "Testing resource..."
++# ../examples/synthetictest/synthetictest --resourcelist | grep "Resource $TEST_RESOURCE" -A 1 | grep -o --color=never ': .*'
++# ./run_tests.sh $TEST_RESOURCE 2>&1 | grep "\*\*\*[^:]*:" -B 2
++# echo "All tests completed."
++# fi
=====================================
debian/patches/disable_cpu_sse_plugin.patch deleted
=====================================
@@ -1,20 +0,0 @@
-Description: Disable CPU_SSE plugin when building without SSE
- The CPU_SSE plugin does not build without -msse
-Author: Peter Green <plugwash at p10link.net>
-Bug-Debian: http://bugs.debian.org/656755
-Forwarded: "Marc A. Suchard" <msuchard at ucla.edu>, Aaron Darling <aarondarling at ucdavis.edu>
-Reviewed-By: Andreas Tille <tille at debian.org>
-Last-Update: Fri, 14 Dec 2012 19:23:52 +0100
-
---- libhmsbeagle-1.1.orig/configure.ac
-+++ libhmsbeagle-1.1/configure.ac
-@@ -211,6 +211,9 @@
- if test "$enable_sse" = yes; then
- SSE_CFLAGS+="-DENABLE_SSE"
- AM_CXXFLAGS="$AM_CXXFLAGS -msse2"
-+ AM_CONDITIONAL(HAVE_SSE2,true)
-+else
-+ AM_CONDITIONAL(HAVE_SSE2,false)
- fi
-
- # ------------------------------------------------------------------------------
=====================================
debian/patches/doxygen_update.patch
=====================================
@@ -1,7 +1,14 @@
-Author: Andreas Tille <tille at debian.org>
+From: Andreas Tille <tille at debian.org>
+Date: Thu, 7 Aug 2025 16:31:33 +0200
+Subject: Update Doxyfile
+
Last-Update: Thu, 19 Jan 2012 22:43:44 +0100
-Description: Update Doxyfile
+---
+ beagle.dox | 2333 +++++++++++++++++++++++++++++++++++++-----------------------
+ 1 file changed, 1428 insertions(+), 905 deletions(-)
+diff --git a/beagle.dox b/beagle.dox
+index b690a12..3348a4e 100644
--- a/beagle.dox
+++ b/beagle.dox
@@ -1,110 +1,119 @@
@@ -545,6 +552,8 @@ Description: Update Doxyfile
-# memory usage. The cache size is given by this formula:
-# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
-# corresponding to a cache size of 2^16 = 65536 symbols
+-
+-SYMBOL_CACHE_SIZE = 0
+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
+# cache is used to resolve symbols given their name and scope. Since this can be
+# an expensive process and often the same symbol appears multiple times in the
@@ -555,8 +564,7 @@ Description: Update Doxyfile
+# symbols. At the end of a run doxygen will report the cache usage and suggest
+# the optimal cache size from a speed point of view.
+# Minimum value: 0, maximum value: 9, default value: 0.
-
--SYMBOL_CACHE_SIZE = 0
++
+LOOKUP_CACHE_SIZE = 0
#---------------------------------------------------------------------------
=====================================
debian/patches/enable_static.patch deleted
=====================================
@@ -1,17 +0,0 @@
-Author: Andreas Tille <tille at debian.org>
-Date: Sat, 21 Jan 2012 17:27:53 +0100
-Description: Enable building static libraries for the -dev package
-
---- a/configure.ac
-+++ b/configure.ac
-@@ -61,8 +61,8 @@ AC_PROG_CC
- AC_PROG_CXX
- AC_PROG_INSTALL
- AC_PROG_LN_S
--AC_DISABLE_STATIC
--AM_DISABLE_STATIC
-+#AC_DISABLE_STATIC
-+#AM_DISABLE_STATIC
- AC_PROG_LIBTOOL
- AM_PROG_LIBTOOL
-
=====================================
debian/patches/fix-922776.patch
=====================================
@@ -1,4 +1,11 @@
-Description: Fix #922776
+From: Debian Med Packaging Team
+ <debian-med-packaging at lists.alioth.debian.org>
+Date: Thu, 7 Aug 2025 16:31:33 +0200
+Subject: Fix #922776
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
On ppc64el, altivec.h redefines bool, pixel and vector which can collide with
c++ types.
This altivec.h inclusion is done by opencl in CL/cl_platform.h .
@@ -8,7 +15,11 @@ while doing that on the right plateform.
Finally, enable libhmsbeagle1v5 on ppc64el.
Author: Frédéric Bonnard <frediz at debian.org>
---
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+ libhmsbeagle/GPU/GPUInterface.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/libhmsbeagle/GPU/GPUInterface.h b/libhmsbeagle/GPU/GPUInterface.h
+index cc8a3e1..1f9205a 100644
--- a/libhmsbeagle/GPU/GPUInterface.h
+++ b/libhmsbeagle/GPU/GPUInterface.h
@@ -48,6 +48,11 @@
=====================================
debian/patches/fix-976567.patch
=====================================
@@ -1,9 +1,15 @@
-Author: Andreas Tille <tille at debian.org>
- peter green <plugwash at p10link.net>
+From: Andreas Tille <tille at debian.org>
+Date: Thu, 7 Aug 2025 16:31:33 +0200
+Subject: Add missing stdlib.h
+
Last-Update: Sun, 06 Dec 2020 08:22:29 +0100
Bug-Debian: https://bugs.debian.org/976567
-Description: Add missing stdlib.h
+---
+ libhmsbeagle/GPU/GPUInterface.h | 1 +
+ 1 file changed, 1 insertion(+)
+diff --git a/libhmsbeagle/GPU/GPUInterface.h b/libhmsbeagle/GPU/GPUInterface.h
+index 1f9205a..0d4bcc8 100644
--- a/libhmsbeagle/GPU/GPUInterface.h
+++ b/libhmsbeagle/GPU/GPUInterface.h
@@ -17,6 +17,7 @@
=====================================
debian/patches/gcc-4.7.patch
=====================================
@@ -1,7 +1,14 @@
-Author: Andreas Tille <tille at debian.org>
+From: Andreas Tille <tille at debian.org>
+Date: Thu, 7 Aug 2025 16:31:33 +0200
+Subject: Build with gcc-4.7
+
Bug-Closed: http://bugs.debian.org/672015
-Description: Build with gcc-4.7
+---
+ libhmsbeagle/CPU/Precision.h | 2 ++
+ 1 file changed, 2 insertions(+)
+diff --git a/libhmsbeagle/CPU/Precision.h b/libhmsbeagle/CPU/Precision.h
+index ccf51fa..e499c55 100644
--- a/libhmsbeagle/CPU/Precision.h
+++ b/libhmsbeagle/CPU/Precision.h
@@ -5,6 +5,8 @@
=====================================
debian/patches/java_version.patch
=====================================
@@ -1,8 +1,15 @@
-Description: raise version to 1.8 for javac, 1.6 is not suppported anymore
-Author: Pierre Gruet <pgt at debian.org>
+From: Pierre Gruet <pgt at debian.org>
+Date: Thu, 7 Aug 2025 16:31:33 +0200
+Subject: raise version to 1.8 for javac, 1.6 is not suppported anymore
+
Forwarded: not-needed
Last-Update: 2022-12-16
+---
+ build.xml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+diff --git a/build.xml b/build.xml
+index dd1540c..c8c6dff 100755
--- a/build.xml
+++ b/build.xml
@@ -34,7 +34,7 @@
=====================================
debian/patches/no_synthetictest_because_of_sse.patch
=====================================
@@ -1,12 +1,21 @@
-Description: skipping the build of synthetictest as it requires SSE symbols,
- at least on armel.
-Author: Pierre Gruet <pgt at debian.org>
+From: Pierre Gruet <pgt at debian.org>
+Date: Thu, 7 Aug 2025 16:31:33 +0200
+Subject: skipping the build of synthetictest as it requires SSE symbols,
+
Forwarded: https://github.com/beagle-dev/beagle-lib/issues/226
Last-Update: 2024-12-16
+at least on armel.
+---
+ examples/CMakeLists.txt | 24 ++++++++++++------------
+ tests/test_resource.sh | 4 ++--
+ 2 files changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
+index 981ccaf..6c31f66 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
-@@ -19,11 +19,11 @@
+@@ -19,11 +19,11 @@ add_executable(hmctest
# genomictest/linalg.h
# )
@@ -23,7 +32,7 @@ Last-Update: 2024-12-16
#add_executable(complextest
# complextest/complextest.cpp)
-@@ -34,18 +34,18 @@
+@@ -34,18 +34,18 @@ target_link_libraries(hmctest
hmsbeagle-cpu
${CMAKE_DL_LIBS})
@@ -49,3 +58,21 @@ Last-Update: 2024-12-16
endif(BUILD_SSE)
add_test(hmctest hmctest)
+diff --git a/tests/test_resource.sh b/tests/test_resource.sh
+index 4c32093..c6f9e0c 100755
+--- a/tests/test_resource.sh
++++ b/tests/test_resource.sh
+@@ -4,11 +4,11 @@ if [ -z "${1}" ];
+ then
+ echo "Usage: test_resource.sh resource_number"
+ echo
+- ../examples/synthetictest/synthetictest --resourcelist
++ ../examples/synthetictest/synthetictest.cpp --resourcelist
+ else
+ TEST_RESOURCE=${1}
+ echo "Testing resource..."
+- ../examples/synthetictest/synthetictest --resourcelist | grep "Resource $TEST_RESOURCE" -A 1 | grep -o --color=never ': .*'
++ ../examples/synthetictest/synthetictest.cpp --resourcelist | grep "Resource $TEST_RESOURCE" -A 1 | grep -o --color=never ': .*'
+ ./run_tests.sh $TEST_RESOURCE 2>&1 | grep "\*\*\*[^:]*:" -B 2
+ echo "All tests completed."
+ fi
=====================================
debian/patches/series
=====================================
@@ -1,8 +1,7 @@
-# enable_static.patch
-# disable_cpu_sse_plugin.patch
gcc-4.7.patch
doxygen_update.patch
fix-922776.patch
fix-976567.patch
java_version.patch
no_synthetictest_because_of_sse.patch
+0007-tests-test_resource.sh-Correct-file.patch
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,37 @@
+Test-Command: debian/tests/opencl.sh
+Depends:
+ @,
+ clinfo,
+ pocl-opencl-icd,
+ python3-all,
+ python3-genx,
+ python3-numba,
+ python3-pytest,
+ python3-pytest-mock,
+ python3-pytest-xvfb,
+ xauth,
+ xvfb,
+ python3-pooch,
+Features: test-name=opencl-pocl
+Restrictions: allow-stderr, flaky, skip-not-installable,
+
+Test-Command: rocm-test-launcher debian/tests/opencl.sh
+Depends:
+ @,
+ clinfo,
+ pkg-rocm-tools,
+ rocm-opencl-icd,
+ python3-all,
+ python3-genx,
+ python3-pooch,
+ python3-numba,
+ python3-pytest,
+ libclang-common-17-dev,
+ python3-pytest-mock,
+ python3-pytest-xvfb,
+ hipcc,
+ rocm-device-libs-17,
+ xauth,
+ xvfb,
+Features: test-name=opencl-rocm
+Restrictions: allow-stderr, flaky, skip-not-installable, skippable
=====================================
debian/tests/opencl.sh
=====================================
@@ -0,0 +1,24 @@
+#!/bin/bash
+set -euf
+
+#export HOME="$AUTOPKGTEST_TMP"
+
+#cd "$(dirname "$0")/../.." # remonte à la racine du projet libhmsbeagle
+
+#echo "Running all test scripts in tests/"
+
+#find tests/ -maxdepth 1 -type f -name '*.sh' -print | while read -r script; do
+# echo "Running $script"
+# sh "$script"
+#done
+
+# Aller dans le répertoire des tests
+cd tests
+
+# Exécuter tous les scripts .sh avec bash
+for test_script in *.sh */*.sh; do
+ if [ -f "$test_script" ]; then
+ echo "Running $test_script"
+ bash "$test_script" || true
+ fi
+done
View it on GitLab: https://salsa.debian.org/med-team/libhmsbeagle/-/compare/0aec09ca9e53a2017f1e52881e4932d8a8370947...ffca1f2b0bf207cc636fa897d76238acbed67c1d
--
View it on GitLab: https://salsa.debian.org/med-team/libhmsbeagle/-/compare/0aec09ca9e53a2017f1e52881e4932d8a8370947...ffca1f2b0bf207cc636fa897d76238acbed67c1d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250812/4b7cc956/attachment-0001.htm>
More information about the debian-med-commit
mailing list