Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4921

General • Re: Multicore optimisations and memory use

$
0
0

it could also be loop unrolling for smaller array sizes (if you loop over the whole array) this will make your code bigger.

You can put

Code:

#pragma GCC unroll 0for (...) {}
on such a loop, and see if that helps
I just tried this, and it doesn’t seem to help, so it must be else where in the code. I’ll just have to keep the Array at 32 places and reduce the amount of iterations it can do in the rest of the code as you suggested for now!
Will be interesting to see if this helps, since the smaller loop iteration count may be what gets GCC all excited about "improving" the code!

Statistics: Posted by kilograham — Thu Jan 02, 2025 5:25 pm



Viewing all articles
Browse latest Browse all 4921

Trending Articles