0s autopkgtest [00:17:10]: starting date and time: 2024-11-04 00:17:10+0000 0s autopkgtest [00:17:10]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [00:17:10]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work._qfdbkoo/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:rocr-runtime,src:roct-thunk-interface --apt-upgrade rocm-hipamd --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=rocr-runtime/6.1.2-2 roct-thunk-interface/6.1.2+ds-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@lcy02-59.secgroup --name adt-plucky-amd64-rocm-hipamd-20241104-001710-juju-7f2275-prod-proposed-migration-environment-15-289d21ab-da5e-4afe-9b9d-33b910d18eab --image adt/ubuntu-plucky-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -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/ 151s autopkgtest [00:19:41]: testbed dpkg architecture: amd64 151s autopkgtest [00:19:41]: testbed apt version: 2.9.8 151s autopkgtest [00:19:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup 152s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 152s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [177 kB] 152s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 152s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [2268 kB] 152s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [31.2 kB] 152s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main amd64 Packages [238 kB] 152s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main i386 Packages [165 kB] 152s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted amd64 Packages [32.6 kB] 152s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe i386 Packages [833 kB] 152s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 Packages [1715 kB] 152s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse amd64 Packages [58.6 kB] 152s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse i386 Packages [18.1 kB] 152s Fetched 5618 kB in 1s (9931 kB/s) 152s Reading package lists... 154s Reading package lists... 154s Building dependency tree... 154s Reading state information... 154s Calculating upgrade... 155s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 155s Reading package lists... 155s Building dependency tree... 155s Reading state information... 156s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 156s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 156s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 156s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 156s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 157s Reading package lists... 157s Reading package lists... 158s Building dependency tree... 158s Reading state information... 158s Calculating upgrade... 158s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 158s Reading package lists... 159s Building dependency tree... 159s Reading state information... 159s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 160s autopkgtest [00:19:50]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 160s autopkgtest [00:19:50]: @@@@@@@@@@@@@@@@@@@@ apt-source rocm-hipamd 162s Get:1 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (dsc) [3455 B] 162s Get:2 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (tar) [554 kB] 162s Get:3 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (tar) [36.6 kB] 162s Get:4 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (tar) [2009 kB] 162s Get:5 http://ftpmaster.internal/ubuntu plucky/universe rocm-hipamd 5.7.1-4build1 (diff) [24.3 kB] 162s gpgv: Signature made Sat Aug 3 07:01:26 2024 UTC 162s gpgv: using RSA key 92978A6E195E4921825F7FF0F34F09744E9F5DD9 162s gpgv: Can't check signature: No public key 162s dpkg-source: warning: cannot verify inline signature for ./rocm-hipamd_5.7.1-4build1.dsc: no acceptable signature found 162s autopkgtest [00:19:52]: testing package rocm-hipamd version 5.7.1-4build1 162s autopkgtest [00:19:52]: build not needed 163s autopkgtest [00:19:53]: test clang: preparing testbed 163s 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 165s The following additional packages will be installed: 165s clang-17 clang-tools-17 cmake cmake-data cpp cpp-14 cpp-14-x86-64-linux-gnu 165s cpp-x86-64-linux-gnu g++ g++-14 g++-14-x86-64-linux-gnu g++-x86-64-linux-gnu 165s gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu hipcc 165s libamd-comgr-dev libamd-comgr2 libamdhip64-5 libamdhip64-dev libamdhip64-doc 165s libasan8 libcc1-0 libclang-common-17-dev libclang-cpp17t64 165s libclang-rt-17-dev libclang1-17t64 libdrm-amdgpu1 libfile-which-perl libgc1 165s libgcc-14-dev libgomp1 libhiprtc-builtins5 libhsa-runtime-dev 165s libhsa-runtime64-1 libhsakmt1 libhwasan0 libisl23 libitm1 libjsoncpp25 165s libllvm17t64 liblsan0 libmpc3 libobjc-14-dev libobjc4 libpfm4 libquadmath0 165s librhash0 libstdc++-14-dev libtsan2 libubsan1 liburi-encode-perl lld-17 165s llvm-17 llvm-17-linker-tools llvm-17-runtime rocm-device-libs-17 165s rocm-opencl-icd rocminfo 165s Suggested packages: 165s clang-17-doc wasi-libc cmake-doc cmake-format elpa-cmake-mode ninja-build 165s cpp-doc gcc-14-locales cpp-14-doc g++-multilib g++-14-multilib gcc-14-doc 165s gcc-multilib manpages-dev autoconf automake libtool flex bison gdb gcc-doc 165s gcc-14-multilib gdb-x86-64-linux-gnu libstdc++-14-doc llvm-17-doc 165s Recommended packages: 165s llvm-17-dev 165s The following NEW packages will be installed: 165s autopkgtest-satdep clang-17 clang-tools-17 cmake cmake-data cpp cpp-14 165s cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu g++ g++-14 165s g++-14-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-14 165s gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu hipcc libamd-comgr-dev 165s libamd-comgr2 libamdhip64-5 libamdhip64-dev libamdhip64-doc libasan8 165s libcc1-0 libclang-common-17-dev libclang-cpp17t64 libclang-rt-17-dev 165s libclang1-17t64 libdrm-amdgpu1 libfile-which-perl libgc1 libgcc-14-dev 165s libgomp1 libhiprtc-builtins5 libhsa-runtime-dev libhsa-runtime64-1 165s libhsakmt1 libhwasan0 libisl23 libitm1 libjsoncpp25 libllvm17t64 liblsan0 165s libmpc3 libobjc-14-dev libobjc4 libpfm4 libquadmath0 librhash0 165s libstdc++-14-dev libtsan2 libubsan1 liburi-encode-perl lld-17 llvm-17 165s llvm-17-linker-tools llvm-17-runtime rocm-device-libs-17 rocm-opencl-icd 165s rocminfo 165s 0 upgraded, 61 newly installed, 0 to remove and 0 not upgraded. 165s Need to get 192 MB/192 MB of archives. 165s After this operation, 811 MB of additional disk space will be used. 165s Get:1 /tmp/autopkgtest.RzxWTW/1-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [776 B] 165s Get:2 http://ftpmaster.internal/ubuntu plucky/universe amd64 libllvm17t64 amd64 1:17.0.6-18 [26.0 MB] 165s Get:3 http://ftpmaster.internal/ubuntu plucky/universe amd64 libclang-cpp17t64 amd64 1:17.0.6-18 [12.8 MB] 165s Get:4 http://ftpmaster.internal/ubuntu plucky/main amd64 libgomp1 amd64 14.2.0-7ubuntu1 [148 kB] 165s Get:5 http://ftpmaster.internal/ubuntu plucky/main amd64 libitm1 amd64 14.2.0-7ubuntu1 [29.1 kB] 165s Get:6 http://ftpmaster.internal/ubuntu plucky/main amd64 libasan8 amd64 14.2.0-7ubuntu1 [2998 kB] 165s Get:7 http://ftpmaster.internal/ubuntu plucky/main amd64 liblsan0 amd64 14.2.0-7ubuntu1 [1316 kB] 165s Get:8 http://ftpmaster.internal/ubuntu plucky/main amd64 libtsan2 amd64 14.2.0-7ubuntu1 [2733 kB] 165s Get:9 http://ftpmaster.internal/ubuntu plucky/main amd64 libubsan1 amd64 14.2.0-7ubuntu1 [1177 kB] 165s Get:10 http://ftpmaster.internal/ubuntu plucky/main amd64 libhwasan0 amd64 14.2.0-7ubuntu1 [1634 kB] 165s Get:11 http://ftpmaster.internal/ubuntu plucky/main amd64 libquadmath0 amd64 14.2.0-7ubuntu1 [153 kB] 165s Get:12 http://ftpmaster.internal/ubuntu plucky/main amd64 libgcc-14-dev amd64 14.2.0-7ubuntu1 [2814 kB] 165s Get:13 http://ftpmaster.internal/ubuntu plucky/main amd64 libstdc++-14-dev amd64 14.2.0-7ubuntu1 [2503 kB] 165s Get:14 http://ftpmaster.internal/ubuntu plucky/main amd64 libgc1 amd64 1:8.2.6-2 [90.6 kB] 165s Get:15 http://ftpmaster.internal/ubuntu plucky/universe amd64 libobjc4 amd64 14.2.0-7ubuntu1 [47.1 kB] 165s Get:16 http://ftpmaster.internal/ubuntu plucky/universe amd64 libobjc-14-dev amd64 14.2.0-7ubuntu1 [194 kB] 165s Get:17 http://ftpmaster.internal/ubuntu plucky/universe amd64 libclang-common-17-dev amd64 1:17.0.6-18 [690 kB] 165s Get:18 http://ftpmaster.internal/ubuntu plucky/universe amd64 llvm-17-linker-tools amd64 1:17.0.6-18 [1301 kB] 165s Get:19 http://ftpmaster.internal/ubuntu plucky/universe amd64 libclang1-17t64 amd64 1:17.0.6-18 [7291 kB] 165s Get:20 http://ftpmaster.internal/ubuntu plucky/universe amd64 clang-17 amd64 1:17.0.6-18 [78.6 kB] 165s Get:21 http://ftpmaster.internal/ubuntu plucky/universe amd64 clang-tools-17 amd64 1:17.0.6-18 [8620 kB] 166s Get:22 http://ftpmaster.internal/ubuntu plucky/main amd64 libjsoncpp25 amd64 1.9.5-6build1 [82.8 kB] 166s Get:23 http://ftpmaster.internal/ubuntu plucky/main amd64 librhash0 amd64 1.4.3-3build1 [129 kB] 166s Get:24 http://ftpmaster.internal/ubuntu plucky/main amd64 cmake-data all 3.30.3-1 [2246 kB] 166s Get:25 http://ftpmaster.internal/ubuntu plucky/main amd64 cmake amd64 3.30.3-1 [12.0 MB] 166s Get:26 http://ftpmaster.internal/ubuntu plucky/main amd64 libisl23 amd64 0.27-1 [685 kB] 166s Get:27 http://ftpmaster.internal/ubuntu plucky/main amd64 libmpc3 amd64 1.3.1-1build2 [55.3 kB] 166s Get:28 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-14-x86-64-linux-gnu amd64 14.2.0-7ubuntu1 [11.9 MB] 166s Get:29 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-14 amd64 14.2.0-7ubuntu1 [1026 B] 166s Get:30 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [5452 B] 166s Get:31 http://ftpmaster.internal/ubuntu plucky/main amd64 cpp amd64 4:14.1.0-2ubuntu1 [22.4 kB] 166s Get:32 http://ftpmaster.internal/ubuntu plucky/main amd64 libcc1-0 amd64 14.2.0-7ubuntu1 [47.6 kB] 166s Get:33 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-14-x86-64-linux-gnu amd64 14.2.0-7ubuntu1 [23.4 MB] 166s Get:34 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-14 amd64 14.2.0-7ubuntu1 [526 kB] 166s Get:35 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [1214 B] 166s Get:36 http://ftpmaster.internal/ubuntu plucky/main amd64 gcc amd64 4:14.1.0-2ubuntu1 [5000 B] 166s Get:37 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-14-x86-64-linux-gnu amd64 14.2.0-7ubuntu1 [13.4 MB] 166s Get:38 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-14 amd64 14.2.0-7ubuntu1 [19.8 kB] 166s Get:39 http://ftpmaster.internal/ubuntu plucky/main amd64 g++-x86-64-linux-gnu amd64 4:14.1.0-2ubuntu1 [966 B] 166s Get:40 http://ftpmaster.internal/ubuntu plucky/main amd64 g++ amd64 4:14.1.0-2ubuntu1 [1100 B] 166s Get:41 http://ftpmaster.internal/ubuntu plucky/universe amd64 llvm-17-runtime amd64 1:17.0.6-18 [527 kB] 166s Get:42 http://ftpmaster.internal/ubuntu plucky/universe amd64 libpfm4 amd64 4.13.0+git32-g0d4ed0e-1 [414 kB] 166s Get:43 http://ftpmaster.internal/ubuntu plucky/universe amd64 llvm-17 amd64 1:17.0.6-18 [23.7 MB] 166s Get:44 http://ftpmaster.internal/ubuntu plucky/universe amd64 lld-17 amd64 1:17.0.6-18 [1304 kB] 166s Get:45 http://ftpmaster.internal/ubuntu plucky/universe amd64 rocm-device-libs-17 amd64 6.0+git20231212.5a852ed-2 [549 kB] 166s Get:46 http://ftpmaster.internal/ubuntu plucky/main amd64 libdrm-amdgpu1 amd64 2.4.122-1 [20.9 kB] 166s Get:47 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 libhsakmt1 amd64 6.1.2+ds-1 [65.2 kB] 166s Get:48 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 libhsa-runtime64-1 amd64 6.1.2-2 [563 kB] 166s Get:49 http://ftpmaster.internal/ubuntu plucky/universe amd64 rocminfo amd64 5.7.1-3build1 [25.6 kB] 166s Get:50 http://ftpmaster.internal/ubuntu plucky/universe amd64 libamd-comgr2 amd64 6.0+git20231212.4510c28+dfsg-3build2 [14.4 MB] 166s Get:51 http://ftpmaster.internal/ubuntu plucky/universe amd64 libamdhip64-5 amd64 5.7.1-4build1 [9627 kB] 166s Get:52 http://ftpmaster.internal/ubuntu plucky/universe amd64 libhiprtc-builtins5 amd64 5.7.1-4build1 [43.5 kB] 166s Get:53 http://ftpmaster.internal/ubuntu plucky/universe amd64 libamd-comgr-dev amd64 6.0+git20231212.4510c28+dfsg-3build2 [18.9 kB] 166s Get:54 http://ftpmaster.internal/ubuntu plucky-proposed/universe amd64 libhsa-runtime-dev amd64 6.1.2-2 [81.1 kB] 166s Get:55 http://ftpmaster.internal/ubuntu plucky/universe amd64 libamdhip64-dev amd64 5.7.1-4build1 [197 kB] 166s Get:56 http://ftpmaster.internal/ubuntu plucky/universe amd64 libclang-rt-17-dev amd64 1:17.0.6-18 [2379 kB] 166s Get:57 http://ftpmaster.internal/ubuntu plucky/main amd64 libfile-which-perl all 1.27-2 [12.5 kB] 166s Get:58 http://ftpmaster.internal/ubuntu plucky/universe amd64 liburi-encode-perl all 1.1.1-3 [9258 B] 166s Get:59 http://ftpmaster.internal/ubuntu plucky/universe amd64 hipcc amd64 5.7.1-4build1 [20.9 kB] 166s Get:60 http://ftpmaster.internal/ubuntu plucky/universe amd64 libamdhip64-doc all 5.7.1-4build1 [93.5 kB] 166s Get:61 http://ftpmaster.internal/ubuntu plucky/universe amd64 rocm-opencl-icd amd64 5.7.1-4build1 [508 kB] 167s Fetched 192 MB in 2s (121 MB/s) 167s Selecting previously unselected package libllvm17t64:amd64. 167s (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 ... 75323 files and directories currently installed.) 167s Preparing to unpack .../00-libllvm17t64_1%3a17.0.6-18_amd64.deb ... 167s Unpacking libllvm17t64:amd64 (1:17.0.6-18) ... 167s Selecting previously unselected package libclang-cpp17t64. 168s Preparing to unpack .../01-libclang-cpp17t64_1%3a17.0.6-18_amd64.deb ... 168s Unpacking libclang-cpp17t64 (1:17.0.6-18) ... 168s Selecting previously unselected package libgomp1:amd64. 168s Preparing to unpack .../02-libgomp1_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libgomp1:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libitm1:amd64. 168s Preparing to unpack .../03-libitm1_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libitm1:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libasan8:amd64. 168s Preparing to unpack .../04-libasan8_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libasan8:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package liblsan0:amd64. 168s Preparing to unpack .../05-liblsan0_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking liblsan0:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libtsan2:amd64. 168s Preparing to unpack .../06-libtsan2_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libtsan2:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libubsan1:amd64. 168s Preparing to unpack .../07-libubsan1_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libubsan1:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libhwasan0:amd64. 168s Preparing to unpack .../08-libhwasan0_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libhwasan0:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libquadmath0:amd64. 168s Preparing to unpack .../09-libquadmath0_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libquadmath0:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libgcc-14-dev:amd64. 168s Preparing to unpack .../10-libgcc-14-dev_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libgcc-14-dev:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libstdc++-14-dev:amd64. 168s Preparing to unpack .../11-libstdc++-14-dev_14.2.0-7ubuntu1_amd64.deb ... 168s Unpacking libstdc++-14-dev:amd64 (14.2.0-7ubuntu1) ... 168s Selecting previously unselected package libgc1:amd64. 168s Preparing to unpack .../12-libgc1_1%3a8.2.6-2_amd64.deb ... 168s Unpacking libgc1:amd64 (1:8.2.6-2) ... 169s Selecting previously unselected package libobjc4:amd64. 169s Preparing to unpack .../13-libobjc4_14.2.0-7ubuntu1_amd64.deb ... 169s Unpacking libobjc4:amd64 (14.2.0-7ubuntu1) ... 169s Selecting previously unselected package libobjc-14-dev:amd64. 169s Preparing to unpack .../14-libobjc-14-dev_14.2.0-7ubuntu1_amd64.deb ... 169s Unpacking libobjc-14-dev:amd64 (14.2.0-7ubuntu1) ... 169s Selecting previously unselected package libclang-common-17-dev:amd64. 169s Preparing to unpack .../15-libclang-common-17-dev_1%3a17.0.6-18_amd64.deb ... 169s Unpacking libclang-common-17-dev:amd64 (1:17.0.6-18) ... 169s Selecting previously unselected package llvm-17-linker-tools. 169s Preparing to unpack .../16-llvm-17-linker-tools_1%3a17.0.6-18_amd64.deb ... 169s Unpacking llvm-17-linker-tools (1:17.0.6-18) ... 169s Selecting previously unselected package libclang1-17t64. 169s Preparing to unpack .../17-libclang1-17t64_1%3a17.0.6-18_amd64.deb ... 169s Unpacking libclang1-17t64 (1:17.0.6-18) ... 169s Selecting previously unselected package clang-17. 169s Preparing to unpack .../18-clang-17_1%3a17.0.6-18_amd64.deb ... 169s Unpacking clang-17 (1:17.0.6-18) ... 169s Selecting previously unselected package clang-tools-17. 169s Preparing to unpack .../19-clang-tools-17_1%3a17.0.6-18_amd64.deb ... 169s Unpacking clang-tools-17 (1:17.0.6-18) ... 169s Selecting previously unselected package libjsoncpp25:amd64. 169s Preparing to unpack .../20-libjsoncpp25_1.9.5-6build1_amd64.deb ... 169s Unpacking libjsoncpp25:amd64 (1.9.5-6build1) ... 169s Selecting previously unselected package librhash0:amd64. 169s Preparing to unpack .../21-librhash0_1.4.3-3build1_amd64.deb ... 169s Unpacking librhash0:amd64 (1.4.3-3build1) ... 169s Selecting previously unselected package cmake-data. 169s Preparing to unpack .../22-cmake-data_3.30.3-1_all.deb ... 169s Unpacking cmake-data (3.30.3-1) ... 170s Selecting previously unselected package cmake. 170s Preparing to unpack .../23-cmake_3.30.3-1_amd64.deb ... 170s Unpacking cmake (3.30.3-1) ... 170s Selecting previously unselected package libisl23:amd64. 170s Preparing to unpack .../24-libisl23_0.27-1_amd64.deb ... 170s Unpacking libisl23:amd64 (0.27-1) ... 170s Selecting previously unselected package libmpc3:amd64. 170s Preparing to unpack .../25-libmpc3_1.3.1-1build2_amd64.deb ... 170s Unpacking libmpc3:amd64 (1.3.1-1build2) ... 170s Selecting previously unselected package cpp-14-x86-64-linux-gnu. 170s Preparing to unpack .../26-cpp-14-x86-64-linux-gnu_14.2.0-7ubuntu1_amd64.deb ... 170s Unpacking cpp-14-x86-64-linux-gnu (14.2.0-7ubuntu1) ... 170s Selecting previously unselected package cpp-14. 170s Preparing to unpack .../27-cpp-14_14.2.0-7ubuntu1_amd64.deb ... 170s Unpacking cpp-14 (14.2.0-7ubuntu1) ... 170s Selecting previously unselected package cpp-x86-64-linux-gnu. 170s Preparing to unpack .../28-cpp-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 170s Unpacking cpp-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 170s Selecting previously unselected package cpp. 170s Preparing to unpack .../29-cpp_4%3a14.1.0-2ubuntu1_amd64.deb ... 170s Unpacking cpp (4:14.1.0-2ubuntu1) ... 170s Selecting previously unselected package libcc1-0:amd64. 170s Preparing to unpack .../30-libcc1-0_14.2.0-7ubuntu1_amd64.deb ... 170s Unpacking libcc1-0:amd64 (14.2.0-7ubuntu1) ... 170s Selecting previously unselected package gcc-14-x86-64-linux-gnu. 170s Preparing to unpack .../31-gcc-14-x86-64-linux-gnu_14.2.0-7ubuntu1_amd64.deb ... 170s Unpacking gcc-14-x86-64-linux-gnu (14.2.0-7ubuntu1) ... 171s Selecting previously unselected package gcc-14. 171s Preparing to unpack .../32-gcc-14_14.2.0-7ubuntu1_amd64.deb ... 171s Unpacking gcc-14 (14.2.0-7ubuntu1) ... 171s Selecting previously unselected package gcc-x86-64-linux-gnu. 171s Preparing to unpack .../33-gcc-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 171s Unpacking gcc-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 171s Selecting previously unselected package gcc. 171s Preparing to unpack .../34-gcc_4%3a14.1.0-2ubuntu1_amd64.deb ... 171s Unpacking gcc (4:14.1.0-2ubuntu1) ... 171s Selecting previously unselected package g++-14-x86-64-linux-gnu. 171s Preparing to unpack .../35-g++-14-x86-64-linux-gnu_14.2.0-7ubuntu1_amd64.deb ... 171s Unpacking g++-14-x86-64-linux-gnu (14.2.0-7ubuntu1) ... 171s Selecting previously unselected package g++-14. 171s Preparing to unpack .../36-g++-14_14.2.0-7ubuntu1_amd64.deb ... 171s Unpacking g++-14 (14.2.0-7ubuntu1) ... 171s Selecting previously unselected package g++-x86-64-linux-gnu. 171s Preparing to unpack .../37-g++-x86-64-linux-gnu_4%3a14.1.0-2ubuntu1_amd64.deb ... 171s Unpacking g++-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 171s Selecting previously unselected package g++. 171s Preparing to unpack .../38-g++_4%3a14.1.0-2ubuntu1_amd64.deb ... 171s Unpacking g++ (4:14.1.0-2ubuntu1) ... 171s Selecting previously unselected package llvm-17-runtime. 171s Preparing to unpack .../39-llvm-17-runtime_1%3a17.0.6-18_amd64.deb ... 171s Unpacking llvm-17-runtime (1:17.0.6-18) ... 171s Selecting previously unselected package libpfm4:amd64. 171s Preparing to unpack .../40-libpfm4_4.13.0+git32-g0d4ed0e-1_amd64.deb ... 171s Unpacking libpfm4:amd64 (4.13.0+git32-g0d4ed0e-1) ... 171s Selecting previously unselected package llvm-17. 171s Preparing to unpack .../41-llvm-17_1%3a17.0.6-18_amd64.deb ... 171s Unpacking llvm-17 (1:17.0.6-18) ... 172s Selecting previously unselected package lld-17. 172s Preparing to unpack .../42-lld-17_1%3a17.0.6-18_amd64.deb ... 172s Unpacking lld-17 (1:17.0.6-18) ... 172s Selecting previously unselected package rocm-device-libs-17. 172s Preparing to unpack .../43-rocm-device-libs-17_6.0+git20231212.5a852ed-2_amd64.deb ... 172s Unpacking rocm-device-libs-17 (6.0+git20231212.5a852ed-2) ... 172s Selecting previously unselected package libdrm-amdgpu1:amd64. 172s Preparing to unpack .../44-libdrm-amdgpu1_2.4.122-1_amd64.deb ... 172s Unpacking libdrm-amdgpu1:amd64 (2.4.122-1) ... 172s Selecting previously unselected package libhsakmt1:amd64. 172s Preparing to unpack .../45-libhsakmt1_6.1.2+ds-1_amd64.deb ... 172s Unpacking libhsakmt1:amd64 (6.1.2+ds-1) ... 172s Selecting previously unselected package libhsa-runtime64-1:amd64. 172s Preparing to unpack .../46-libhsa-runtime64-1_6.1.2-2_amd64.deb ... 172s Unpacking libhsa-runtime64-1:amd64 (6.1.2-2) ... 172s Selecting previously unselected package rocminfo. 172s Preparing to unpack .../47-rocminfo_5.7.1-3build1_amd64.deb ... 172s Unpacking rocminfo (5.7.1-3build1) ... 172s Selecting previously unselected package libamd-comgr2:amd64. 172s Preparing to unpack .../48-libamd-comgr2_6.0+git20231212.4510c28+dfsg-3build2_amd64.deb ... 172s Unpacking libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3build2) ... 173s Selecting previously unselected package libamdhip64-5. 173s Preparing to unpack .../49-libamdhip64-5_5.7.1-4build1_amd64.deb ... 173s Unpacking libamdhip64-5 (5.7.1-4build1) ... 173s Selecting previously unselected package libhiprtc-builtins5. 173s Preparing to unpack .../50-libhiprtc-builtins5_5.7.1-4build1_amd64.deb ... 173s Unpacking libhiprtc-builtins5 (5.7.1-4build1) ... 173s Selecting previously unselected package libamd-comgr-dev. 173s Preparing to unpack .../51-libamd-comgr-dev_6.0+git20231212.4510c28+dfsg-3build2_amd64.deb ... 173s Unpacking libamd-comgr-dev (6.0+git20231212.4510c28+dfsg-3build2) ... 173s Selecting previously unselected package libhsa-runtime-dev:amd64. 173s Preparing to unpack .../52-libhsa-runtime-dev_6.1.2-2_amd64.deb ... 173s Unpacking libhsa-runtime-dev:amd64 (6.1.2-2) ... 173s Selecting previously unselected package libamdhip64-dev. 173s Preparing to unpack .../53-libamdhip64-dev_5.7.1-4build1_amd64.deb ... 173s Unpacking libamdhip64-dev (5.7.1-4build1) ... 173s Selecting previously unselected package libclang-rt-17-dev:amd64. 173s Preparing to unpack .../54-libclang-rt-17-dev_1%3a17.0.6-18_amd64.deb ... 173s Unpacking libclang-rt-17-dev:amd64 (1:17.0.6-18) ... 173s Selecting previously unselected package libfile-which-perl. 173s Preparing to unpack .../55-libfile-which-perl_1.27-2_all.deb ... 173s Unpacking libfile-which-perl (1.27-2) ... 173s Selecting previously unselected package liburi-encode-perl. 173s Preparing to unpack .../56-liburi-encode-perl_1.1.1-3_all.deb ... 173s Unpacking liburi-encode-perl (1.1.1-3) ... 173s Selecting previously unselected package hipcc. 173s Preparing to unpack .../57-hipcc_5.7.1-4build1_amd64.deb ... 173s Unpacking hipcc (5.7.1-4build1) ... 173s Selecting previously unselected package libamdhip64-doc. 173s Preparing to unpack .../58-libamdhip64-doc_5.7.1-4build1_all.deb ... 173s Unpacking libamdhip64-doc (5.7.1-4build1) ... 173s Selecting previously unselected package rocm-opencl-icd. 173s Preparing to unpack .../59-rocm-opencl-icd_5.7.1-4build1_amd64.deb ... 173s Unpacking rocm-opencl-icd (5.7.1-4build1) ... 173s Selecting previously unselected package autopkgtest-satdep. 173s Preparing to unpack .../60-1-autopkgtest-satdep.deb ... 173s Unpacking autopkgtest-satdep (0) ... 173s Setting up libamdhip64-doc (5.7.1-4build1) ... 173s Setting up libfile-which-perl (1.27-2) ... 173s Setting up libgomp1:amd64 (14.2.0-7ubuntu1) ... 173s Setting up rocm-device-libs-17 (6.0+git20231212.5a852ed-2) ... 173s Setting up libpfm4:amd64 (4.13.0+git32-g0d4ed0e-1) ... 173s Setting up libllvm17t64:amd64 (1:17.0.6-18) ... 173s Setting up libclang1-17t64 (1:17.0.6-18) ... 173s Setting up liburi-encode-perl (1.1.1-3) ... 173s Setting up libquadmath0:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libmpc3:amd64 (1.3.1-1build2) ... 173s Setting up libjsoncpp25:amd64 (1.9.5-6build1) ... 173s Setting up libhiprtc-builtins5 (5.7.1-4build1) ... 173s Setting up libgc1:amd64 (1:8.2.6-2) ... 173s Setting up libubsan1:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libclang-common-17-dev:amd64 (1:17.0.6-18) ... 173s Setting up libhwasan0:amd64 (14.2.0-7ubuntu1) ... 173s Setting up librhash0:amd64 (1.4.3-3build1) ... 173s Setting up lld-17 (1:17.0.6-18) ... 173s Setting up libasan8:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libclang-rt-17-dev:amd64 (1:17.0.6-18) ... 173s Setting up llvm-17-runtime (1:17.0.6-18) ... 173s Setting up cmake-data (3.30.3-1) ... 173s Setting up libamd-comgr2:amd64 (6.0+git20231212.4510c28+dfsg-3build2) ... 173s Setting up libtsan2:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libamd-comgr-dev (6.0+git20231212.4510c28+dfsg-3build2) ... 173s Setting up libisl23:amd64 (0.27-1) ... 173s Setting up libcc1-0:amd64 (14.2.0-7ubuntu1) ... 173s Setting up liblsan0:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libitm1:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libdrm-amdgpu1:amd64 (2.4.122-1) ... 173s Setting up llvm-17-linker-tools (1:17.0.6-18) ... 173s Setting up libobjc4:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libclang-cpp17t64 (1:17.0.6-18) ... 173s Setting up cpp-14-x86-64-linux-gnu (14.2.0-7ubuntu1) ... 173s Setting up cpp-14 (14.2.0-7ubuntu1) ... 173s Setting up cmake (3.30.3-1) ... 173s Setting up libgcc-14-dev:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libstdc++-14-dev:amd64 (14.2.0-7ubuntu1) ... 173s Setting up llvm-17 (1:17.0.6-18) ... 173s Setting up libhsakmt1:amd64 (6.1.2+ds-1) ... 173s Setting up cpp-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 173s Setting up libobjc-14-dev:amd64 (14.2.0-7ubuntu1) ... 173s Setting up libhsa-runtime64-1:amd64 (6.1.2-2) ... 173s Setting up cpp (4:14.1.0-2ubuntu1) ... 173s Setting up gcc-14-x86-64-linux-gnu (14.2.0-7ubuntu1) ... 173s Setting up gcc-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 173s Setting up rocminfo (5.7.1-3build1) ... 173s Setting up clang-17 (1:17.0.6-18) ... 173s Setting up rocm-opencl-icd (5.7.1-4build1) ... 173s Setting up gcc-14 (14.2.0-7ubuntu1) ... 173s Setting up libhsa-runtime-dev:amd64 (6.1.2-2) ... 173s Setting up libamdhip64-5 (5.7.1-4build1) ... 173s Setting up g++-14-x86-64-linux-gnu (14.2.0-7ubuntu1) ... 173s Setting up g++-x86-64-linux-gnu (4:14.1.0-2ubuntu1) ... 173s Setting up g++-14 (14.2.0-7ubuntu1) ... 173s Setting up libamdhip64-dev (5.7.1-4build1) ... 173s Setting up clang-tools-17 (1:17.0.6-18) ... 173s Setting up gcc (4:14.1.0-2ubuntu1) ... 173s Setting up g++ (4:14.1.0-2ubuntu1) ... 173s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 173s Setting up hipcc (5.7.1-4build1) ... 173s Setting up autopkgtest-satdep (0) ... 173s Processing triggers for systemd (256.5-2ubuntu3) ... 173s Processing triggers for man-db (2.12.1-3) ... 174s Processing triggers for libc-bin (2.40-1ubuntu3) ... 178s (Reading database ... 81258 files and directories currently installed.) 178s Removing autopkgtest-satdep (0) ... 178s autopkgtest [00:20:08]: test clang: [----------------------- 178s $ cat main.hip 178s #include 178s #include 178s #include 178s 178s #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) 178s 178s __global__ void sq_arr(float *arr, int n) { 178s int tid = blockDim.x*blockIdx.x + threadIdx.x; 178s if (tid < n) { 178s arr[tid] = arr[tid] * arr[tid]; 178s } 178s } 178s 178s int main() { 178s enum { N = 5 }; 178s float hArr[N] = { 1, 2, 3, 4, 5 }; 178s float *dArr; 178s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 178s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 178s sq_arr<<>>(dArr, N); 178s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 178s for (int i = 0; i < N; ++i) { 178s printf("%f\n", hArr[i]); 178s } 178s CHECK_HIP(hipFree(dArr)); 178s return 0; 178s } 178s $ clang++-17 -x hip --offload-arch=gfx900 main.hip -lamdhip64 -o main 181s autopkgtest [00:20:11]: test clang: -----------------------] 181s clang PASS (superficial) 181s autopkgtest [00:20:11]: test clang: - - - - - - - - - - results - - - - - - - - - - 181s autopkgtest [00:20:11]: test cmake-hip-config: preparing testbed 184s Reading package lists... 184s Building dependency tree... 184s Reading state information... 184s Starting pkgProblemResolver with broken count: 0 184s Starting 2 pkgProblemResolver with broken count: 0 184s Done 185s The following NEW packages will be installed: 185s autopkgtest-satdep 185s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 185s Need to get 0 B/776 B of archives. 185s After this operation, 0 B of additional disk space will be used. 185s Get:1 /tmp/autopkgtest.RzxWTW/2-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [776 B] 185s Selecting previously unselected package autopkgtest-satdep. 185s (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 ... 81258 files and directories currently installed.) 185s Preparing to unpack .../2-autopkgtest-satdep.deb ... 185s Unpacking autopkgtest-satdep (0) ... 185s Setting up autopkgtest-satdep (0) ... 188s (Reading database ... 81258 files and directories currently installed.) 188s Removing autopkgtest-satdep (0) ... 188s autopkgtest [00:20:18]: test cmake-hip-config: [----------------------- 188s $ cat main.cpp 188s #include 188s #include 188s #include 188s 188s #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) 188s 188s __global__ void sq_arr(float *arr, int n) { 188s int tid = blockDim.x*blockIdx.x + threadIdx.x; 188s if (tid < n) { 188s arr[tid] = arr[tid] * arr[tid]; 188s } 188s } 188s 188s int main() { 188s enum { N = 5 }; 188s float hArr[N] = { 1, 2, 3, 4, 5 }; 188s float *dArr; 188s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 188s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 188s sq_arr<<>>(dArr, N); 188s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 188s for (int i = 0; i < N; ++i) { 188s printf("%f\n", hArr[i]); 188s } 188s CHECK_HIP(hipFree(dArr)); 188s return 0; 188s } 188s $ cat CMakeLists.txt 188s cmake_minimum_required(VERSION 3.22) 188s project(example LANGUAGES CXX) 188s find_package(hip REQUIRED) 188s add_executable(ex main.cpp) 188s target_link_libraries(ex PRIVATE hip::device) 188s $ CXX=clang++-17 cmake -S. -Bbuild -DAMDGPU_TARGETS=gfx1030 188s -- The CXX compiler identification is Clang 17.0.6 188s -- Detecting CXX compiler ABI info 188s -- Detecting CXX compiler ABI info - done 188s -- Check for working CXX compiler: /usr/bin/clang++-17 - skipped 188s -- Detecting CXX compile features 188s -- Detecting CXX compile features - done 188s -- Performing Test CMAKE_HAVE_LIBC_PTHREAD 189s -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success 189s -- Found Threads: TRUE 189s -- hip::amdhip64 is SHARED_LIBRARY 189s -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS 189s -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Failed 189s -- Looking for compiler-rt 189s -- Looking for compiler-rt - found 189s -- Configuring done (0.9s) 189s -- Generating done (0.0s) 189s -- Build files have been written to: /tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build 189s $ make -C build 189s make: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 189s make[1]: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 189s make[2]: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 189s make[2]: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 189s make[2]: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 189s [ 50%] Building CXX object CMakeFiles/ex.dir/main.cpp.o 191s [100%] Linking CXX executable ex 191s make[2]: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 191s [100%] Built target ex 191s make[1]: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 191s make: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 192s autopkgtest [00:20:22]: test cmake-hip-config: -----------------------] 192s cmake-hip-config PASS (superficial) 192s autopkgtest [00:20:22]: test cmake-hip-config: - - - - - - - - - - results - - - - - - - - - - 192s autopkgtest [00:20:22]: test cmake-hip-lang: preparing testbed 192s Reading package lists... 193s Building dependency tree... 193s Reading state information... 193s Starting pkgProblemResolver with broken count: 0 193s Starting 2 pkgProblemResolver with broken count: 0 193s Done 194s The following NEW packages will be installed: 194s autopkgtest-satdep 194s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 194s Need to get 0 B/776 B of archives. 194s After this operation, 0 B of additional disk space will be used. 194s Get:1 /tmp/autopkgtest.RzxWTW/3-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [776 B] 194s Selecting previously unselected package autopkgtest-satdep. 194s (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 ... 81258 files and directories currently installed.) 194s Preparing to unpack .../3-autopkgtest-satdep.deb ... 194s Unpacking autopkgtest-satdep (0) ... 194s Setting up autopkgtest-satdep (0) ... 196s (Reading database ... 81258 files and directories currently installed.) 196s Removing autopkgtest-satdep (0) ... 196s autopkgtest [00:20:26]: test cmake-hip-lang: [----------------------- 196s $ cat main.hip 196s #include 196s #include 196s #include 196s 196s #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) 196s 196s __global__ void sq_arr(float *arr, int n) { 196s int tid = blockDim.x*blockIdx.x + threadIdx.x; 196s if (tid < n) { 196s arr[tid] = arr[tid] * arr[tid]; 196s } 196s } 196s 196s int main() { 196s enum { N = 5 }; 196s float hArr[N] = { 1, 2, 3, 4, 5 }; 196s float *dArr; 196s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 196s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 196s sq_arr<<>>(dArr, N); 196s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 196s for (int i = 0; i < N; ++i) { 196s printf("%f\n", hArr[i]); 196s } 196s CHECK_HIP(hipFree(dArr)); 196s return 0; 196s } 196s $ cat CMakeLists.txt 196s cmake_minimum_required(VERSION 3.22) 196s project(example LANGUAGES HIP) 196s add_executable(ex main.hip) 196s $ HIPCXX=clang++-17 cmake -S. -Bbuild -DCMAKE_HIP_ARCHITECTURES=gfx1030 198s -- The HIP compiler identification is Clang 17.0.6 198s -- Detecting HIP compiler ABI info 199s -- Detecting HIP compiler ABI info - done 199s -- Check for working HIP compiler: /usr/bin/clang++-17 - skipped 199s -- Detecting HIP compile features 199s -- Detecting HIP compile features - done 199s -- Configuring done (2.8s) 199s -- Generating done (0.0s) 199s -- Build files have been written to: /tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build 199s $ make -C build 199s make: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 199s make[1]: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 199s make[2]: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 199s make[2]: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 199s make[2]: Entering directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 199s [ 50%] Building HIP object CMakeFiles/ex.dir/main.hip.o 201s [100%] Linking HIP executable ex 201s make[2]: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 201s [100%] Built target ex 201s make[1]: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 201s make: Leaving directory '/tmp/autopkgtest.RzxWTW/autopkgtest_tmp/build' 202s autopkgtest [00:20:32]: test cmake-hip-lang: -----------------------] 202s cmake-hip-lang PASS (superficial) 202s autopkgtest [00:20:32]: test cmake-hip-lang: - - - - - - - - - - results - - - - - - - - - - 202s autopkgtest [00:20:32]: test g++: preparing testbed 202s Reading package lists... 203s Building dependency tree... 203s Reading state information... 203s Starting pkgProblemResolver with broken count: 0 203s Starting 2 pkgProblemResolver with broken count: 0 203s Done 203s The following NEW packages will be installed: 203s autopkgtest-satdep 204s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 204s Need to get 0 B/776 B of archives. 204s After this operation, 0 B of additional disk space will be used. 204s Get:1 /tmp/autopkgtest.RzxWTW/4-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [776 B] 204s Selecting previously unselected package autopkgtest-satdep. 204s (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 ... 81258 files and directories currently installed.) 204s Preparing to unpack .../4-autopkgtest-satdep.deb ... 204s Unpacking autopkgtest-satdep (0) ... 204s Setting up autopkgtest-satdep (0) ... 206s (Reading database ... 81258 files and directories currently installed.) 206s Removing autopkgtest-satdep (0) ... 206s autopkgtest [00:20:36]: test g++: [----------------------- 206s $ cat main.cpp 206s #include 206s #include 206s #include 206s 206s #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) 206s 206s int main() { 206s enum { N = 5 }; 206s float hArr[N] = { 1, 2, 3, 4, 5 }; 206s float *dArr; 206s CHECK_HIP(hipMalloc(&dArr, sizeof(float) * N)); 206s CHECK_HIP(hipMemcpy(dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 206s CHECK_HIP(hipMemcpy(hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 206s for (int i = 0; i < N; ++i) { 206s printf("%f\n", hArr[i]); 206s } 206s CHECK_HIP(hipFree(dArr)); 206s return 0; 206s } 206s $ g++ -D__HIP_PLATFORM_AMD__ main.cpp -lamdhip64 -o main 207s autopkgtest [00:20:37]: test g++: -----------------------] 208s autopkgtest [00:20:38]: test g++: - - - - - - - - - - results - - - - - - - - - - 208s g++ PASS (superficial) 208s autopkgtest [00:20:38]: test gcc: preparing testbed 209s Reading package lists... 209s Building dependency tree... 209s Reading state information... 209s Starting pkgProblemResolver with broken count: 0 209s Starting 2 pkgProblemResolver with broken count: 0 209s Done 210s The following NEW packages will be installed: 210s autopkgtest-satdep 210s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 210s Need to get 0 B/776 B of archives. 210s After this operation, 0 B of additional disk space will be used. 210s Get:1 /tmp/autopkgtest.RzxWTW/5-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [776 B] 210s Selecting previously unselected package autopkgtest-satdep. 210s (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 ... 81258 files and directories currently installed.) 210s Preparing to unpack .../5-autopkgtest-satdep.deb ... 210s Unpacking autopkgtest-satdep (0) ... 210s Setting up autopkgtest-satdep (0) ... 212s (Reading database ... 81258 files and directories currently installed.) 212s Removing autopkgtest-satdep (0) ... 212s autopkgtest [00:20:42]: test gcc: [----------------------- 212s $ cat main.c 212s #include 212s #include 212s #include 212s 212s #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) 212s 212s int main() { 212s enum { N = 5 }; 212s float hArr[N] = { 1, 2, 3, 4, 5 }; 212s float *dArr; 212s CHECK_HIP(hipMalloc((void**)&dArr, sizeof(float) * N)); 212s CHECK_HIP(hipMemcpy((void**)dArr, hArr, sizeof(float) * N, hipMemcpyHostToDevice)); 212s CHECK_HIP(hipMemcpy((void**)hArr, dArr, sizeof(float) * N, hipMemcpyDeviceToHost)); 212s for (int i = 0; i < N; ++i) { 212s printf("%f\n", hArr[i]); 212s } 212s CHECK_HIP(hipFree(dArr)); 212s return 0; 212s } 212s $ gcc -D__HIP_PLATFORM_AMD__ main.c -lamdhip64 -o main 213s autopkgtest [00:20:43]: test gcc: -----------------------] 213s autopkgtest [00:20:43]: test gcc: - - - - - - - - - - results - - - - - - - - - - 213s gcc PASS (superficial) 213s autopkgtest [00:20:43]: test hipconfig: preparing testbed 214s Reading package lists... 214s Building dependency tree... 214s Reading state information... 215s Starting pkgProblemResolver with broken count: 0 215s Starting 2 pkgProblemResolver with broken count: 0 215s Done 215s The following NEW packages will be installed: 215s autopkgtest-satdep 215s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 215s Need to get 0 B/780 B of archives. 215s After this operation, 0 B of additional disk space will be used. 215s Get:1 /tmp/autopkgtest.RzxWTW/6-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [780 B] 215s Selecting previously unselected package autopkgtest-satdep. 215s (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 ... 81258 files and directories currently installed.) 215s Preparing to unpack .../6-autopkgtest-satdep.deb ... 215s Unpacking autopkgtest-satdep (0) ... 215s Setting up autopkgtest-satdep (0) ... 217s (Reading database ... 81258 files and directories currently installed.) 217s Removing autopkgtest-satdep (0) ... 217s autopkgtest [00:20:47]: test hipconfig: [----------------------- 217s HIP version : 5.7.31921-0 217s 217s == hipconfig 217s HIP_PATH : /usr 217s ROCM_PATH : /usr 217s HIP_COMPILER : clang 217s HIP_PLATFORM : amd 217s HIP_RUNTIME : rocclr 217s CPP_CONFIG : -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/usr/include -I/usr/lib/llvm-17/lib/clang/17 217s 217s 217s == hip-clang 217s HIP_CLANG_PATH : /usr/bin 217s Ubuntu clang version 17.0.6 (18) 217s Target: x86_64-pc-linux-gnu 217s Thread model: posix 217s InstalledDir: /usr/bin 217s Ubuntu LLVM version 17.0.6 217s Optimized build. 217s Default target: x86_64-pc-linux-gnu 217s Host CPU: znver2 217s 217s Registered Targets: 217s aarch64 - AArch64 (little endian) 217s aarch64_32 - AArch64 (little endian ILP32) 217s aarch64_be - AArch64 (big endian) 217s amdgcn - AMD GCN GPUs 217s arm - ARM 217s arm64 - ARM64 (little endian) 217s arm64_32 - ARM64 (little endian ILP32) 217s armeb - ARM (big endian) 217s avr - Atmel AVR Microcontroller 217s bpf - BPF (host endian) 217s bpfeb - BPF (big endian) 217s bpfel - BPF (little endian) 217s hexagon - Hexagon 217s lanai - Lanai 217s loongarch32 - 32-bit LoongArch 217s loongarch64 - 64-bit LoongArch 217s m68k - Motorola 68000 family 217s mips - MIPS (32-bit big endian) 217s mips64 - MIPS (64-bit big endian) 217s mips64el - MIPS (64-bit little endian) 217s mipsel - MIPS (32-bit little endian) 217s msp430 - MSP430 [experimental] 217s nvptx - NVIDIA PTX 32-bit 217s nvptx64 - NVIDIA PTX 64-bit 217s ppc32 - PowerPC 32 217s ppc32le - PowerPC 32 LE 217s ppc64 - PowerPC 64 217s ppc64le - PowerPC 64 LE 217s r600 - AMD GPUs HD2XXX-HD6XXX 217s riscv32 - 32-bit RISC-V 217s riscv64 - 64-bit RISC-V 217s sparc - Sparc 217s sparcel - Sparc LE 217s sparcv9 - Sparc V9 217s systemz - SystemZ 217s thumb - Thumb 217s thumbeb - Thumb (big endian) 217s ve - VE 217s wasm32 - WebAssembly 32-bit 217s wasm64 - WebAssembly 64-bit 217s x86 - 32-bit X86: Pentium-Pro and above 217s x86-64 - 64-bit X86: EM64T and AMD64 217s xcore - XCore 217s xtensa - Xtensa 32 217s hip-clang-cxxflags : -O3 217s hip-clang-ldflags : -O3 --hip-link --rtlib=compiler-rt -unwindlib=libgcc 217s 217s === Environment Variables 217s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 217s 217s == Linux Kernel 217s Hostname : autopkgtest 217s Linux autopkgtest 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 13:41:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 217s Distributor ID: Ubuntu 217s Description: Ubuntu Plucky Puffin (development branch) 217s Release: 25.04 217s Codename: plucky 217s 218s autopkgtest [00:20:48]: test hipconfig: -----------------------] 218s hipconfig PASS (superficial) 218s autopkgtest [00:20:48]: test hipconfig: - - - - - - - - - - results - - - - - - - - - - 218s autopkgtest [00:20:48]: test hipcc: preparing testbed 219s Reading package lists... 219s Building dependency tree... 219s Reading state information... 219s Starting pkgProblemResolver with broken count: 0 219s Starting 2 pkgProblemResolver with broken count: 0 219s Done 220s The following NEW packages will be installed: 220s autopkgtest-satdep 220s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 220s Need to get 0 B/776 B of archives. 220s After this operation, 0 B of additional disk space will be used. 220s Get:1 /tmp/autopkgtest.RzxWTW/7-autopkgtest-satdep.deb autopkgtest-satdep amd64 0 [776 B] 220s Selecting previously unselected package autopkgtest-satdep. 220s (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 ... 81258 files and directories currently installed.) 220s Preparing to unpack .../7-autopkgtest-satdep.deb ... 220s Unpacking autopkgtest-satdep (0) ... 220s Setting up autopkgtest-satdep (0) ... 222s (Reading database ... 81258 files and directories currently installed.) 222s Removing autopkgtest-satdep (0) ... 222s autopkgtest [00:20:52]: test hipcc: [----------------------- 222s $ hipcc --help 222s OVERVIEW: clang LLVM compiler 222s 222s USAGE: clang [options] file... 222s 222s OPTIONS: 222s -### Print (but do not run) the commands to run for this compilation 222s --amdgpu-arch-tool= 222s Tool used for detecting AMD GPU arch in the system. 222s --analyzer-output 222s Static analyzer report output format (html|plist|plist-multi-file|plist-html|sarif|sarif-html|text). 222s --analyze Run the static analyzer 222s -arcmt-migrate-emit-errors 222s Emit ARC errors even if the migrator can fix them 222s -arcmt-migrate-report-output 222s Output path for the plist report 222s -B Search $prefix$file for executables, libraries, and data files. If $prefix is a directory, search $prefix/$file 222s -b Pass -b to the linker on AIX 222s -CC Include comments from within macros in preprocessed output 222s -cl-denorms-are-zero OpenCL only. Allow denormals to be flushed to zero. 222s -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 '-'. 222s -cl-fast-relaxed-math OpenCL only. Sets -cl-finite-math-only and -cl-unsafe-math-optimizations, and defines __FAST_RELAXED_MATH__. 222s -cl-finite-math-only OpenCL only. Allow floating-point optimizations that assume arguments and results are not NaNs or +-Inf. 222s -cl-fp32-correctly-rounded-divide-sqrt 222s OpenCL only. Specify that single precision floating-point divide and sqrt used in the program source are correctly rounded. 222s -cl-kernel-arg-info OpenCL only. Generate kernel argument metadata. 222s -cl-mad-enable OpenCL only. Allow use of less precise MAD computations in the generated binary. 222s -cl-no-signed-zeros OpenCL only. Allow use of less precise no signed zeros computations in the generated binary. 222s -cl-no-stdinc OpenCL only. Disables all standard includes containing non-native compiler types and functions. 222s -cl-opt-disable OpenCL only. This option disables all optimizations. By default optimizations are enabled. 222s -cl-single-precision-constant 222s OpenCL only. Treat double precision floating-point constant as single precision constant. 222s -cl-std= OpenCL language standard to compile for. 222s -cl-strict-aliasing OpenCL only. This option is added for compatibility with OpenCL 1.0. 222s -cl-uniform-work-group-size 222s OpenCL only. Defines that the global work-size be a multiple of the work-group size specified to clEnqueueNDRangeKernel 222s -cl-unsafe-math-optimizations 222s OpenCL only. Allow unsafe floating-point optimizations. Also implies -cl-no-signed-zeros and -cl-mad-enable. 222s --config= Specify configuration file 222s --cuda-compile-host-device 222s Compile CUDA code for both host and device (default). Has no effect on non-CUDA compilations. 222s --cuda-device-only Compile CUDA code for device only 222s --cuda-feature= Manually specify the CUDA feature to use 222s --cuda-host-only Compile CUDA code for host only. Has no effect on non-CUDA compilations. 222s --cuda-include-ptx= 222s Include PTX for the following GPU architecture (e.g. sm_35) or 'all'. May be specified more than once. 222s --cuda-noopt-device-debug 222s Enable device-side debug info generation. Disables ptxas optimizations. 222s --cuda-path-ignore-env Ignore environment variables to detect CUDA installation 222s --cuda-path= CUDA installation path 222s -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. 222s -cxx-isystem 222s Add directory to the C++ SYSTEM include search path 222s -C Include comments in preprocessed output 222s -c Only run preprocess, compile, and assemble steps 222s -darwin-target-variant-triple 222s Specify the darwin target variant triple 222s -darwin-target-variant 222s Generate code for an additional runtime variant of the deployment target 222s -dD Print macro definitions in -E mode in addition to normal output 222s -dependency-dot Filename to write DOT-formatted header dependencies to 222s -dependency-file 222s Filename (or -) to write dependency output to 222s -dI Print include directives in -E mode in addition to normal output 222s -dM Print macro definitions in -E mode instead of normal output 222s -dsym-dir Directory to output dSYM's (if any) to 222s -dumpdir Use as a prefix to form auxiliary and dump file names 222s -D = Define to (or 1 if omitted) 222s -emit-ast Emit Clang AST files for source inputs 222s -emit-interface-stubs Generate Interface Stub Files. 222s -emit-llvm Use the LLVM representation for assembler and object files 222s -emit-merged-ifs Generate Interface Stub Files, emit merged text not binary. 222s --emit-static-lib Enable linker job to emit a static library. 222s --emit-symbol-graph= 222s Generate Extract API information as a side effect of compilation. 222s --end-no-unused-arguments 222s Start emitting warnings for unused driver arguments 222s --extract-api-ignores= 222s Comma separated list of files containing a new line separated list of API symbols to ignore when extracting API information. 222s -extract-api Extract API information 222s -E Only run the preprocessor 222s -faapcs-bitfield-load Follows the AAPCS standard that all volatile bit-field write generates at least one load. (ARM only). 222s -faapcs-bitfield-width Follow the AAPCS standard requirement stating that volatile bit-field width is dictated by the field container type. (ARM only). 222s -faddrsig Emit an address-significance table 222s -falign-loops= N must be a power of two. Align loops to the boundary 222s -faligned-allocation Enable C++17 aligned allocation functions 222s -fallow-editor-placeholders 222s Treat editor placeholders as valid source code 222s -faltivec-src-compat= 222s 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'. 222s -fansi-escape-codes Use ANSI escape codes for diagnostics 222s -fapple-kext Use Apple's kernel extensions ABI 222s -fapple-link-rtlib Force linking the clang builtins runtime library 222s -fapple-pragma-pack Enable Apple gcc-compatible #pragma pack handling 222s -fapplication-extension Restrict code to those available for App Extensions 222s -fapprox-func Allow certain math function calls to be replaced with an approximately equivalent calculation 222s -fasync-exceptions Enable EH Asynchronous exceptions 222s -fbasic-block-sections= 222s Place each function's basic blocks in unique sections (ELF Only) 222s -fbinutils-version= 222s 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. 222s -fblocks Enable the 'blocks' language feature 222s -fborland-extensions Accept non-standard constructs supported by the Borland compiler 222s -fbuild-session-file= 222s Use the last modification time of as the build session timestamp 222s -fbuild-session-timestamp=