minio / sha256-simd

Accelerate SHA256 computations in pure Go using AVX512, SHA Extensions for x86 and ARM64 for ARM. On AVX512 it provides an up to 8x improvement (over 3 GB/s per core). SHA Extensions give a performance boost of close to 4x over native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't compile in Go Playground

magik6k opened this issue · comments

The Go playground now supports third party imports. Trying to use this library unfortunately doesn't work: https://play.golang.org/p/dxVX1UIgUif

go: finding github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5
go: downloading github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5
go: extracting github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5
# github.com/minio/sha256-simd
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/cpuid.go:30:14: undefined: haveArmSha
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/cpuid.go:50:18: undefined: cpuid
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/cpuid.go:53:17: undefined: cpuid
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/cpuid.go:68:17: undefined: cpuid
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/cpuid.go:87:11: undefined: xgetbv
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/sha256.go:280:3: undefined: blockShaGo
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/sha256.go:282:3: undefined: blockAvx2Go
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/sha256.go:284:3: undefined: blockAvxGo
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/sha256.go:286:3: undefined: blockSsseGo
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/sha256.go:288:3: undefined: blockArmGo
../gopath241185375/pkg/mod/github.com/minio/sha256-simd@v0.0.0-20190328051042-05b4dd3047e5/sha256.go:288:3: too many errors

Go playground is not where this library is supported, please use a real system.