Re: Detection of hadware feature => please do not use signal
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Bastien Roucariès <rouca@debian.org>, pgsql-bugs@lists.postgresql.org
Date: 2024-11-27T19:57:03Z
Lists: pgsql-bugs
I wrote: > Early returns are that they're all picking the +simd option, and > seem to be just as happy with that as they were without it. > I wonder if we could just drop the "without" probe altogether. > It'd save some configure cycles for other platforms (since they'll > fruitlessly run through all of these tests). Now that we have a nearly-complete census of the buildfarm, the end result is that they are all happy with the +simd spelling ... except for one. "gull" rejects it: clang: error: unsupported argument 'armv8-a+crc+simd' to option '-march=' But without +simd it's okay, so removing the other spelling would cause a performance regression on that machine. I find this a bit surprising, because gull is using a reasonably recent compiler (clang version 17.0.4). We have much older clang versions that accept +simd --- but they are all aarch64. gull seems to be our only representative of clang on arm32. So this seems like a gcc vs clang difference that we'll have to put up with. Anyway, I think this thread is now closed: nothing more to do unless someone thinks of a platform we need more bespoke code for. regards, tom lane
Commits
-
Update configure probes for CFLAGS needed for ARM CRC instructions.
- e266a0ed67d2 17.3 landed
- 851c6ff18fd3 15.11 landed
- 5980f1884fc9 18.0 landed
- 32057a0f791e 13.19 landed
- 2fc0199a5015 14.16 landed
- 1f4aadec41b8 16.7 landed
-
Support runtime CRC feature probing on NetBSD/ARM using sysctl().
- 4570b22666dd 18.0 landed
-
Use auxv to check for CRC32 instructions on ARM.
- aac831cafa6f 18.0 landed
-
Improve our method for probing the availability of ARM CRC instructions.
- 1c72ec6f4989 11.0 cited