math-atlas / math-atlas

Automatically Tuned Linear Algebra Software (ATLAS)
http://math-atlas.sourceforge.net/
Other
173 stars 37 forks source link

atlas_cache.h causing problems when building on Cortex-A53 #79

Open cecetaca opened 5 years ago

cecetaca commented 5 years ago

Hi,

I haven't been able to build any ATLAS version beyond 3.10 on my Cortex-A53. Older stable versions do work. During the build step, I keep coming across this error:

L1 SIZE DETECTED AS 0 for all cores. xcachesrch: /u/home/tamaritc/atlasgit/math-atlas-master/test/ATLAS/build/..//tune/sysinfo/cachesrch.c:522: goToTown: Assertion `l1sz' failed. Makefile:110: recipe for target 'res/atlas_cache.h' failed make[3]: [res/atlas_cache.h] Aborted make[3]: Leaving directory '/u/home/tamaritc/atlasgit/math-atlas-master/test/ATLAS/build/tune/sysinfo' Makefile:193: recipe for target 'IStage1' failed make[2]: [IStage1] Error 2 make[2]: Leaving directory '/u/home/tamaritc/atlasgit/math-atlas-master/test/ATLAS/build/bin' ERROR 613 DURING FPU PROBE!!.

Could anyone help me proceed beyond it as suggested by @rcwhaley in the old mailing list? (https://sourceforge.net/p/math-atlas/mailman/math-atlas-announce/?viewmonth=201810)

Thanks in advance!

rcwhaley commented 5 years ago

I have a cortex A53, so I may be able to provide some arch defs here soon.

In the meantime, you can get around this install error by manually filling in your cache info in the tune/sysinfo directory.

Do you know the sizes of your L1 & L2 caches for this chip?

cecetaca commented 5 years ago

Hi, thank you for your quick reply.

It is an Odroid-C2. If I am not mistaken, the L1 caches are 32KB and the L2 is 512KB. I gather that what I should do is hardcode the value of the L1Size variable in the main() function of L1CacheSize.c, and comment out whatever is not needed, so I'll try and do that for the moment.

Thanks again!

cecetaca commented 5 years ago

I was able to skip that error following your advice and modifying cachesrch.c, but now it fails hours later, in the recipe for target 'res/dgAMMRES.sum'.

ERROR 821 DURING ACCESS-MAJOR MATMUL TUNE!!. CHECK INSTALL_LOG/dAMMTUNE.LOG FOR DETAILS.

ERROR.LOG is empty and the details in dAMMTUNE.LOG are the same as what I just told you, that recipe for target 'res/dgAMMRES.sum' failed.

Sorry to bother you, but any ideas? Thank you.