From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8629C138334 for ; Mon, 27 May 2019 16:26:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 336AAE085B; Mon, 27 May 2019 16:26:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D35CCE0841 for ; Mon, 27 May 2019 16:25:59 +0000 (UTC) Received: from pomiot (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 8853434518C; Mon, 27 May 2019 16:25:57 +0000 (UTC) Message-ID: Subject: [gentoo-project] Looking for someone with AVX-512 capable CPU From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-project Date: Mon, 27 May 2019 18:25:53 +0200 Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-1W/6K5FJedmwmnfTwIuA" User-Agent: Evolution 3.30.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Project discussion list X-BeenThere: gentoo-project@lists.gentoo.org Reply-To: gentoo-project@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: 13477bae-5a9b-4582-974a-3da4fa2e9b8b X-Archives-Hash: 8243f17ad85a15968a166e0bc545e65c --=-1W/6K5FJedmwmnfTwIuA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'm looking for someone having AVX-512 capable CPU, for the purpose of XSAVE support development in LLDB. If you have such a CPU, could you compile and run the following program, and send me the output? If you could in the future provide me with a shell account (unprivileged user is sufficient) to build and test LLDB, that'd be even better. The program is meant to grab offsets and sizes of XSAVE components. It should run unprivileged. However, it might require a new-ish kernel.=20 TIA. --- #include #include #include #include int main() { int i; uint32_t eax, ebx, ecx, edx; uint64_t xcr0; asm volatile( "xorq %%rcx, %%rcx\n\t" "xgetbv\n\t" : "=3Da"(eax), "=3Dd"(edx) : : ); printf("XCR0: EAX =3D %08" PRIx32 "; EDX =3D %08" PRIx32 "\n", eax, edx); xcr0 =3D ((uint64_t)edx << 32) | eax; if (!__get_cpuid_count(0x0D, 0, &eax, &ebx, &ecx, &edx)) return 0; printf("0Dh(0): EAX =3D %08" PRIx32 "; EDX =3D %08" PRIx32 "\n", eax, edx)= ; printf("0Dh(0): ECX =3D %" PRId32 "; EBX =3D %" PRId32 "\n", ecx, ebx); for (i =3D 2; i < 64; ++i) { if (!(xcr0 & ((uint64_t)1 << i))) continue; __cpuid_count(0x0D, i, eax, ebx, ecx, edx); printf("0Dh(%d): EAX =3D %" PRId32 "; EBX =3D %" PRId32 "; ECX =3D %" PRIx32 "\n", i, eax, ebx, ecx); } } --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-1W/6K5FJedmwmnfTwIuA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAlzsD5FfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM3 NkE4NDUwOTQwOThEMjhDQzhCMjZDNTYzOUFEQUUyMzI5RTI0MEUACgkQY5ra4jKe JA4xxQf/f7ITdOa0Oc+RtDTDiXcZEb00++JJBCXADJ9pgC4VotAC3rAHqXF94+wU uX6N9fONqKXeSGidY75yu8xrZsw+cSlsYkEilswMQXZUC4Kl16lpFi3rhbkEIIPz IPuJ8XAw3H0xFAEdmSYPPErJbUd0qhFqCXy1RY7RImUUQ4p0i/0/U8H5NG+HJ5yZ jvezR+6lkOB0rzccK1k8B62LtSvvfbUmg/fYcti2KKLGtB9GuR2J2fst1pc2Orjs 1bwpiHu69vdvHVmMNNzL6tdswSoq9hXXI8qFrLSlpy5mbPBM8MVPQxQ/ZQn+Gsf7 qhYEx5ezpb8DuPOBin3ueU41hsABOg== =RV5y -----END PGP SIGNATURE----- --=-1W/6K5FJedmwmnfTwIuA--