tracy
tracy copied to clipboard
tracy-profiler Illegal instruction without AVX2
Hello. I found this bug here https://bugs.launchpad.net/ubuntu/+source/tracy/+bug/2101117 "I installed tracy-profiler on 2 PC: 1st with AMD A6-5200 CPU, 2nd - with Intel Core i5-3450. I'm getting:
$ tracy-profiler Illegal instruction (core dumped)"
https://launchpadlibrarian.net/780536758/ProcCpuinfoMinimal.txt
Obviously, processor features are detectable https://www.aussieai.com/book/ch16-detecting-cpu-acceleration
#if AVX2 // ... supports AVX2 #endif
MSVS: __cpuid or __cpuidex (superseding __isa_available in <isa_availability.h>) GCC/Clang: __builtin_cpu_supports or __builtin_cpu_is functions