[go-nuts] Re: Disable AVX, AVX2, AVX-512, SSE support while building a go binary
After reading the documentation I have to correct. GO386 supports the softfloat option to support older processors which don't support SSE2. Information can be found here: https://github.com/golang/go/wiki/MinimumRequirements#386 On Friday, April 7, 2023 at 8:22:14 AM UTC+2 Uli Kunitz wrote: > Note that SSE2 is not optional and is used for floating point operations > on 386 and AMD64. Before 1.16 there has been a GO386 option that supported > 387 instructions but it has been removed. GOAMD64 has no influence on it. > > On Thursday, April 6, 2023 at 7:18:03 AM UTC+2 aditi sinha wrote: > >> Hi >> >> I want to build a simple go binary that prints "hello world" but disablesthe >> use of all optional instruction set extensions e.g disable AVX, AVX2, >> AVX-512, SSE support . >> >> Thanks >> Aditi >> > -- 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/da82065f-10f1-4447-9063-78d5c306feafn%40googlegroups.com.
[go-nuts] Re: Disable AVX, AVX2, AVX-512, SSE support while building a go binary
Note that SSE2 is not optional and is used for floating point operations on 386 and AMD64. Before 1.16 there has been a GO386 option that supported 387 instructions but it has been removed. GOAMD64 has no influence on it. On Thursday, April 6, 2023 at 7:18:03 AM UTC+2 aditi sinha wrote: > Hi > > I want to build a simple go binary that prints "hello world" but disablesthe > use of all optional instruction set extensions e.g disable AVX, AVX2, > AVX-512, SSE support . > > Thanks > Aditi > -- 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/3bf8d473-f6d5-4ce2-afe5-4411c6be9c50n%40googlegroups.com.
Re: [go-nuts] Interesting "select" examples
On Mon, 2023-04-03 at 14:59 -0700, Skip Tavakkolian wrote: > Nice pause/resume. I'll need to remember this. > > On Mon, Apr 3, 2023 at 3:14 AM Rob Pike wrote: > > > > Here's an excerpt from a piece of concurrent code I like, an > > unpublished interactive game of life. The select near the bottom > > has only two cases but it is perhaps instructive. I leave its > > analysis to the reader. > > > > -rob I needed something just like this recently for pausing/un-pausing graphic animation to swap out animated graphics while keeping frame position, and allowing cancellation. It doesn't use a single channel of events to drive the pause behaviour because pause is not a toggle in this system (for safety), so it's less elegant in that sense, but it does require the consideration of the hold, release and the context.Done chans. https://go.dev/play/p/uyuP94Tvi50 -- 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/a61d6a9201ef9750bc1287e2122a654e67dc3272.camel%40kortschak.io.
[go-nuts] Re: Disable AVX, AVX2, AVX-512, SSE support while building a go binary
See https://github.com/golang/go/wiki/MinimumRequirements#amd64 The default is GOAMD64=v1 so the fancy extensions are disabled by default (or guarded). On Thursday, 6 April 2023 at 06:18:03 UTC+1 aditi sinha wrote: > Hi > > I want to build a simple go binary that prints "hello world" but disablesthe > use of all optional instruction set extensions e.g disable AVX, AVX2, > AVX-512, SSE support . > > Thanks > Aditi > -- 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/9e1e9057-b442-49bb-9f26-c5a7b9c9f7c0n%40googlegroups.com.