Thanks! > > go version go version go1.12.5 linux/amd64 > GODEBUG=cpu.avx=off go build hello.go > objdump -d hello | grep '%ymm' 4021bd: c5 fe 6f 16 vmovdqu (%rsi),%ymm2 4021c1: c5 fe 6f 1f vmovdqu (%rdi),%ymm3 4021c5: c5 fe 6f 66 20 vmovdqu 0x20(%rsi),%ymm4
> GODEBUG=cpu.avx=off,cpu.avx2=off go build hello.go > objdump -d hello | grep '%ymm' |head 4021bd: c5 fe 6f 16 vmovdqu (%rsi),%ymm2 4021c1: c5 fe 6f 1f vmovdqu (%rdi),%ymm3 4021c5: c5 fe 6f 66 20 vmovdqu 0x20(%rsi),%ymm4 4021ca: c5 fe 6f 6f 20 vmovdqu 0x20(%rdi),%ymm5 but the sledgehammer GOARCH=386 does work > GOARCH=386 go build hello.go > objdump -d hello | grep '%ymm' > I'll keep digging. - Amnon On Tuesday, 14 May 2019 14:30:32 UTC+1, Ian Lance Taylor wrote: > > On Tue, May 14, 2019 at 2:18 AM Amnon Baron Cohen <amn...@gmail.com > <javascript:>> wrote: > > > > I am trying to avoid running any AVX instructions in order to prevent > Intel's dynamic frequency scaling > > reducing my CPU base frequency. > > You should be able to avoid AVX instructions at runtime by setting the > environment variable GODEBUG=cpu.avx=off. For the complete list of > available GODEBUG=cpu options available on amd64 see the options > variable in internal/cpu/cpu_x86.go. > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/eff9890f-db33-499e-b6ce-f449fdfa49db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.