Your message dated Fri, 15 May 2020 15:33:41 +0000 with message-id <[email protected]> and subject line Bug#960150: fixed in gcc-10 10.1.0-2 has caused the Debian Bug report #960150, regarding gdc-10 / libphobos 2.76 core.cpuid.{cores,threads}PerCPU() returns wrong value to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 960150: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960150 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: gdc-10 Version: 10.1.0-1 Severity: normal Dear Maintainer, ==== import std.stdio; import core.cpuid; void main() { writefln("CPU: threads_per_cpu=%d; cores_per_cpu=%d; ht=%s; processor=%s", threadsPerCPU(), coresPerCPU(), hyperThreading(), processor()); } ==== # Using gdc-10 (10.1.0-1) and ligphobos1 (10.1.0-1) CPU: threads_per_cpu=1; cores_per_cpu=32; ht=false; processor=AMD Ryzen Threadripper 2950X 16-Core Processor # Using ldc (1:1.20.1-1) and libphobos2-ldc-shared-dev (= 1:1.20.1-1): CPU: threads_per_cpu=32; cores_per_cpu=16; ht=true; processor=AMD Ryzen Threadripper 2950X 16-Core Processor As can be seen gdc-10 (and gdc-9 too) returns wrong values. I tried various optimization options, different -mcpu, static phobos linking, etc. and they don't change it. I am running on a bare hardware (no kvm, Xen or qemu involved) with kernel Linux 5.2.17. For reference: $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 43 bits physical, 48 bits virtual CPU(s): 32 On-line CPU(s) list: 0-31 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 1 NUMA node(s): 2 Vendor ID: AuthenticAMD CPU family: 23 Model: 8 Model name: AMD Ryzen Threadripper 2950X 16-Core Processor Stepping: 2 Frequency boost: enabled CPU MHz: 2431.075 CPU max MHz: 3500.0000 CPU min MHz: 2200.0000 BogoMIPS: 6999.26 Virtualization: AMD-V L1d cache: 512 KiB L1i cache: 1 MiB L2 cache: 8 MiB L3 cache: 32 MiB NUMA node0 CPU(s): 0-7,16-23 NUMA node1 CPU(s): 8-15,24-31 Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and s eccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanit ization Vulnerability Spectre v2: Mitigation; Full AMD retpoline, IBPB conditional, STIBP disab led, RSB filling Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxs r_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_ts c cpuid extd_apicid amd_dcm aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a mi salignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_c ore perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssb d sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx sm ap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero ir perf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vm cb_clean flushbyasid decodeassists pausefilter pfthreshold av ic v_vmsave_vmload vgif overflow_recov succor smca $ $ numactl -s policy: default preferred node: current physcpubind: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 cpubind: 0 1 nodebind: 0 1 membind: 0 1 $ $ numactl --hardware available: 2 nodes (0-1) node 0 cpus: 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23 node 0 size: 64371 MB node 0 free: 15527 MB node 1 cpus: 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31 node 1 size: 64497 MB node 1 free: 678 MB node distances: node 0 1 0: 10 16 1: 16 10 $ $ nproc 32 $ $ getconf -a | grep PROCESSORS _NPROCESSORS_CONF 32 _NPROCESSORS_ONLN 32 $ $ cpuid CPU 0: vendor_id = "AuthenticAMD" version information (1/eax): processor type = primary processor (0) family = 0xf (15) model = 0x8 (8) stepping id = 0x2 (2) extended family = 0x8 (8) extended model = 0x0 (0) (family synth) = 0x17 (23) (model synth) = 0x8 (8) (simple synth) = AMD Ryzen (Pinnacle Ridge PiR-B2) [Zen+], 12nm miscellaneous (1/ebx): process local APIC physical ID = 0x0 (0) cpu count = 0x20 (32) // <----- CLFLUSH line size = 0x8 (8) brand index = 0x0 (0) brand id = 0x00 (0): unknown feature information (1/edx): ... hyper-threading / multi-core supported = true // <----- ... feature information (1/ecx): ... ... $ $ cpuid | grep ^CPU | wc -l 32 $ $ /proc/cpuinfo flags: flags : ..... sse2 ht ..... $ Regards, Witold -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.2.0-3-amd64 (SMP w/32 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gdc-10 depends on: ii g++-10 10.1.0-1 ii gcc-10-base 10.1.0-1 ii libc6 2.30-7 ii libgmp10 2:6.2.0+dfsg-4 ii libgphobos-10-dev 10.1.0-1 ii libisl22 0.22.1-1 ii libmpc3 1.1.0-1 ii libmpfr6 4.0.2-1 ii libzstd1 1.4.4+dfsg-3 ii zlib1g 1:1.2.11.dfsg-2 gdc-10 recommends no packages. gdc-10 suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: gcc-10 Source-Version: 10.1.0-2 Done: Matthias Klose <[email protected]> We believe that the bug you reported is fixed in the latest version of gcc-10, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthias Klose <[email protected]> (supplier of updated gcc-10 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Fri, 15 May 2020 17:11:03 +0200 Source: gcc-10 Architecture: source Version: 10.1.0-2 Distribution: unstable Urgency: medium Maintainer: Debian GCC Maintainers <[email protected]> Changed-By: Matthias Klose <[email protected]> Closes: 960150 960270 Changes: gcc-10 (10.1.0-2) unstable; urgency=medium . * Update to git 20200515 from the gcc-10 branch. - Fix PR ipa/94947, PR c/95040, PR middle-end/94724, PR target/94950 (RISCV), PR target/94942 (x86), PR c/94968, PR c/94842, PR c++/95003, PR c++/94885, PR c++/94938, PR c++/94951, PR c++/94907, PR fortran/93497, PR fortran/94672, PR fortran/59107, PR libstdc++/94906, PR libstdc++/94933, PR libstdc++/92894. . [ Matthias Klose ] * Remove the unmaintained neon packaging bits. * Add build dependency on unzip to fix libphobos test failures. * libphobos: Fix issue 19861 - core.cpuid reports the wrong number of threads. Closes: #960150. * Build using GCC 10 on recent distro versions. * Fix gnat tests to find the libgnat_utils shared library. Closes: #960270. * Run the testsuite with the offload compilers installed into the temporary install location. * Don't require root for the temp installation of the offload compilers. * Use LLVM 10 for the amdgcn assembler and linker tools. * Don't override the libstdc++ test results when running the libstdc++ abi check. * Update debian/TODO, remove obsolete items, add some testsuite items. * Override some lintian warnings for snapshot builds. * Include jit test results into the summary and the gcc-test-results package. * Fix some lintian warnings. * Don't strip the target object files for the amdgcn offload build. * Stop building the libgcc compat packages for bullseye/sid. . [ Nicolas Boulenguez ] * Enable gnat autopkg tests. Checksums-Sha1: 70b838ce291bdf002fd362c3c68a4a15c5add6a3 27590 gcc-10_10.1.0-2.dsc 942c0bf2ba6b1650ee4636b370983fe81aea756f 2246236 gcc-10_10.1.0-2.debian.tar.xz f8417383d4c30bf86744ee060ff03924005cd9e4 10470 gcc-10_10.1.0-2_source.buildinfo Checksums-Sha256: a6aee296be4e5525bc9771a5e14f8ddef4f2d68b5ecf6959a2989c9df00e9a92 27590 gcc-10_10.1.0-2.dsc c34ed08a5487de0aebe6752e4f3134151f0c91f996adb33ed88e51671a9c09aa 2246236 gcc-10_10.1.0-2.debian.tar.xz f27336b35bac9edcf5231c387cf8c8ee94adbe7a90bcd6af8d05f441387b551f 10470 gcc-10_10.1.0-2_source.buildinfo Files: f26e01468549bbb02cc413e1db4f1f18 27590 devel optional gcc-10_10.1.0-2.dsc d3fedf6e616e55565057a9a5d016a08c 2246236 devel optional gcc-10_10.1.0-2.debian.tar.xz 75802e3c909cd2714f1ca8694d7ad795 10470 devel optional gcc-10_10.1.0-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAl6+sXgQHGRva29AZGVi aWFuLm9yZwAKCRC9fqpgd4+m9RonEADUbYV5KrtB7zKjisMxv3+YNpmTtNduWm2z ZhUMCGg69r31P6DHTjIYYFaUY5scXEV8bL3JGzr4Bicizb8edtLKeFZ2Bezcox0O QgiskracUIvD9oI1L+FvT7GKbUljLX2ThC4Drak7VWrPTVPAiqsL3NxX3RF1e8S7 gYOQAowEK/l9h+ClH0MB+l6Pg3d33x0HLCz6ql0wA8d4fFUkgR8HAHt4lQ+8ySwG ZnOVV8Ute7eNjcD+Es+qofYgZu30PHPiSMM5XN2aRMN1LLm6fPXG0J4Vu1CfxlXd wHXvYJ5Wuwe3XvpY+noB6HiOu8Awkp5P5reBiJ64S7Dgk89xJIu0McESZWr82UzA xdPEAqppw9Ckzulc0PzssgMuOhfFXOMoPdhSYWET8KYK9Z1mcsMcbkohfKiNUw4M 3kq43eSosBPPNOX2EidBs/W12SCOjIx/5oc2XUFH1SO1G3N61NEZ+YjnnJigdARS mBkWddIQN+wkwkO/AOpdaE/RT8dnk/4n6PP4Gj0NaTsv0rwaopUDnWiyYzT/IDjb 9tLuK/ahAVsl5DBqLQISvRSyDAwtZijVG1Zh1+63Y7AqAaHySTsN4uKLhFH2nmey gaLnA43jZjUBmyYaJIbk/9+lYg7eW5ht3i4jFg0ulzQIvgGnc4c/RWfnjsXtOR+z ZOVnXeYjtQ== =+hjN -----END PGP SIGNATURE-----
--- End Message ---

