Open
Description
Tell us about your request
docker run --cpu-flags
or docker run --cpu-disable-flags
allow to disable cpu flags
Which service(s) is this request for?
docker run
Why Is Needed
Macbook pro max m1 - inside of docker
lscpu | grep Flags
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp flagm2 frint
Macbook pro max m1 - inside of docker
lscpu | grep Flags
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 flagm2 frint svei8mm svebf16 bf16 afp sme
Compare table
Flag | M4 | M1 |
---|---|---|
fp | ✅ | ✅ |
asimd | ✅ | ✅ |
evtstrm | ✅ | ✅ |
aes | ✅ | ✅ |
pmull | ✅ | ✅ |
sha1 | ✅ | ✅ |
sha2 | ✅ | ✅ |
crc32 | ✅ | ✅ |
atomics | ✅ | ✅ |
fphp | ✅ | ✅ |
asimdhp | ✅ | ✅ |
cpuid | ✅ | ✅ |
asimdrdm | ✅ | ✅ |
jscvt | ✅ | ✅ |
fcma | ✅ | ✅ |
lrcpc | ✅ | ✅ |
dcpop | ✅ | ✅ |
sha3 | ✅ | ✅ |
asimddp | ✅ | ✅ |
sha512 | ✅ | ✅ |
asimdfhm | ✅ | ✅ |
dit | ✅ | ✅ |
uscat | ✅ | ✅ |
ilrcpc | ✅ | ✅ |
flagm | ✅ | ✅ |
sb | ✅ | ✅ |
paca | ✅ | ✅ |
pacg | ✅ | ✅ |
dcpodp | ✅ | ✅ |
sve2 | ✅ | ❌ |
flagm2 | ✅ | ✅ |
frint | ✅ | ✅ |
svei8mm | ✅ | ❌ |
svebf16 | ✅ | ❌ |
bf16 | ✅ | ❌ |
afp | ✅ | ❌ |
sme | ✅ | ❌ |
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
- tensorflow have
illegal instruction
errors in on the docker withmacbook m4
because of the extra flags - will fix GDB Error: Unable to Fetch SVE/SSVE Vector Length ("Invalid Argument") on Docker - Ubuntu - Apple M4 for-mac#7539
Are you currently working around the issue?
I am trying to solve this in the os level or the tensorflow level but without success for now
Activity