cpuminer icon indicating copy to clipboard operation
cpuminer copied to clipboard

Aarch64 scrypt ASM

Open Diatrus opened this issue 4 years ago • 2 comments

It would be beneficial with the introduction of arm64 Macs to add native scrypt code for aarch64.

Diatrus avatar Mar 16 '21 07:03 Diatrus

Yes because building cpuminer 2.5.1 on Apple Silicon currently fails with:

Undefined symbols for architecture arm64:
  "_sha256_init_4way", referenced from:
      _scanhash_scrypt in minerd-scrypt.o
  "_sha256_transform_4way", referenced from:
      _scanhash_scrypt in minerd-scrypt.o
  "_sha256_use_4way", referenced from:
      _scanhash_sha256d in minerd-sha2.o
      _scanhash_scrypt in minerd-scrypt.o
  "_sha256d_ms_4way", referenced from:
      _scanhash_sha256d in minerd-sha2.o
ld: symbol(s) not found for architecture arm64

ryandesign avatar Aug 01 '21 23:08 ryandesign

https://simd-everywhere.github.io/blog/2020/06/22/transitioning-to-arm-with-simde.html

This should make it rather easy to support Intel and Apple M1?

risner avatar Aug 17 '21 11:08 risner