提交 1ea81296 authored 作者: Laurent Dinh's avatar Laurent Dinh

Fix optimization

上级 213f1f02
......@@ -471,7 +471,7 @@ KERNEL void k_multi_warp_multinomial_wor(
nb_threads2[1] = 1;
// If we can't schedule enough threads parallelize the renormalization.
// I do this because we don't always use those extra threads.
if ((nb_threads * nb_blocks < 2048) && %(replace)d )
if ((nb_threads * nb_blocks < 2048) && ! %(replace)d )
nb_threads2[1] = 1024 / nb_threads;
nb_blocks2[0] = nb_blocks;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论