"O3" structure copy

"O3" structure copy

Did you know that this...

void my_copy(T &Out, const T &In)
{
Out = In;
}
void my_call(dense &Out, const dense &In)
{
map(my_copy)(Out, In);
}

...runs faster with extra cores than this...

void my_call(dense &Out, const dense &In)
{
Out = In;
}

...which doesn't speed up at all, even though these do the same thing.

- paul

3 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Paul thanks - we're checking into it.

--Amanda

Paul,

We've confirmed this issue and are working on a fix. Thanks for reporting it.
--Amanda

发表评论

登录添加评论。还不是成员?立即加入