typo in spec-samples

typo in spec-samples

Hi,I'm trying various sample codes in ArBB beta and found a typo in spec-samples.--- a/misc/spec-samples/permuteSample.cpp+++ b/misc/spec-samples/permuteSample.cpp@@ -527,7 +527,7 @@ void shuffle_001()void arbb_shuffle_002(dense src1Vec, dense src2Vec, dense& dstVec){- const usize grain(1);+ const usize grain(2); dstVec = shuffle(src1Vec, src2Vec, grain);}currently, arbb_shuffle_002 yields the same result as arbb_shuffle_001, which doesn't make sense.Thanks,Ken

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Hi Ken,

You are right! It is indeed a typo on line 530 of permuteSample.cpp. To correct the problem, you need to replace:

const usize grain(1);

with

const usize grain(2);

Thank you very much for catching this problem. We will update the sample code in a future releae to fix it.

Best,
Zhang

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya