0s autopkgtest [16:25:05]: starting date and time: 2024-11-02 16:25:05+0000 0s autopkgtest [16:25:05]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [16:25:05]: host juju-7f2275-prod-proposed-migration-environment-14; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.okdo0c40/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:rocminfo,src:rocr-runtime,src:roct-thunk-interface --apt-upgrade rocm-hipamd --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=rocminfo/6.1.2-1 rocr-runtime/6.1.2-2 roct-thunk-interface/6.1.2+ds-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-14@bos03-ppc64el-14.secgroup --name adt-plucky-ppc64el-rocm-hipamd-20241102-162504-juju-7f2275-prod-proposed-migration-environment-14-452f4def-c36d-425d-b13d-c4334c781776 --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-14 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 78s autopkgtest [16:26:23]: testbed dpkg architecture: ppc64el 78s autopkgtest [16:26:23]: testbed apt version: 2.9.8 78s autopkgtest [16:26:23]: @@@@@@@@@@@@@@@@@@@@ test bed setup 79s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 80s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [2484 kB] 80s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 80s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [175 kB] 80s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [40.4 kB] 80s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [210 kB] 80s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [1718 kB] 80s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [47.0 kB] 81s Fetched 4755 kB in 1s (3543 kB/s) 81s Reading package lists... 83s Reading package lists... 83s Building dependency tree... 83s Reading state information... 84s Calculating upgrade... 84s The following packages will be upgraded: 84s python3-zipp 84s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 84s Need to get 10.1 kB of archives. 84s After this operation, 2048 B disk space will be freed. 84s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-zipp all 3.20.2-1 [10.1 kB] 84s Fetched 10.1 kB in 0s (71.0 kB/s) 84s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 73549 files and directories currently installed.) 84s Preparing to unpack .../python3-zipp_3.20.2-1_all.deb ... 84s Unpacking python3-zipp (3.20.2-1) over (3.20.0-1) ... 84s Setting up python3-zipp (3.20.2-1) ... 85s Reading package lists... 85s Building dependency tree... 85s Reading state information... 85s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 85s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 86s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 86s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 86s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 87s Reading package lists... 87s Reading package lists... 87s Building dependency tree... 87s Reading state information... 87s Calculating upgrade... 87s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 87s Reading package lists... 87s Building dependency tree... 87s Reading state information... 88s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 90s autopkgtest [16:26:35]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 90s autopkgtest [16:26:35]: @@@@@@@@@@@@@@@@@@@@ apt-source rocm-hipamd 95s Get:1 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (dsc) [3455 B] 95s Get:2 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (tar) [554 kB] 95s Get:3 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (tar) [36.6 kB] 95s Get:4 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (tar) [2009 kB] 95s Get:5 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (diff) [24.3 kB] 95s gpgv: Signature made Sat Aug 3 07:01:26 2024 UTC 95s gpgv: using RSA key 92978A6E195E4921825F7FF0F34F09744E9F5DD9 95s gpgv: Can't check signature: No public key 95s dpkg-source: warning: cannot verify inline signature for ./rocm-hipamd_5.7.1-4build1.dsc: no acceptable signature found 95s autopkgtest [16:26:40]: testing package rocm-hipamd version 5.7.1-4build1 96s autopkgtest [16:26:41]: build not needed 97s autopkgtest [16:26:42]: test clang: preparing testbed 100s Reading package lists... 100s Building dependency tree... 100s Reading state information... 100s Starting pkgProblemResolver with broken count: 0 100s Starting 2 pkgProblemResolver with broken count: 0 100s Done 101s The following additional packages will be installed: 101s clang-17 clang-tools-17 cmake cmake-data cpp cpp-14 101s cpp-14-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu g++ g++-14 101s g++-14-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu gcc gcc-14 101s gcc-14-powerpc64le-linux-gnu gcc-powerpc64le-linux-gnu hipcc 101s libamd-comgr-dev libamd-comgr2 libamdhip64-5 libamdhip64-dev libamdhip64-doc 101s libasan8 libcc1-0 libclang-common-17-dev libclang-cpp17t64 101s libclang-rt-17-dev libclang1-17t64 libdrm-amdgpu1 libfile-which-perl libgc1 101s libgcc-14-dev libgomp1 libhiprtc-builtins5 libhsa-runtime-dev 101s libhsa-runtime64-1 libhsakmt1 libisl23 libitm1 libjsoncpp25 libllvm17t64 101s liblsan0 libmpc3 libobjc-14-dev libobjc4 libpfm4 libquadmath0 librhash0 101s libstdc++-14-dev libtsan2 libubsan1 liburi-encode-perl lld-17 llvm-17 101s llvm-17-linker-tools llvm-17-runtime rocm-device-libs-17 rocm-opencl-icd 101s rocminfo 101s Suggested packages: 101s clang-17-doc wasi-libc cmake-doc cmake-format elpa-cmake-mode ninja-build 101s cpp-doc gcc-14-locales cpp-14-doc gcc-14-doc gcc-multilib manpages-dev 101s autoconf automake libtool flex bison gdb gcc-doc gdb-powerpc64le-linux-gnu 101s libstdc++-14-doc llvm-17-doc 101s Recommended packages: 101s llvm-17-dev 101s The following NEW packages will be installed: 101s autopkgtest-satdep clang-17 clang-tools-17 cmake cmake-data cpp cpp-14 101s cpp-14-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu g++ g++-14 101s g++-14-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu gcc gcc-14 101s gcc-14-powerpc64le-linux-gnu gcc-powerpc64le-linux-gnu hipcc 101s libamd-comgr-dev libamd-comgr2 libamdhip64-5 libamdhip64-dev libamdhip64-doc 101s libasan8 libcc1-0 libclang-common-17-dev libclang-cpp17t64 101s libclang-rt-17-dev libclang1-17t64 libdrm-amdgpu1 libfile-which-perl libgc1 101s libgcc-14-dev libgomp1 libhiprtc-builtins5 libhsa-runtime-dev 101s libhsa-runtime64-1 libhsakmt1 libisl23 libitm1 libjsoncpp25 libllvm17t64 101s liblsan0 libmpc3 libobjc-14-dev libobjc4 libpfm4 libquadmath0 librhash0 101s libstdc++-14-dev libtsan2 libubsan1 liburi-encode-perl lld-17 llvm-17 101s llvm-17-linker-tools llvm-17-runtime rocm-device-libs-17 rocm-opencl-icd 101s rocminfo 101s 0 upgraded, 60 newly installed, 0 to remove and 0 not upgraded. 101s Need to get 192 MB/192 MB of archives. 101s After this operation, 860 MB of additional disk space will be used. 101s Get:1 /tmp/autopkgtest.L9dL9i/1-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [780 B] 101s Get:2 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libllvm17t64 ppc64el 1:17.0.6-18 [27.0 MB] 102s Get:3 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libclang-cpp17t64 ppc64el 1:17.0.6-18 [13.5 MB] 103s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgomp1 ppc64el 14.2.0-7ubuntu1 [161 kB] 103s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el libitm1 ppc64el 14.2.0-7ubuntu1 [31.9 kB] 103s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el libasan8 ppc64el 14.2.0-7ubuntu1 [2945 kB] 103s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el liblsan0 ppc64el 14.2.0-7ubuntu1 [1322 kB] 103s Get:8 http://ftpmaster.internal/ubuntu plucky/main ppc64el libtsan2 ppc64el 14.2.0-7ubuntu1 [2694 kB] 103s Get:9 http://ftpmaster.internal/ubuntu plucky/main ppc64el libubsan1 ppc64el 14.2.0-7ubuntu1 [1191 kB] 103s Get:10 http://ftpmaster.internal/ubuntu plucky/main ppc64el libquadmath0 ppc64el 14.2.0-7ubuntu1 [158 kB] 103s Get:11 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgcc-14-dev ppc64el 14.2.0-7ubuntu1 [1620 kB] 103s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el libstdc++-14-dev ppc64el 14.2.0-7ubuntu1 [2672 kB] 103s Get:13 http://ftpmaster.internal/ubuntu plucky/main ppc64el libgc1 ppc64el 1:8.2.6-2 [113 kB] 103s Get:14 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libobjc4 ppc64el 14.2.0-7ubuntu1 [52.7 kB] 103s Get:15 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libobjc-14-dev ppc64el 14.2.0-7ubuntu1 [202 kB] 103s Get:16 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libclang-common-17-dev ppc64el 1:17.0.6-18 [690 kB] 103s Get:17 http://ftpmaster.internal/ubuntu plucky/universe ppc64el llvm-17-linker-tools ppc64el 1:17.0.6-18 [1366 kB] 104s Get:18 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libclang1-17t64 ppc64el 1:17.0.6-18 [8068 kB] 104s Get:19 http://ftpmaster.internal/ubuntu plucky/universe ppc64el clang-17 ppc64el 1:17.0.6-18 [82.3 kB] 104s Get:20 http://ftpmaster.internal/ubuntu plucky/universe ppc64el clang-tools-17 ppc64el 1:17.0.6-18 [10.7 MB] 104s Get:21 http://ftpmaster.internal/ubuntu plucky/main ppc64el libjsoncpp25 ppc64el 1.9.5-6build1 [89.0 kB] 104s Get:22 http://ftpmaster.internal/ubuntu plucky/main ppc64el librhash0 ppc64el 1.4.3-3build1 [147 kB] 104s Get:23 http://ftpmaster.internal/ubuntu plucky/main ppc64el cmake-data all 3.30.3-1 [2246 kB] 105s Get:24 http://ftpmaster.internal/ubuntu plucky/main ppc64el cmake ppc64el 3.30.3-1 [12.1 MB] 105s Get:25 http://ftpmaster.internal/ubuntu plucky/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 105s Get:26 http://ftpmaster.internal/ubuntu plucky/main ppc64el libmpc3 ppc64el 1.3.1-1build2 [62.1 kB] 105s Get:27 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14-powerpc64le-linux-gnu ppc64el 14.2.0-7ubuntu1 [10.5 MB] 106s Get:28 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-14 ppc64el 14.2.0-7ubuntu1 [1030 B] 106s Get:29 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [5456 B] 106s Get:30 http://ftpmaster.internal/ubuntu plucky/main ppc64el cpp ppc64el 4:14.1.0-2ubuntu1 [22.5 kB] 106s Get:31 http://ftpmaster.internal/ubuntu plucky/main ppc64el libcc1-0 ppc64el 14.2.0-7ubuntu1 [48.1 kB] 106s Get:32 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14-powerpc64le-linux-gnu ppc64el 14.2.0-7ubuntu1 [20.6 MB] 107s Get:33 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-14 ppc64el 14.2.0-7ubuntu1 [526 kB] 107s Get:34 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [1222 B] 107s Get:35 http://ftpmaster.internal/ubuntu plucky/main ppc64el gcc ppc64el 4:14.1.0-2ubuntu1 [5006 B] 107s Get:36 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14-powerpc64le-linux-gnu ppc64el 14.2.0-7ubuntu1 [12.0 MB] 108s Get:37 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-14 ppc64el 14.2.0-7ubuntu1 [19.8 kB] 108s Get:38 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:14.1.0-2ubuntu1 [968 B] 108s Get:39 http://ftpmaster.internal/ubuntu plucky/main ppc64el g++ ppc64el 4:14.1.0-2ubuntu1 [1090 B] 108s Get:40 http://ftpmaster.internal/ubuntu plucky/universe ppc64el llvm-17-runtime ppc64el 1:17.0.6-18 [567 kB] 108s Get:41 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libpfm4 ppc64el 4.13.0+git32-g0d4ed0e-1 [189 kB] 108s Get:42 http://ftpmaster.internal/ubuntu plucky/universe ppc64el llvm-17 ppc64el 1:17.0.6-18 [27.3 MB] 110s Get:43 http://ftpmaster.internal/ubuntu plucky/universe ppc64el lld-17 ppc64el 1:17.0.6-18 [1417 kB] 110s Get:44 http://ftpmaster.internal/ubuntu plucky/universe ppc64el rocm-device-libs-17 ppc64el 6.0+git20231212.5a852ed-2 [549 kB] 110s Get:45 http://ftpmaster.internal/ubuntu plucky/main ppc64el libdrm-amdgpu1 ppc64el 2.4.122-1 [24.8 kB] 110s Get:46 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el libhsakmt1 ppc64el 6.1.2+ds-1 [74.4 kB] 110s Get:47 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el libhsa-runtime64-1 ppc64el 6.1.2-2 [349 kB] 110s Get:48 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el rocminfo ppc64el 6.1.2-1 [25.4 kB] 110s Get:49 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libamd-comgr2 ppc64el 6.0+git20231212.4510c28+dfsg-3build2 [15.3 MB] 111s Get:50 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libamdhip64-5 ppc64el 5.7.1-4build1 [9323 kB] 111s Get:51 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libhiprtc-builtins5 ppc64el 5.7.1-4build1 [43.7 kB] 111s Get:52 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libamd-comgr-dev ppc64el 6.0+git20231212.4510c28+dfsg-3build2 [18.9 kB] 111s Get:53 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el libhsa-runtime-dev ppc64el 6.1.2-2 [81.1 kB] 111s Get:54 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libamdhip64-dev ppc64el 5.7.1-4build1 [197 kB] 111s Get:55 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libclang-rt-17-dev ppc64el 1:17.0.6-18 [1616 kB] 111s Get:56 http://ftpmaster.internal/ubuntu plucky/main ppc64el libfile-which-perl all 1.27-2 [12.5 kB] 111s Get:57 http://ftpmaster.internal/ubuntu plucky/universe ppc64el liburi-encode-perl all 1.1.1-3 [9258 B] 111s Get:58 http://ftpmaster.internal/ubuntu plucky/universe ppc64el hipcc ppc64el 5.7.1-4build1 [20.9 kB] 111s Get:59 http://ftpmaster.internal/ubuntu plucky/universe ppc64el libamdhip64-doc all 5.7.1-4build1 [93.5 kB] 111s Get:60 http://ftpmaster.internal/ubuntu plucky/universe ppc64el rocm-opencl-icd ppc64el 5.7.1-4build1 [488 kB] 112s Fetched 192 MB in 11s (17.8 MB/s) 112s Selecting previously unselected package libllvm17t64:ppc64el. 112s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 73549 files and directories currently installed.) 112s Preparing to unpack .../00-libllvm17t64_1%3a17.0.6-18_ppc64el.deb ... 112s Unpacking libllvm17t64:ppc64el (1:17.0.6-18) ... 112s Selecting previously unselected package libclang-cpp17t64. 112s Preparing to unpack .../01-libclang-cpp17t64_1%3a17.0.6-18_ppc64el.deb ... 112s Unpacking libclang-cpp17t64 (1:17.0.6-18) ... 113s Selecting previously unselected package libgomp1:ppc64el. 113s Preparing to unpack .../02-libgomp1_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libgomp1:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libitm1:ppc64el. 113s Preparing to unpack .../03-libitm1_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libitm1:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libasan8:ppc64el. 113s Preparing to unpack .../04-libasan8_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libasan8:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package liblsan0:ppc64el. 113s Preparing to unpack .../05-liblsan0_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking liblsan0:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libtsan2:ppc64el. 113s Preparing to unpack .../06-libtsan2_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libtsan2:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libubsan1:ppc64el. 113s Preparing to unpack .../07-libubsan1_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libubsan1:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libquadmath0:ppc64el. 113s Preparing to unpack .../08-libquadmath0_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libquadmath0:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libgcc-14-dev:ppc64el. 113s Preparing to unpack .../09-libgcc-14-dev_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libgcc-14-dev:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libstdc++-14-dev:ppc64el. 113s Preparing to unpack .../10-libstdc++-14-dev_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libstdc++-14-dev:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libgc1:ppc64el. 113s Preparing to unpack .../11-libgc1_1%3a8.2.6-2_ppc64el.deb ... 113s Unpacking libgc1:ppc64el (1:8.2.6-2) ... 113s Selecting previously unselected package libobjc4:ppc64el. 113s Preparing to unpack .../12-libobjc4_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libobjc4:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libobjc-14-dev:ppc64el. 113s Preparing to unpack .../13-libobjc-14-dev_14.2.0-7ubuntu1_ppc64el.deb ... 113s Unpacking libobjc-14-dev:ppc64el (14.2.0-7ubuntu1) ... 113s Selecting previously unselected package libclang-common-17-dev:ppc64el. 113s Preparing to unpack .../14-libclang-common-17-dev_1%3a17.0.6-18_ppc64el.deb ... 113s Unpacking libclang-common-17-dev:ppc64el (1:17.0.6-18) ... 114s Selecting previously unselected package llvm-17-linker-tools. 114s Preparing to unpack .../15-llvm-17-linker-tools_1%3a17.0.6-18_ppc64el.deb ... 114s Unpacking llvm-17-linker-tools (1:17.0.6-18) ... 114s Selecting previously unselected package libclang1-17t64. 114s Preparing to unpack .../16-libclang1-17t64_1%3a17.0.6-18_ppc64el.deb ... 114s Unpacking libclang1-17t64 (1:17.0.6-18) ... 114s Selecting previously unselected package clang-17. 114s Preparing to unpack .../17-clang-17_1%3a17.0.6-18_ppc64el.deb ... 114s Unpacking clang-17 (1:17.0.6-18) ... 114s Selecting previously unselected package clang-tools-17. 114s Preparing to unpack .../18-clang-tools-17_1%3a17.0.6-18_ppc64el.deb ... 114s Unpacking clang-tools-17 (1:17.0.6-18) ... 114s Selecting previously unselected package libjsoncpp25:ppc64el. 114s Preparing to unpack .../19-libjsoncpp25_1.9.5-6build1_ppc64el.deb ... 114s Unpacking libjsoncpp25:ppc64el (1.9.5-6build1) ... 114s Selecting previously unselected package librhash0:ppc64el. 114s Preparing to unpack .../20-librhash0_1.4.3-3build1_ppc64el.deb ... 114s Unpacking librhash0:ppc64el (1.4.3-3build1) ... 114s Selecting previously unselected package cmake-data. 114s Preparing to unpack .../21-cmake-data_3.30.3-1_all.deb ... 114s Unpacking cmake-data (3.30.3-1) ... 115s Selecting previously unselected package cmake. 115s Preparing to unpack .../22-cmake_3.30.3-1_ppc64el.deb ... 115s Unpacking cmake (3.30.3-1) ... 115s Selecting previously unselected package libisl23:ppc64el. 115s Preparing to unpack .../23-libisl23_0.27-1_ppc64el.deb ... 115s Unpacking libisl23:ppc64el (0.27-1) ... 115s Selecting previously unselected package libmpc3:ppc64el. 115s Preparing to unpack .../24-libmpc3_1.3.1-1build2_ppc64el.deb ... 115s Unpacking libmpc3:ppc64el (1.3.1-1build2) ... 115s Selecting previously unselected package cpp-14-powerpc64le-linux-gnu. 115s Preparing to unpack .../25-cpp-14-powerpc64le-linux-gnu_14.2.0-7ubuntu1_ppc64el.deb ... 115s Unpacking cpp-14-powerpc64le-linux-gnu (14.2.0-7ubuntu1) ... 115s Selecting previously unselected package cpp-14. 115s Preparing to unpack .../26-cpp-14_14.2.0-7ubuntu1_ppc64el.deb ... 115s Unpacking cpp-14 (14.2.0-7ubuntu1) ... 115s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 115s Preparing to unpack .../27-cpp-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 115s Unpacking cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 115s Selecting previously unselected package cpp. 115s Preparing to unpack .../28-cpp_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 115s Unpacking cpp (4:14.1.0-2ubuntu1) ... 115s Selecting previously unselected package libcc1-0:ppc64el. 115s Preparing to unpack .../29-libcc1-0_14.2.0-7ubuntu1_ppc64el.deb ... 115s Unpacking libcc1-0:ppc64el (14.2.0-7ubuntu1) ... 115s Selecting previously unselected package gcc-14-powerpc64le-linux-gnu. 115s Preparing to unpack .../30-gcc-14-powerpc64le-linux-gnu_14.2.0-7ubuntu1_ppc64el.deb ... 115s Unpacking gcc-14-powerpc64le-linux-gnu (14.2.0-7ubuntu1) ... 115s Selecting previously unselected package gcc-14. 115s Preparing to unpack .../31-gcc-14_14.2.0-7ubuntu1_ppc64el.deb ... 115s Unpacking gcc-14 (14.2.0-7ubuntu1) ... 115s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 115s Preparing to unpack .../32-gcc-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 115s Unpacking gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 115s Selecting previously unselected package gcc. 115s Preparing to unpack .../33-gcc_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 115s Unpacking gcc (4:14.1.0-2ubuntu1) ... 115s Selecting previously unselected package g++-14-powerpc64le-linux-gnu. 115s Preparing to unpack .../34-g++-14-powerpc64le-linux-gnu_14.2.0-7ubuntu1_ppc64el.deb ... 115s Unpacking g++-14-powerpc64le-linux-gnu (14.2.0-7ubuntu1) ... 116s Selecting previously unselected package g++-14. 116s Preparing to unpack .../35-g++-14_14.2.0-7ubuntu1_ppc64el.deb ... 116s Unpacking g++-14 (14.2.0-7ubuntu1) ... 116s Selecting previously unselected package g++-powerpc64le-linux-gnu. 116s Preparing to unpack .../36-g++-powerpc64le-linux-gnu_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 116s Unpacking g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 116s Selecting previously unselected package g++. 116s Preparing to unpack .../37-g++_4%3a14.1.0-2ubuntu1_ppc64el.deb ... 116s Unpacking g++ (4:14.1.0-2ubuntu1) ... 116s Selecting previously unselected package llvm-17-runtime. 116s Preparing to unpack .../38-llvm-17-runtime_1%3a17.0.6-18_ppc64el.deb ... 116s Unpacking llvm-17-runtime (1:17.0.6-18) ... 116s Selecting previously unselected package libpfm4:ppc64el. 116s Preparing to unpack .../39-libpfm4_4.13.0+git32-g0d4ed0e-1_ppc64el.deb ... 116s Unpacking libpfm4:ppc64el (4.13.0+git32-g0d4ed0e-1) ... 116s Selecting previously unselected package llvm-17. 116s Preparing to unpack .../40-llvm-17_1%3a17.0.6-18_ppc64el.deb ... 116s Unpacking llvm-17 (1:17.0.6-18) ... 116s Selecting previously unselected package lld-17. 116s Preparing to unpack .../41-lld-17_1%3a17.0.6-18_ppc64el.deb ... 116s Unpacking lld-17 (1:17.0.6-18) ... 116s Selecting previously unselected package rocm-device-libs-17. 116s Preparing to unpack .../42-rocm-device-libs-17_6.0+git20231212.5a852ed-2_ppc64el.deb ... 116s Unpacking rocm-device-libs-17 (6.0+git20231212.5a852ed-2) ... 116s Selecting previously unselected package libdrm-amdgpu1:ppc64el. 116s Preparing to unpack .../43-libdrm-amdgpu1_2.4.122-1_ppc64el.deb ... 116s Unpacking libdrm-amdgpu1:ppc64el (2.4.122-1) ... 116s Selecting previously unselected package libhsakmt1:ppc64el. 116s Preparing to unpack .../44-libhsakmt1_6.1.2+ds-1_ppc64el.deb ... 116s Unpacking libhsakmt1:ppc64el (6.1.2+ds-1) ... 116s Selecting previously unselected package libhsa-runtime64-1:ppc64el. 116s Preparing to unpack .../45-libhsa-runtime64-1_6.1.2-2_ppc64el.deb ... 116s Unpacking libhsa-runtime64-1:ppc64el (6.1.2-2) ... 116s Selecting previously unselected package rocminfo. 116s Preparing to unpack .../46-rocminfo_6.1.2-1_ppc64el.deb ... 116s Unpacking rocminfo (6.1.2-1) ... 116s Selecting previously unselected package libamd-comgr2:ppc64el. 116s Preparing to unpack .../47-libamd-comgr2_6.0+git20231212.4510c28+dfsg-3build2_ppc64el.deb ... 116s Unpacking libamd-comgr2:ppc64el (6.0+git20231212.4510c28+dfsg-3build2) ... 117s Selecting previously unselected package libamdhip64-5. 117s Preparing to unpack .../48-libamdhip64-5_5.7.1-4build1_ppc64el.deb ... 117s Unpacking libamdhip64-5 (5.7.1-4build1) ... 117s Selecting previously unselected package libhiprtc-builtins5. 117s Preparing to unpack .../49-libhiprtc-builtins5_5.7.1-4build1_ppc64el.deb ... 117s Unpacking libhiprtc-builtins5 (5.7.1-4build1) ... 117s Selecting previously unselected package libamd-comgr-dev. 117s Preparing to unpack .../50-libamd-comgr-dev_6.0+git20231212.4510c28+dfsg-3build2_ppc64el.deb ... 117s Unpacking libamd-comgr-dev (6.0+git20231212.4510c28+dfsg-3build2) ... 117s Selecting previously unselected package libhsa-runtime-dev:ppc64el. 117s Preparing to unpack .../51-libhsa-runtime-dev_6.1.2-2_ppc64el.deb ... 117s Unpacking libhsa-runtime-dev:ppc64el (6.1.2-2) ... 117s Selecting previously unselected package libamdhip64-dev. 117s Preparing to unpack .../52-libamdhip64-dev_5.7.1-4build1_ppc64el.deb ... 117s Unpacking libamdhip64-dev (5.7.1-4build1) ... 117s Selecting previously unselected package libclang-rt-17-dev:ppc64el. 117s Preparing to unpack .../53-libclang-rt-17-dev_1%3a17.0.6-18_ppc64el.deb ... 117s Unpacking libclang-rt-17-dev:ppc64el (1:17.0.6-18) ... 117s Selecting previously unselected package libfile-which-perl. 117s Preparing to unpack .../54-libfile-which-perl_1.27-2_all.deb ... 117s Unpacking libfile-which-perl (1.27-2) ... 117s Selecting previously unselected package liburi-encode-perl. 117s Preparing to unpack .../55-liburi-encode-perl_1.1.1-3_all.deb ... 117s Unpacking liburi-encode-perl (1.1.1-3) ... 117s Selecting previously unselected package hipcc. 117s Preparing to unpack .../56-hipcc_5.7.1-4build1_ppc64el.deb ... 117s Unpacking hipcc (5.7.1-4build1) ... 117s Selecting previously unselected package libamdhip64-doc. 117s Preparing to unpack .../57-libamdhip64-doc_5.7.1-4build1_all.deb ... 117s Unpacking libamdhip64-doc (5.7.1-4build1) ... 117s Selecting previously unselected package rocm-opencl-icd. 117s Preparing to unpack .../58-rocm-opencl-icd_5.7.1-4build1_ppc64el.deb ... 117s Unpacking rocm-opencl-icd (5.7.1-4build1) ... 117s Selecting previously unselected package autopkgtest-satdep. 117s Preparing to unpack .../59-1-autopkgtest-satdep.deb ... 117s Unpacking autopkgtest-satdep (0) ... 117s Setting up libamdhip64-doc (5.7.1-4build1) ... 117s Setting up libfile-which-perl (1.27-2) ... 117s Setting up libgomp1:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up rocm-device-libs-17 (6.0+git20231212.5a852ed-2) ... 117s Setting up libpfm4:ppc64el (4.13.0+git32-g0d4ed0e-1) ... 117s Setting up libllvm17t64:ppc64el (1:17.0.6-18) ... 117s Setting up libclang1-17t64 (1:17.0.6-18) ... 117s Setting up liburi-encode-perl (1.1.1-3) ... 117s Setting up libquadmath0:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libmpc3:ppc64el (1.3.1-1build2) ... 117s Setting up libjsoncpp25:ppc64el (1.9.5-6build1) ... 117s Setting up libhiprtc-builtins5 (5.7.1-4build1) ... 117s Setting up libgc1:ppc64el (1:8.2.6-2) ... 117s Setting up libubsan1:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libclang-common-17-dev:ppc64el (1:17.0.6-18) ... 117s Setting up librhash0:ppc64el (1.4.3-3build1) ... 117s Setting up lld-17 (1:17.0.6-18) ... 117s Setting up libasan8:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libclang-rt-17-dev:ppc64el (1:17.0.6-18) ... 117s Setting up llvm-17-runtime (1:17.0.6-18) ... 117s Setting up cmake-data (3.30.3-1) ... 117s Setting up libamd-comgr2:ppc64el (6.0+git20231212.4510c28+dfsg-3build2) ... 117s Setting up libtsan2:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libamd-comgr-dev (6.0+git20231212.4510c28+dfsg-3build2) ... 117s Setting up libisl23:ppc64el (0.27-1) ... 117s Setting up libcc1-0:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up liblsan0:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libitm1:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libdrm-amdgpu1:ppc64el (2.4.122-1) ... 117s Setting up llvm-17-linker-tools (1:17.0.6-18) ... 117s Setting up libobjc4:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libclang-cpp17t64 (1:17.0.6-18) ... 117s Setting up cpp-14-powerpc64le-linux-gnu (14.2.0-7ubuntu1) ... 117s Setting up cpp-14 (14.2.0-7ubuntu1) ... 117s Setting up cmake (3.30.3-1) ... 117s Setting up libgcc-14-dev:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up libstdc++-14-dev:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up llvm-17 (1:17.0.6-18) ... 117s Setting up libhsakmt1:ppc64el (6.1.2+ds-1) ... 117s Setting up cpp-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 117s Setting up gcc-14-powerpc64le-linux-gnu (14.2.0-7ubuntu1) ... 117s Setting up g++-14-powerpc64le-linux-gnu (14.2.0-7ubuntu1) ... 117s Setting up libobjc-14-dev:ppc64el (14.2.0-7ubuntu1) ... 117s Setting up gcc-14 (14.2.0-7ubuntu1) ... 117s Setting up gcc-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 117s Setting up libhsa-runtime64-1:ppc64el (6.1.2-2) ... 117s Setting up cpp (4:14.1.0-2ubuntu1) ... 117s Setting up g++-14 (14.2.0-7ubuntu1) ... 117s Setting up g++-powerpc64le-linux-gnu (4:14.1.0-2ubuntu1) ... 117s Setting up rocminfo (6.1.2-1) ... 117s Setting up clang-17 (1:17.0.6-18) ... 117s Setting up rocm-opencl-icd (5.7.1-4build1) ... 117s Setting up gcc (4:14.1.0-2ubuntu1) ... 117s Setting up libhsa-runtime-dev:ppc64el (6.1.2-2) ... 117s Setting up libamdhip64-5 (5.7.1-4build1) ... 117s Setting up g++ (4:14.1.0-2ubuntu1) ... 117s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 117s Setting up libamdhip64-dev (5.7.1-4build1) ... 117s Setting up clang-tools-17 (1:17.0.6-18) ... 117s Setting up hipcc (5.7.1-4build1) ... 117s Setting up autopkgtest-satdep (0) ... 117s Processing triggers for systemd (256.5-2ubuntu3) ... 118s Processing triggers for man-db (2.12.1-3) ... 119s Processing triggers for libc-bin (2.40-1ubuntu3) ... 122s (Reading database ... 79356 files and directories currently installed.) 122s Removing autopkgtest-satdep (0) ... 123s autopkgtest [16:27:08]: test clang: [----------------------- 123s $ cat main.hip 123s #include 123s #include 123s #include 123s 123s #define CHECK_HIP(expr) do { hipError_t result = (expr); if (result != hipSuccess) { fprintf(stderr, "%s:%d: %s (%d)\n", __FILE__, __LINE__, hipGetErrorString(result), result); exit(EXIT_FAILURE); } } while(0) 123s 123s __global__ void sq_arr(float *arr, int n) { 123s int tid = blockDim.x*blockIdx.x + threadIdx.x; 123s if (tid < n) { 123s arr[tid] = arr[tid] * arr[tid]; 123s } 123s } 123s 123s int main() { 123s enum { N = 5 }; 123s float hArr[N] = { 1, 2, 3, 4, 5 }; 123s float *dArr; 123s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 123s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 123s sq_arr<<>>(dArr, N); 123s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 123s for (int i = 0; i < N; ++i) { 123s printf("%f\n", hArr[i]); 123s } 123s CHECK_HIP(hipFree(dArr)); 123s return 0; 123s } 123s $ clang++-17 -x hip --offload-arch=gfx900 main.hip -lamdhip64 -o main 126s autopkgtest [16:27:11]: test clang: -----------------------] 126s clang PASS (superficial) 126s autopkgtest [16:27:11]: test clang: - - - - - - - - - - results - - - - - - - - - - 126s autopkgtest [16:27:11]: test cmake-hip-config: preparing testbed 129s Reading package lists... 129s Building dependency tree... 129s Reading state information... 130s Starting pkgProblemResolver with broken count: 0 130s Starting 2 pkgProblemResolver with broken count: 0 130s Done 130s The following NEW packages will be installed: 130s autopkgtest-satdep 130s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 130s Need to get 0 B/780 B of archives. 130s After this operation, 0 B of additional disk space will be used. 130s Get:1 /tmp/autopkgtest.L9dL9i/2-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [780 B] 130s Selecting previously unselected package autopkgtest-satdep. 130s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79356 files and directories currently installed.) 130s Preparing to unpack .../2-autopkgtest-satdep.deb ... 130s Unpacking autopkgtest-satdep (0) ... 130s Setting up autopkgtest-satdep (0) ... 133s (Reading database ... 79356 files and directories currently installed.) 133s Removing autopkgtest-satdep (0) ... 133s autopkgtest [16:27:18]: test cmake-hip-config: [----------------------- 134s $ cat main.cpp 134s #include 134s #include 134s #include 134s 134s #define CHECK_HIP(expr) do { hipError_t result = (expr); if (result != hipSuccess) { fprintf(stderr, "%s:%d: %s (%d)\n", __FILE__, __LINE__, hipGetErrorString(result), result); exit(EXIT_FAILURE); } } while(0) 134s 134s __global__ void sq_arr(float *arr, int n) { 134s int tid = blockDim.x*blockIdx.x + threadIdx.x; 134s if (tid < n) { 134s arr[tid] = arr[tid] * arr[tid]; 134s } 134s } 134s 134s int main() { 134s enum { N = 5 }; 134s float hArr[N] = { 1, 2, 3, 4, 5 }; 134s float *dArr; 134s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 134s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 134s sq_arr<<>>(dArr, N); 134s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 134s for (int i = 0; i < N; ++i) { 134s printf("%f\n", hArr[i]); 134s } 134s CHECK_HIP(hipFree(dArr)); 134s return 0; 134s } 134s $ cat CMakeLists.txt 134s cmake_minimum_required(VERSION 3.22) 134s project(example LANGUAGES CXX) 134s find_package(hip REQUIRED) 134s add_executable(ex main.cpp) 134s target_link_libraries(ex PRIVATE hip::device) 134s $ CXX=clang++-17 cmake -S. -Bbuild -DAMDGPU_TARGETS=gfx1030 134s -- The CXX compiler identification is Clang 17.0.6 134s -- Detecting CXX compiler ABI info 134s -- Detecting CXX compiler ABI info - done 134s -- Check for working CXX compiler: /usr/bin/clang++-17 - skipped 134s -- Detecting CXX compile features 134s -- Detecting CXX compile features - done 134s -- Performing Test CMAKE_HAVE_LIBC_PTHREAD 134s -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success 134s -- Found Threads: TRUE 134s -- hip::amdhip64 is SHARED_LIBRARY 134s -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS 134s -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Failed 134s -- Looking for compiler-rt 134s -- Looking for compiler-rt - found 134s -- Configuring done (0.6s) 134s -- Generating done (0.0s) 134s -- Build files have been written to: /tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build 134s $ make -C build 134s make: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 134s make[1]: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 134s make[2]: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 134s make[2]: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 134s make[2]: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 134s [ 50%] Building CXX object CMakeFiles/ex.dir/main.cpp.o 137s [100%] Linking CXX executable ex 137s make[2]: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 137s [100%] Built target ex 137s make[1]: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 137s make: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 137s autopkgtest [16:27:22]: test cmake-hip-config: -----------------------] 138s cmake-hip-config PASS (superficial) 138s autopkgtest [16:27:23]: test cmake-hip-config: - - - - - - - - - - results - - - - - - - - - - 138s autopkgtest [16:27:23]: test cmake-hip-lang: preparing testbed 139s Reading package lists... 140s Building dependency tree... 140s Reading state information... 140s Starting pkgProblemResolver with broken count: 0 140s Starting 2 pkgProblemResolver with broken count: 0 140s Done 140s The following NEW packages will be installed: 140s autopkgtest-satdep 140s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 140s Need to get 0 B/784 B of archives. 140s After this operation, 0 B of additional disk space will be used. 140s Get:1 /tmp/autopkgtest.L9dL9i/3-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [784 B] 140s Selecting previously unselected package autopkgtest-satdep. 140s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79356 files and directories currently installed.) 140s Preparing to unpack .../3-autopkgtest-satdep.deb ... 140s Unpacking autopkgtest-satdep (0) ... 140s Setting up autopkgtest-satdep (0) ... 143s (Reading database ... 79356 files and directories currently installed.) 143s Removing autopkgtest-satdep (0) ... 143s autopkgtest [16:27:28]: test cmake-hip-lang: [----------------------- 144s $ cat main.hip 144s #include 144s #include 144s #include 144s 144s #define CHECK_HIP(expr) do { hipError_t result = (expr); if (result != hipSuccess) { fprintf(stderr, "%s:%d: %s (%d)\n", __FILE__, __LINE__, hipGetErrorString(result), result); exit(EXIT_FAILURE); } } while(0) 144s 144s __global__ void sq_arr(float *arr, int n) { 144s int tid = blockDim.x*blockIdx.x + threadIdx.x; 144s if (tid < n) { 144s arr[tid] = arr[tid] * arr[tid]; 144s } 144s } 144s 144s int main() { 144s enum { N = 5 }; 144s float hArr[N] = { 1, 2, 3, 4, 5 }; 144s float *dArr; 144s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 144s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 144s sq_arr<<>>(dArr, N); 144s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 144s for (int i = 0; i < N; ++i) { 144s printf("%f\n", hArr[i]); 144s } 144s CHECK_HIP(hipFree(dArr)); 144s return 0; 144s } 144s $ cat CMakeLists.txt 144s cmake_minimum_required(VERSION 3.22) 144s project(example LANGUAGES HIP) 144s add_executable(ex main.hip) 144s $ HIPCXX=clang++-17 cmake -S. -Bbuild -DCMAKE_HIP_ARCHITECTURES=gfx1030 145s -- The HIP compiler identification is Clang 17.0.6 145s -- Detecting HIP compiler ABI info 146s -- Detecting HIP compiler ABI info - done 146s -- Check for working HIP compiler: /usr/bin/clang++-17 - skipped 146s -- Detecting HIP compile features 146s -- Detecting HIP compile features - done 146s -- Configuring done (2.8s) 146s -- Generating done (0.0s) 146s -- Build files have been written to: /tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build 146s $ make -C build 146s make: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 146s make[1]: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 146s make[2]: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 146s make[2]: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 146s make[2]: Entering directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 146s [ 50%] Building HIP object CMakeFiles/ex.dir/main.hip.o 149s [100%] Linking HIP executable ex 149s make[2]: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 149s [100%] Built target ex 149s make[1]: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 149s make: Leaving directory '/tmp/autopkgtest.L9dL9i/autopkgtest_tmp/build' 149s autopkgtest [16:27:34]: test cmake-hip-lang: -----------------------] 150s autopkgtest [16:27:35]: test cmake-hip-lang: - - - - - - - - - - results - - - - - - - - - - 150s cmake-hip-lang PASS (superficial) 150s autopkgtest [16:27:35]: test g++: preparing testbed 154s Reading package lists... 154s Building dependency tree... 154s Reading state information... 155s Starting pkgProblemResolver with broken count: 0 155s Starting 2 pkgProblemResolver with broken count: 0 155s Done 155s The following NEW packages will be installed: 155s autopkgtest-satdep 155s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 155s Need to get 0 B/784 B of archives. 155s After this operation, 0 B of additional disk space will be used. 155s Get:1 /tmp/autopkgtest.L9dL9i/4-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [784 B] 155s Selecting previously unselected package autopkgtest-satdep. 155s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79356 files and directories currently installed.) 155s Preparing to unpack .../4-autopkgtest-satdep.deb ... 155s Unpacking autopkgtest-satdep (0) ... 155s Setting up autopkgtest-satdep (0) ... 158s (Reading database ... 79356 files and directories currently installed.) 158s Removing autopkgtest-satdep (0) ... 158s autopkgtest [16:27:43]: test g++: [----------------------- 158s $ cat main.cpp 158s #include 158s #include 158s #include 158s 158s #define CHECK_HIP(expr) do { hipError_t result = (expr); if (result != hipSuccess) { fprintf(stderr, "%s:%d: %s (%d)\n", __FILE__, __LINE__, hipGetErrorString(result), result); exit(EXIT_FAILURE); } } while(0) 158s 158s int main() { 158s enum { N = 5 }; 158s float hArr[N] = { 1, 2, 3, 4, 5 }; 158s float *dArr; 158s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 158s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 158s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 158s for (int i = 0; i < N; ++i) { 158s printf("%f\n", hArr[i]); 158s } 158s CHECK_HIP(hipFree(dArr)); 158s return 0; 158s } 158s $ g++ -D__HIP_PLATFORM_AMD__ main.cpp -lamdhip64 -o main 159s autopkgtest [16:27:44]: test g++: -----------------------] 160s autopkgtest [16:27:45]: test g++: - - - - - - - - - - results - - - - - - - - - - 160s g++ PASS (superficial) 160s autopkgtest [16:27:45]: test gcc: preparing testbed 164s Reading package lists... 164s Building dependency tree... 164s Reading state information... 164s Starting pkgProblemResolver with broken count: 0 164s Starting 2 pkgProblemResolver with broken count: 0 164s Done 164s The following NEW packages will be installed: 164s autopkgtest-satdep 164s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 164s Need to get 0 B/780 B of archives. 164s After this operation, 0 B of additional disk space will be used. 164s Get:1 /tmp/autopkgtest.L9dL9i/5-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [780 B] 164s Selecting previously unselected package autopkgtest-satdep. 165s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79356 files and directories currently installed.) 165s Preparing to unpack .../5-autopkgtest-satdep.deb ... 165s Unpacking autopkgtest-satdep (0) ... 165s Setting up autopkgtest-satdep (0) ... 167s (Reading database ... 79356 files and directories currently installed.) 167s Removing autopkgtest-satdep (0) ... 168s autopkgtest [16:27:53]: test gcc: [----------------------- 168s $ cat main.c 168s #include 168s #include 168s #include 168s 168s #define CHECK_HIP(expr) do { hipError_t result = (expr); if (result != hipSuccess) { fprintf(stderr, "%s:%d: %s (%d)\n", __FILE__, __LINE__, hipGetErrorString(result), result); exit(EXIT_FAILURE); } } while(0) 168s 168s int main() { 168s enum { N = 5 }; 168s float hArr[N] = { 1, 2, 3, 4, 5 }; 168s float *dArr; 168s CHECK_HIP(hipMalloc((void**)&dArr, sizeof(float) * N)); 168s CHECK_HIP(hipMemcpy((void**)dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 168s CHECK_HIP(hipMemcpy((void**)hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 168s for (int i = 0; i < N; ++i) { 168s printf("%f\n", hArr[i]); 168s } 168s CHECK_HIP(hipFree(dArr)); 168s return 0; 168s } 168s $ gcc -D__HIP_PLATFORM_AMD__ main.c -lamdhip64 -o main 169s autopkgtest [16:27:54]: test gcc: -----------------------] 169s gcc PASS (superficial) 169s autopkgtest [16:27:54]: test gcc: - - - - - - - - - - results - - - - - - - - - - 170s autopkgtest [16:27:55]: test hipconfig: preparing testbed 172s Reading package lists... 172s Building dependency tree... 172s Reading state information... 173s Starting pkgProblemResolver with broken count: 0 173s Starting 2 pkgProblemResolver with broken count: 0 173s Done 173s The following NEW packages will be installed: 173s autopkgtest-satdep 173s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 173s Need to get 0 B/784 B of archives. 173s After this operation, 0 B of additional disk space will be used. 173s Get:1 /tmp/autopkgtest.L9dL9i/6-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [784 B] 173s Selecting previously unselected package autopkgtest-satdep. 173s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79356 files and directories currently installed.) 173s Preparing to unpack .../6-autopkgtest-satdep.deb ... 173s Unpacking autopkgtest-satdep (0) ... 173s Setting up autopkgtest-satdep (0) ... 176s (Reading database ... 79356 files and directories currently installed.) 176s Removing autopkgtest-satdep (0) ... 176s autopkgtest [16:28:01]: test hipconfig: [----------------------- 177s HIP version : 5.7.31921-0 177s 177s == hipconfig 177s HIP_PATH : /usr 177s ROCM_PATH : /usr 177s HIP_COMPILER : clang 177s HIP_PLATFORM : amd 177s HIP_RUNTIME : rocclr 177s CPP_CONFIG : -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/usr/include -I/usr/lib/llvm-17/lib/clang/17 177s 177s 177s == hip-clang 177s HIP_CLANG_PATH : /usr/bin 177s Ubuntu clang version 17.0.6 (18) 177s Target: powerpc64le-unknown-linux-gnu 177s Thread model: posix 177s InstalledDir: /usr/bin 177s Ubuntu LLVM version 17.0.6 177s Optimized build. 177s Default target: powerpc64le-unknown-linux-gnu 177s Host CPU: pwr9 177s 177s Registered Targets: 177s aarch64 - AArch64 (little endian) 177s aarch64_32 - AArch64 (little endian ILP32) 177s aarch64_be - AArch64 (big endian) 177s amdgcn - AMD GCN GPUs 177s arm - ARM 177s arm64 - ARM64 (little endian) 177s arm64_32 - ARM64 (little endian ILP32) 177s armeb - ARM (big endian) 177s avr - Atmel AVR Microcontroller 177s bpf - BPF (host endian) 177s bpfeb - BPF (big endian) 177s bpfel - BPF (little endian) 177s hexagon - Hexagon 177s lanai - Lanai 177s loongarch32 - 32-bit LoongArch 177s loongarch64 - 64-bit LoongArch 177s m68k - Motorola 68000 family 177s mips - MIPS (32-bit big endian) 177s mips64 - MIPS (64-bit big endian) 177s mips64el - MIPS (64-bit little endian) 177s mipsel - MIPS (32-bit little endian) 177s msp430 - MSP430 [experimental] 177s nvptx - NVIDIA PTX 32-bit 177s nvptx64 - NVIDIA PTX 64-bit 177s ppc32 - PowerPC 32 177s ppc32le - PowerPC 32 LE 177s ppc64 - PowerPC 64 177s ppc64le - PowerPC 64 LE 177s r600 - AMD GPUs HD2XXX-HD6XXX 177s riscv32 - 32-bit RISC-V 177s riscv64 - 64-bit RISC-V 177s sparc - Sparc 177s sparcel - Sparc LE 177s sparcv9 - Sparc V9 177s systemz - SystemZ 177s thumb - Thumb 177s thumbeb - Thumb (big endian) 177s ve - VE 177s wasm32 - WebAssembly 32-bit 177s wasm64 - WebAssembly 64-bit 177s x86 - 32-bit X86: Pentium-Pro and above 177s x86-64 - 64-bit X86: EM64T and AMD64 177s xcore - XCore 177s xtensa - Xtensa 32 177s hip-clang-cxxflags : -O3 177s hip-clang-ldflags : -O3 --hip-link --rtlib=compiler-rt -unwindlib=libgcc 177s 177s === Environment Variables 177s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 177s 177s == Linux Kernel 177s Hostname : autopkgtest 177s Linux autopkgtest 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 13:49:23 UTC 2024 ppc64le ppc64le ppc64le GNU/Linux 177s Distributor ID: Ubuntu 177s Description: Ubuntu Plucky Puffin (development branch) 177s Release: 25.04 177s Codename: plucky 177s 177s autopkgtest [16:28:02]: test hipconfig: -----------------------] 178s autopkgtest [16:28:03]: test hipconfig: - - - - - - - - - - results - - - - - - - - - - 178s hipconfig PASS (superficial) 178s autopkgtest [16:28:03]: test hipcc: preparing testbed 182s Reading package lists... 182s Building dependency tree... 182s Reading state information... 183s Starting pkgProblemResolver with broken count: 0 183s Starting 2 pkgProblemResolver with broken count: 0 183s Done 183s The following NEW packages will be installed: 183s autopkgtest-satdep 183s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 183s Need to get 0 B/780 B of archives. 183s After this operation, 0 B of additional disk space will be used. 183s Get:1 /tmp/autopkgtest.L9dL9i/7-autopkgtest-satdep.deb autopkgtest-satdep ppc64el 0 [780 B] 183s Selecting previously unselected package autopkgtest-satdep. 183s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79356 files and directories currently installed.) 183s Preparing to unpack .../7-autopkgtest-satdep.deb ... 183s Unpacking autopkgtest-satdep (0) ... 183s Setting up autopkgtest-satdep (0) ... 186s (Reading database ... 79356 files and directories currently installed.) 186s Removing autopkgtest-satdep (0) ... 186s autopkgtest [16:28:11]: test hipcc: [----------------------- 186s $ hipcc --help 187s OVERVIEW: clang LLVM compiler 187s 187s USAGE: clang [options] file... 187s 187s OPTIONS: 187s -### Print (but do not run) the commands to run for this compilation 187s --amdgpu-arch-tool= 187s Tool used for detecting AMD GPU arch in the system. 187s --analyzer-output 187s Static analyzer report output format (html|plist|plist-multi-file|plist-html|sarif|sarif-html|text). 187s --analyze Run the static analyzer 187s -arcmt-migrate-emit-errors 187s Emit ARC errors even if the migrator can fix them 187s -arcmt-migrate-report-output 187s Output path for the plist report 187s -B Search $prefix$file for executables, libraries, and data files. If $prefix is a directory, search $prefix/$file 187s -b Pass -b to the linker on AIX 187s -CC Include comments from within macros in preprocessed output 187s -cl-denorms-are-zero OpenCL only. Allow denormals to be flushed to zero. 187s -cl-ext= OpenCL only. Enable or disable OpenCL extensions/optional features. The argument is a comma-separated sequence of one or more extension names, each prefixed by '+' or '-'. 187s -cl-fast-relaxed-math OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__. 187s -cl-finite-math-only OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf. 187s -cl-fp32-correctly-rounded-divide-sqrt 187s OpenCL only. Specify that single precision floating-point divide and sqrt used in the program source are correctly rounded. 187s -cl-kernel-arg-info OpenCL only. Generate kernel argument metadata. 187s -cl-mad-enable OpenCL only. Allow use of less precise MAD computations in the generated binary. 187s -cl-no-signed-zeros OpenCL only. Allow use of less precise no signed zeros computations in the generated binary. 187s -cl-no-stdinc OpenCL only. Disables all standard includes containing non-native compiler types and functions. 187s -cl-opt-disable OpenCL only. This option disables all optimizations. By default optimizations are enabled. 187s -cl-single-precision-constant 187s OpenCL only. Treat double precision floating-point constant as single precision constant. 187s -cl-std= OpenCL language standard to compile for. 187s -cl-strict-aliasing OpenCL only. This option is added for compatibility with OpenCL 1.0. 187s -cl-uniform-work-group-size 187s OpenCL only. Defines that the global work-size be a multiple of the work-group size specified to clEnqueueNDRangeKernel 187s -cl-unsafe-math-optimizations 187s OpenCL only. Allow unsafe floating-point optimizations. Also implies -cl-no-signed-zeros and -cl-mad-enable. 187s --config= Specify configuration file 187s --cuda-compile-host-device 187s Compile CUDA code for both host and device (default). Has no effect on non-CUDA compilations. 187s --cuda-device-only Compile CUDA code for device only 187s --cuda-feature= Manually specify the CUDA feature to use 187s --cuda-host-only Compile CUDA code for host only. Has no effect on non-CUDA compilations. 187s --cuda-include-ptx= 187s Include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once. 187s --cuda-noopt-device-debug 187s Enable device-side debug info generation. Disables ptxas optimizations. 187s --cuda-path-ignore-env Ignore environment variables to detect CUDA installation 187s --cuda-path= CUDA installation path 187s -cuid= An ID for compilation unit, which should be the same for the same compilation unit but different for different compilation units. It is used to externalize device-side static variables for single source offloading languages CUDA and HIP so that they can be accessed by the host code of the same compilation unit. 187s -cxx-isystem 187s Add directory to the C++ SYSTEM include search path 187s -C Include comments in preprocessed output 187s -c Only run preprocess, compile, and assemble steps 187s -darwin-target-variant-triple 187s Specify the darwin target variant triple 187s -darwin-target-variant 187s Generate code for an additional runtime variant of the deployment target 187s -dD Print macro definitions in -E mode in addition to normal output 187s -dependency-dot Filename to write DOT-formatted header dependencies to 187s -dependency-file 187s Filename (or -) to write dependency output to 187s -dI Print include directives in -E mode in addition to normal output 187s -dM Print macro definitions in -E mode instead of normal output 187s -dsym-dir Directory to output dSYM's (if any) to 187s -dumpdir Use as a prefix to form auxiliary and dump file names 187s -D = Define to (or 1 if omitted) 187s -emit-ast Emit Clang AST files for source inputs 187s -emit-interface-stubs Generate Interface Stub Files. 187s -emit-llvm Use the LLVM representation for assembler and object files 187s -emit-merged-ifs Generate Interface Stub Files, emit merged text not binary. 187s --emit-static-lib Enable linker job to emit a static library. 187s --emit-symbol-graph= 187s Generate Extract API information as a side effect of compilation. 187s --end-no-unused-arguments 187s Start emitting warnings for unused driver arguments 187s --extract-api-ignores= 187s Comma separated list of files containing a new line separated list of API symbols to ignore when extracting API information. 187s -extract-api Extract API information 187s -E Only run the preprocessor 187s -faapcs-bitfield-load Follows the AAPCS standard that all volatile bit-field write generates at least one load. (ARM only). 187s -faapcs-bitfield-width Follow the AAPCS standard requirement stating that volatile bit-field width is dictated by the field container type. (ARM only). 187s -faddrsig Emit an address-significance table 187s -falign-loops= N must be a power of two. Align loops to the boundary 187s -faligned-allocation Enable C++17 aligned allocation functions 187s -fallow-editor-placeholders 187s Treat editor placeholders as valid source code 187s -faltivec-src-compat= 187s Source-level compatibility for Altivec vectors (for PowerPC targets). This includes results of vector comparison (scalar for 'xl', vector for 'gcc') as well as behavior when initializing with a scalar (splatting for 'xl', element zero only for 'gcc'). For 'mixed', the compatibility is as 'gcc' for 'vector bool/vector pixel' and as 'xl' for other types. Current default is 'mixed'. 187s -fansi-escape-codes Use ANSI escape codes for diagnostics 187s -fapple-kext Use Apple's kernel extensions ABI 187s -fapple-link-rtlib Force linking the clang builtins runtime library 187s -fapple-pragma-pack Enable Apple gcc-compatible #pragma pack handling 187s -fapplication-extension Restrict code to those available for App Extensions 187s -fapprox-func Allow certain math function calls to be replaced with an approximately equivalent calculation 187s -fasync-exceptions Enable EH Asynchronous exceptions 187s -fbasic-block-sections= 187s Place each function's basic blocks in unique sections (ELF Only) 187s -fbinutils-version= 187s Produced object files can use all ELF features supported by this binutils version and newer. If -fno-integrated-as is specified, the generated assembly will consider GNU as support. 'none' means that all ELF features can be used, regardless of binutils support. Defaults to 2.26. 187s -fblocks Enable the 'blocks' language feature 187s -fborland-extensions Accept non-standard constructs supported by the Borland compiler 187s -fbuild-session-file= 187s Use the last modification time of as the build session timestamp 187s -fbuild-session-timestamp=