OpenBLAS icon indicating copy to clipboard operation
OpenBLAS copied to clipboard

Make it work on general MIPS64 processors

Open FlyGoat opened this issue 3 years ago • 3 comments

This PR addressed some build failures for ARCH_MIPS64, also provide a MIPS64_GENERIC target so we should be able to use OpenBLAS on Cavium processors.

FlyGoat avatar Aug 08 '22 14:08 FlyGoat

Thanks - I have an Octeon3 patch lying around that I had meant to add "soon", but it does not really have much if anything Cavium-specific in it. (It should be possible to build on MIPS64 with TARGET=GENERIC already, but I suspect that would currently produce a 32bit build, might need to re-check that)

martin-frbg avatar Aug 10 '22 09:08 martin-frbg

getarch still returns UNKNOWN cpu rather than your MIPS64_GENERIC type with this patch on Octeon

martin-frbg avatar Aug 11 '22 19:08 martin-frbg

getarch still returns UNKNOWN cpu rather than your MIPS64_GENERIC type with this patch on Octeon

Fixed. We can safely assume all Linux MIPS system is safe to run MIPS64_GENERIC.

FlyGoat avatar Aug 12 '22 12:08 FlyGoat

now that I have merged this, I am wondering if there isn't considerable overlap with the venerable SICORTEX target, maybe that is the effectively generic target I remembered ?

martin-frbg avatar Aug 19 '22 20:08 martin-frbg

now that I have merged this, I am wondering if there isn't considerable overlap with the venerable SICORTEX target, maybe that is the effectively generic target I remembered ?

Yeah probably… Though I can’t spot fallback to SICORTEX in code.

FlyGoat avatar Aug 19 '22 20:08 FlyGoat

cpuid_mips64 does it when there is a model name in /proc/cpuinfo that does not match any of the Loongson types. seems on your machine there is no model name entry in cpuinfo ? the octeon I used for testing is running BSD, I'll need to dig out my own (early octeon3 running linux) to check

martin-frbg avatar Aug 19 '22 21:08 martin-frbg