Natti wrote:
Broken89 wrote:
Any chance that Cortex Command will ever be optimized for multiple cores?
Propably not, it would require so much coding and Data doesn't have time for that.
It doesn't really require much of any extra coding. Using pricey compilers, such as the Intel C/C++ compiler with
OpenMP support, would enable them to easily take advantage of multiple cores with a simple directive before their logic loops. So your answer is correct but your reason is wrong.
IE: This would take 100% time on a single core machine, which I am sure no longer exist, or 25% of the time for a quad core, or even 12.5% with a new Sandy Bridge i7. And note that the single #pragma is
all that is required to make that multi-threaded.
Code:
#pragma omp parallel for
int i, a[50000];
for (i = 0; i < 50000; i++)
a[i] = 2 * i;