Re: [eigen] Automatic cache and block size determination

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,



On Tue, 22 Jun 2010 00:46:22 +0200, Thomas Capricelli



> I guess there is a very small runtime cost of 'checking if the cache

sizes

> have already been computed' for every product, right ?

> And also, computation involving cache sizes were previously done at

> compile time and not anymore.. ? Nothing to worry about ? 



If possible, it would be best to have a #define L2_CACHE_SIZE that would

default to

a runtime query at static initialization time but could be set when

compiling.



When set at compile time, a typed value (as in [0]) would enable meta

programming unrolling, 

when set at runtime doing it at static initialization time would avoid

polluting other code

 with a check run only once.



My .2€



Best regards,



Bernard



[0] http://www.boost.org/doc/libs/1_43_0/libs/mpl/doc/refmanual/int.html



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/