Public bug reported: When building rocprim locally (versions 7.1.1 and 7.2.3) on a machine with an AMD GPU (/dev/kfd), tests triggered after the build due to the `override_dh_auto_test-arch` rule fail.
The behavior is also present if the `override_dh_auto_test-arch` rule is commented out and autopkgtests are executed locally using the generated binaries. However, if the package is built on a PPA (such as https://launchpad.net/~bruno- bdmoura/+archive/ubuntu/hipcub-7.2.3/+packages) and autopkgtests are triggered from there, they succeed. [Observed failures] - 71 tests crash with SIGSEGV — unsafe cast in ihipLaunchKernel when a code object fails to load (Upstream bug: ROCm/rocm-systems#2805) - 4 tests return HIP error 98: hipErrorInvalidDeviceFunction — GPU code object cannot be loaded [Tested On] - Ubuntu resolute:daily on a machine with an AMD Radeon 8060S GPU (gfx 1151) [Steps to Reproduce] - Download the package source for version 7.2.3 - Add dependency PPAs if not available in the primary archive: - ppa:tchavadar/rocm-llvm-7.2.3-resolute - ppa:bruno-bdmoura/rocm-hipamd-7.2.3 - ppa:igorluppi/rocm-cmake-7.2.3 - ppa:tchavadar/rocr-runtime-7.2.3 - Build locally using: `dpkg-buildpackage -b -uc -us` [Results] - Autopkgtests triggered from PPA (Passing): ``` [----------] Global test environment tear-down [==========] 4 tests from 1 test suite ran. (319 ms total) [ PASSED ] 4 tests. Warning: Resource leak detected by SharedSignalPool, 1 Signals leaked. autopkgtest [12:24:07]: test librocprim-tests: -----------------------] autopkgtest [12:24:09]: test librocprim-tests: - - - - - - - - - - results - - - - - - - - - - librocprim-tests PASS autopkgtest [12:24:10]: @@@@@@@@@@@@@@@@@@@@ summary librocprim-tests PASS 2026-05-27 12:24:12 - Autopkg tests ended for rocprim in ppa:bruno-bdmoura/rocprim-7.2.3. ``` - Autopkgtests triggered locally (Failing): ``` Segmentation fault (core dumped) autopkgtest [14:36:50]: test librocprim-tests: -----------------------] autopkgtest [14:36:51]: test librocprim-tests: - - - - - - - - - - results - - - - - - - - - - librocprim-tests FAIL non-zero exit status 1 autopkgtest [14:36:51]: @@@@@@@@@@@@@@@@@@@@ summary librocprim-tests FAIL non-zero exit status 1 2026-05-26 14:36:54 - Autopkg tests ended for rocprim. Tests took: 0h 10m 34s. ``` - `override_dh_auto_test-arch` build-time tests (Failing): ``` 17% tests passed, 71 tests failed out of 86 Label Time Summary: hip = 83.62 sec*proc (78 tests) Total Test time (real) = 87.41 sec The following tests FAILED: 1 - hip.device_api (SEGFAULT) 2 - hip.async_copy (SEGFAULT) 3 - hip.ordered_block_id (SEGFAULT) 4 - hipgraph.basic (Failed) 5 - hipgraph.algs (Failed) 6 - rocprim.internal_merge_path (SEGFAULT) hip 7 - rocprim.basic_test (SEGFAULT) hip 8 - rocprim.arg_index_iterator (SEGFAULT) hip 10 - rocprim.block_adjacent_difference (SEGFAULT) hip 11 - rocprim.block_discontinuity (SEGFAULT) hip 13 - rocprim.block_exchange (SEGFAULT) hip 14 - rocprim.block_histogram (SEGFAULT) hip 15 - rocprim.block_load_store (SEGFAULT) hip 16 - rocprim.block_sort_merge (SEGFAULT) hip 17 - rocprim.block_sort_merge_stable (SEGFAULT) hip 18 - rocprim.block_radix_rank (SEGFAULT) hip 19 - rocprim.block_radix_sort (SEGFAULT) hip 20 - rocprim.block_reduce (SEGFAULT) hip 21 - rocprim.block_run_length_decode (SEGFAULT) hip 22 - rocprim.block_scan (SEGFAULT) hip 23 - rocprim.block_shuffle (SEGFAULT) hip 24 - rocprim.block_sort_bitonic (SEGFAULT) hip 25 - rocprim.config_dispatch (SEGFAULT) hip 26 - rocprim.constant_iterator (SEGFAULT) hip 27 - rocprim.counting_iterator (SEGFAULT) hip 28 - rocprim.device_batch_memcpy (Failed) hip 29 - rocprim.device_binary_search (SEGFAULT) hip 30 - rocprim.device_find_first_of (SEGFAULT) hip 31 - rocprim.device_adjacent_difference (SEGFAULT) hip 32 - rocprim.device_adjacent_find (SEGFAULT) hip 33 - rocprim.device_find_end (SEGFAULT) hip 34 - rocprim.device_histogram (SEGFAULT) hip 35 - rocprim.device_merge (SEGFAULT) hip 36 - rocprim.device_merge_inplace (Failed) hip 37 - rocprim.device_merge_sort (SEGFAULT) hip 38 - rocprim.nth_element (SEGFAULT) hip 39 - rocprim.device_partial_sort (SEGFAULT) hip 40 - rocprim.device_partition (SEGFAULT) hip 41 - rocprim.device_radix_sort (SEGFAULT) hip 42 - rocprim.device_reduce_by_key (SEGFAULT) hip 43 - rocprim.device_reduce (SEGFAULT) hip 44 - rocprim.device_run_length_encode (Failed) hip 45 - rocprim.device_scan_by_key (SEGFAULT) hip 46 - rocprim.device_search (SEGFAULT) hip 47 - rocprim.device_segmented_radix_sort (SEGFAULT) hip 48 - rocprim.device_search_n (SEGFAULT) hip 49 - rocprim.device_segmented_reduce (SEGFAULT) hip 50 - rocprim.device_segmented_scan (SEGFAULT) hip 51 - rocprim.device_select (SEGFAULT) hip 52 - rocprim.device_transform (SEGFAULT) hip 53 - rocprim.discard_iterator (SEGFAULT) hip 54 - rocprim.lookback_reproducibility (SEGFAULT) hip 56 - rocprim.predicate_iterator (SEGFAULT) hip 57 - rocprim.reverse_iterator (SEGFAULT) hip 60 - rocprim.texture_cache_iterator (SEGFAULT) hip 61 - rocprim.thread (SEGFAULT) hip 62 - rocprim.thread_algos (SEGFAULT) hip 63 - rocprim.tuple (SEGFAULT) hip 64 - rocprim.utils_sort_checker (SEGFAULT) hip 65 - rocprim.transform_iterator (SEGFAULT) hip 71 - rocprim.intrinsics (SEGFAULT) hip 72 - rocprim.intrinsics_atomic (SEGFAULT) hip 74 - rocprim.warp_exchange (SEGFAULT) hip 75 - rocprim.warp_load (SEGFAULT) hip 76 - rocprim.warp_reduce (SEGFAULT) hip 77 - rocprim.warp_scan (SEGFAULT) hip 78 - rocprim.warp_scan_disable_dpp_disable_dpp (SEGFAULT) hip 79 - rocprim.warp_sort (SEGFAULT) hip 80 - rocprim.warp_store (SEGFAULT) hip 81 - rocprim.zip_iterator (SEGFAULT) hip 83 - rocprim.linking (SEGFAULT) hip Errors while running CTest make[2]: *** [Makefile:94: test] Error 8 make[2]: Leaving directory '/home/ubuntu/Workspace/deb_rocprim/rocprim/obj-x86_64-linux-gnu' dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j1 test ARGS\+=--verbose ARGS\+=-j1 returned exit code 2 make[1]: *** [debian/rules:38: override_dh_auto_test-arch] Error 25 make[1]: Leaving directory '/home/ubuntu/Workspace/deb_rocprim/rocprim' make: *** [debian/rules:28: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 ``` ** Affects: rocprim (Ubuntu) Importance: Undecided Status: New ** Description changed: When building rocprim locally (versions 7.1.1 and 7.2.3) on a machine with an AMD GPU (/dev/kfd), tests triggered after the build due to the `override_dh_auto_test-arch` rule fail. The behavior is also present if the `override_dh_auto_test-arch` rule is commented out and autopkgtests are executed locally using the generated binaries. However, if the package is built on a PPA (such as https://launchpad.net/~bruno- bdmoura/+archive/ubuntu/hipcub-7.2.3/+packages) and autopkgtests are - triggered there, they succeed. This is likely because Launchpad build - environments lack physical GPU access, causing the failing hardware - routines to be bypassed. + triggered from there, they succeed. [Observed failures] - 71 tests crash with SIGSEGV — unsafe cast in ihipLaunchKernel when a code object fails to load (Upstream bug: ROCm/rocm-systems#2805) - 4 tests return HIP error 98: hipErrorInvalidDeviceFunction — GPU code object cannot be loaded [Tested On] - Ubuntu resolute:daily on a machine with an AMD Radeon 8060S GPU (gfx 1151) [Steps to Reproduce] - - Download the package source for version 7.2.3 - - Add dependency PPAs if not available in the primary archive: - - ppa:tchavadar/rocm-llvm-7.2.3-resolute - - ppa:bruno-bdmoura/rocm-hipamd-7.2.3 - - ppa:igorluppi/rocm-cmake-7.2.3 - - ppa:tchavadar/rocr-runtime-7.2.3 - - Build locally using: `dpkg-buildpackage -b -uc -us` + - Download the package source for version 7.2.3 + - Add dependency PPAs if not available in the primary archive: + - ppa:tchavadar/rocm-llvm-7.2.3-resolute + - ppa:bruno-bdmoura/rocm-hipamd-7.2.3 + - ppa:igorluppi/rocm-cmake-7.2.3 + - ppa:tchavadar/rocr-runtime-7.2.3 + - Build locally using: `dpkg-buildpackage -b -uc -us` [Results] - Autopkgtests triggered from PPA (Passing): ``` - [----------] Global test environment tear-down - [==========] 4 tests from 1 test suite ran. (319 ms total) - [ PASSED ] 4 tests. - Warning: Resource leak detected by SharedSignalPool, 1 Signals leaked. - autopkgtest [12:24:07]: test librocprim-tests: -----------------------] - autopkgtest [12:24:09]: test librocprim-tests: - - - - - - - - - - results - - - - - - - - - - - librocprim-tests PASS - autopkgtest [12:24:10]: @@@@@@@@@@@@@@@@@@@@ summary - librocprim-tests PASS - 2026-05-27 12:24:12 - Autopkg tests ended for rocprim in ppa:bruno-bdmoura/rocprim-7.2.3. + [----------] Global test environment tear-down + [==========] 4 tests from 1 test suite ran. (319 ms total) + [ PASSED ] 4 tests. + Warning: Resource leak detected by SharedSignalPool, 1 Signals leaked. + autopkgtest [12:24:07]: test librocprim-tests: -----------------------] + autopkgtest [12:24:09]: test librocprim-tests: - - - - - - - - - - results - - - - - - - - - - + librocprim-tests PASS + autopkgtest [12:24:10]: @@@@@@@@@@@@@@@@@@@@ summary + librocprim-tests PASS + 2026-05-27 12:24:12 - Autopkg tests ended for rocprim in ppa:bruno-bdmoura/rocprim-7.2.3. ``` - Autopkgtests triggered locally (Failing): ``` - Segmentation fault (core dumped) - autopkgtest [14:36:50]: test librocprim-tests: -----------------------] - autopkgtest [14:36:51]: test librocprim-tests: - - - - - - - - - - results - - - - - - - - - - - librocprim-tests FAIL non-zero exit status 1 - autopkgtest [14:36:51]: @@@@@@@@@@@@@@@@@@@@ summary - librocprim-tests FAIL non-zero exit status 1 - 2026-05-26 14:36:54 - Autopkg tests ended for rocprim. - Tests took: 0h 10m 34s. + Segmentation fault (core dumped) + autopkgtest [14:36:50]: test librocprim-tests: -----------------------] + autopkgtest [14:36:51]: test librocprim-tests: - - - - - - - - - - results - - - - - - - - - - + librocprim-tests FAIL non-zero exit status 1 + autopkgtest [14:36:51]: @@@@@@@@@@@@@@@@@@@@ summary + librocprim-tests FAIL non-zero exit status 1 + 2026-05-26 14:36:54 - Autopkg tests ended for rocprim. + Tests took: 0h 10m 34s. ``` - `override_dh_auto_test-arch` build-time tests (Failing): ``` 17% tests passed, 71 tests failed out of 86 Label Time Summary: hip = 83.62 sec*proc (78 tests) Total Test time (real) = 87.41 sec The following tests FAILED: - 1 - hip.device_api (SEGFAULT) - 2 - hip.async_copy (SEGFAULT) - 3 - hip.ordered_block_id (SEGFAULT) - 4 - hipgraph.basic (Failed) - 5 - hipgraph.algs (Failed) - 6 - rocprim.internal_merge_path (SEGFAULT) hip - 7 - rocprim.basic_test (SEGFAULT) hip - 8 - rocprim.arg_index_iterator (SEGFAULT) hip - 10 - rocprim.block_adjacent_difference (SEGFAULT) hip - 11 - rocprim.block_discontinuity (SEGFAULT) hip - 13 - rocprim.block_exchange (SEGFAULT) hip - 14 - rocprim.block_histogram (SEGFAULT) hip - 15 - rocprim.block_load_store (SEGFAULT) hip - 16 - rocprim.block_sort_merge (SEGFAULT) hip - 17 - rocprim.block_sort_merge_stable (SEGFAULT) hip - 18 - rocprim.block_radix_rank (SEGFAULT) hip - 19 - rocprim.block_radix_sort (SEGFAULT) hip - 20 - rocprim.block_reduce (SEGFAULT) hip - 21 - rocprim.block_run_length_decode (SEGFAULT) hip - 22 - rocprim.block_scan (SEGFAULT) hip - 23 - rocprim.block_shuffle (SEGFAULT) hip - 24 - rocprim.block_sort_bitonic (SEGFAULT) hip - 25 - rocprim.config_dispatch (SEGFAULT) hip - 26 - rocprim.constant_iterator (SEGFAULT) hip - 27 - rocprim.counting_iterator (SEGFAULT) hip - 28 - rocprim.device_batch_memcpy (Failed) hip - 29 - rocprim.device_binary_search (SEGFAULT) hip - 30 - rocprim.device_find_first_of (SEGFAULT) hip - 31 - rocprim.device_adjacent_difference (SEGFAULT) hip - 32 - rocprim.device_adjacent_find (SEGFAULT) hip - 33 - rocprim.device_find_end (SEGFAULT) hip - 34 - rocprim.device_histogram (SEGFAULT) hip - 35 - rocprim.device_merge (SEGFAULT) hip - 36 - rocprim.device_merge_inplace (Failed) hip - 37 - rocprim.device_merge_sort (SEGFAULT) hip - 38 - rocprim.nth_element (SEGFAULT) hip - 39 - rocprim.device_partial_sort (SEGFAULT) hip - 40 - rocprim.device_partition (SEGFAULT) hip - 41 - rocprim.device_radix_sort (SEGFAULT) hip - 42 - rocprim.device_reduce_by_key (SEGFAULT) hip - 43 - rocprim.device_reduce (SEGFAULT) hip - 44 - rocprim.device_run_length_encode (Failed) hip - 45 - rocprim.device_scan_by_key (SEGFAULT) hip - 46 - rocprim.device_search (SEGFAULT) hip - 47 - rocprim.device_segmented_radix_sort (SEGFAULT) hip - 48 - rocprim.device_search_n (SEGFAULT) hip - 49 - rocprim.device_segmented_reduce (SEGFAULT) hip - 50 - rocprim.device_segmented_scan (SEGFAULT) hip - 51 - rocprim.device_select (SEGFAULT) hip - 52 - rocprim.device_transform (SEGFAULT) hip - 53 - rocprim.discard_iterator (SEGFAULT) hip - 54 - rocprim.lookback_reproducibility (SEGFAULT) hip - 56 - rocprim.predicate_iterator (SEGFAULT) hip - 57 - rocprim.reverse_iterator (SEGFAULT) hip - 60 - rocprim.texture_cache_iterator (SEGFAULT) hip - 61 - rocprim.thread (SEGFAULT) hip - 62 - rocprim.thread_algos (SEGFAULT) hip - 63 - rocprim.tuple (SEGFAULT) hip - 64 - rocprim.utils_sort_checker (SEGFAULT) hip - 65 - rocprim.transform_iterator (SEGFAULT) hip - 71 - rocprim.intrinsics (SEGFAULT) hip - 72 - rocprim.intrinsics_atomic (SEGFAULT) hip - 74 - rocprim.warp_exchange (SEGFAULT) hip - 75 - rocprim.warp_load (SEGFAULT) hip - 76 - rocprim.warp_reduce (SEGFAULT) hip - 77 - rocprim.warp_scan (SEGFAULT) hip - 78 - rocprim.warp_scan_disable_dpp_disable_dpp (SEGFAULT) hip - 79 - rocprim.warp_sort (SEGFAULT) hip - 80 - rocprim.warp_store (SEGFAULT) hip - 81 - rocprim.zip_iterator (SEGFAULT) hip - 83 - rocprim.linking (SEGFAULT) hip + 1 - hip.device_api (SEGFAULT) + 2 - hip.async_copy (SEGFAULT) + 3 - hip.ordered_block_id (SEGFAULT) + 4 - hipgraph.basic (Failed) + 5 - hipgraph.algs (Failed) + 6 - rocprim.internal_merge_path (SEGFAULT) hip + 7 - rocprim.basic_test (SEGFAULT) hip + 8 - rocprim.arg_index_iterator (SEGFAULT) hip + 10 - rocprim.block_adjacent_difference (SEGFAULT) hip + 11 - rocprim.block_discontinuity (SEGFAULT) hip + 13 - rocprim.block_exchange (SEGFAULT) hip + 14 - rocprim.block_histogram (SEGFAULT) hip + 15 - rocprim.block_load_store (SEGFAULT) hip + 16 - rocprim.block_sort_merge (SEGFAULT) hip + 17 - rocprim.block_sort_merge_stable (SEGFAULT) hip + 18 - rocprim.block_radix_rank (SEGFAULT) hip + 19 - rocprim.block_radix_sort (SEGFAULT) hip + 20 - rocprim.block_reduce (SEGFAULT) hip + 21 - rocprim.block_run_length_decode (SEGFAULT) hip + 22 - rocprim.block_scan (SEGFAULT) hip + 23 - rocprim.block_shuffle (SEGFAULT) hip + 24 - rocprim.block_sort_bitonic (SEGFAULT) hip + 25 - rocprim.config_dispatch (SEGFAULT) hip + 26 - rocprim.constant_iterator (SEGFAULT) hip + 27 - rocprim.counting_iterator (SEGFAULT) hip + 28 - rocprim.device_batch_memcpy (Failed) hip + 29 - rocprim.device_binary_search (SEGFAULT) hip + 30 - rocprim.device_find_first_of (SEGFAULT) hip + 31 - rocprim.device_adjacent_difference (SEGFAULT) hip + 32 - rocprim.device_adjacent_find (SEGFAULT) hip + 33 - rocprim.device_find_end (SEGFAULT) hip + 34 - rocprim.device_histogram (SEGFAULT) hip + 35 - rocprim.device_merge (SEGFAULT) hip + 36 - rocprim.device_merge_inplace (Failed) hip + 37 - rocprim.device_merge_sort (SEGFAULT) hip + 38 - rocprim.nth_element (SEGFAULT) hip + 39 - rocprim.device_partial_sort (SEGFAULT) hip + 40 - rocprim.device_partition (SEGFAULT) hip + 41 - rocprim.device_radix_sort (SEGFAULT) hip + 42 - rocprim.device_reduce_by_key (SEGFAULT) hip + 43 - rocprim.device_reduce (SEGFAULT) hip + 44 - rocprim.device_run_length_encode (Failed) hip + 45 - rocprim.device_scan_by_key (SEGFAULT) hip + 46 - rocprim.device_search (SEGFAULT) hip + 47 - rocprim.device_segmented_radix_sort (SEGFAULT) hip + 48 - rocprim.device_search_n (SEGFAULT) hip + 49 - rocprim.device_segmented_reduce (SEGFAULT) hip + 50 - rocprim.device_segmented_scan (SEGFAULT) hip + 51 - rocprim.device_select (SEGFAULT) hip + 52 - rocprim.device_transform (SEGFAULT) hip + 53 - rocprim.discard_iterator (SEGFAULT) hip + 54 - rocprim.lookback_reproducibility (SEGFAULT) hip + 56 - rocprim.predicate_iterator (SEGFAULT) hip + 57 - rocprim.reverse_iterator (SEGFAULT) hip + 60 - rocprim.texture_cache_iterator (SEGFAULT) hip + 61 - rocprim.thread (SEGFAULT) hip + 62 - rocprim.thread_algos (SEGFAULT) hip + 63 - rocprim.tuple (SEGFAULT) hip + 64 - rocprim.utils_sort_checker (SEGFAULT) hip + 65 - rocprim.transform_iterator (SEGFAULT) hip + 71 - rocprim.intrinsics (SEGFAULT) hip + 72 - rocprim.intrinsics_atomic (SEGFAULT) hip + 74 - rocprim.warp_exchange (SEGFAULT) hip + 75 - rocprim.warp_load (SEGFAULT) hip + 76 - rocprim.warp_reduce (SEGFAULT) hip + 77 - rocprim.warp_scan (SEGFAULT) hip + 78 - rocprim.warp_scan_disable_dpp_disable_dpp (SEGFAULT) hip + 79 - rocprim.warp_sort (SEGFAULT) hip + 80 - rocprim.warp_store (SEGFAULT) hip + 81 - rocprim.zip_iterator (SEGFAULT) hip + 83 - rocprim.linking (SEGFAULT) hip Errors while running CTest make[2]: *** [Makefile:94: test] Error 8 make[2]: Leaving directory '/home/ubuntu/Workspace/deb_rocprim/rocprim/obj-x86_64-linux-gnu' dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j1 test ARGS\+=--verbose ARGS\+=-j1 returned exit code 2 make[1]: *** [debian/rules:38: override_dh_auto_test-arch] Error 25 make[1]: Leaving directory '/home/ubuntu/Workspace/deb_rocprim/rocprim' make: *** [debian/rules:28: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2154465 Title: override_dh_auto_test-arch tests fail on host machine with GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rocprim/+bug/2154465/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
