search for: quantum_reg

Displaying 7 results from an estimated 7 matches for "quantum_reg".

2016 Dec 14
0
Enabling scalarized conditional stores in the loop vectorizer
...e snippet (libquantum-like) with –enable-cond-stores-vec ? I ask because I don’t see vectorization kicking in unless -force-vector-width=<> is specified. Let me know if I am missing something. -Thx struct nodeTy { unsigned int c1; unsigned int c2; unsigned int state; }; struct quantum_reg { struct nodeTy node[32]; unsigned int size; }; void quantum_toffoli(int control1, int control2, int target, struct quantum_reg *reg, int n) { int i; int N = reg->size; for(i=0; i < N; i++) { if(reg->node[i].state & ((unsigned int)1 << contr...
2016 Dec 14
2
Enabling scalarized conditional stores in the loop vectorizer
...nless -force-vector-width=<> is specified. Let me know if I am missing > something. > > > > -Thx > > > > struct nodeTy > > { > > unsigned int c1; > > unsigned int c2; > > unsigned int state; > > }; > > > > struct quantum_reg > > { > > struct nodeTy node[32]; > > unsigned int size; > > }; > > > > void > > quantum_toffoli(int control1, int control2, int target, struct quantum_reg > *reg, int n) > > { > > int i; > > > > int N = reg->...
2016 Dec 14
4
Enabling scalarized conditional stores in the loop vectorizer
...nless -force-vector-width=<> is specified. Let me know if I am missing > something. > > > > -Thx > > > > struct nodeTy > > { > > unsigned int c1; > > unsigned int c2; > > unsigned int state; > > }; > > > > struct quantum_reg > > { > > struct nodeTy node[32]; > > unsigned int size; > > }; > > > > void > > quantum_toffoli(int control1, int control2, int target, struct quantum_reg > *reg, int n) > > { > > int i; > > > > int N = reg->...
2016 Dec 14
0
Enabling scalarized conditional stores in the loop vectorizer
...e snippet (libquantum-like) with –enable-cond-stores-vec ? I ask because I don’t see vectorization kicking in unless -force-vector-width=<> is specified. Let me know if I am missing something. -Thx struct nodeTy { unsigned int c1; unsigned int c2; unsigned int state; }; struct quantum_reg { struct nodeTy node[32]; unsigned int size; }; void quantum_toffoli(int control1, int control2, int target, struct quantum_reg *reg, int n) { int i; int N = reg->size; for(i=0; i < N; i++) { if(reg->node[i].state & ((unsigned int)1 << contr...
2016 Dec 15
0
Enabling scalarized conditional stores in the loop vectorizer
...ing. >> >> >> >> -Thx >> >> >> >> struct nodeTy >> >> { >> >> unsigned int c1; >> >> unsigned int c2; >> >> unsigned int state; >> >> }; >> >> >> >> struct quantum_reg >> >> { >> >> struct nodeTy node[32]; >> >> unsigned int size; >> >> }; >> >> >> >> void >> >> quantum_toffoli(int control1, int control2, int target, struct >> quantum_reg *reg, int n) >> >&g...
2016 Dec 15
0
Enabling scalarized conditional stores in the loop vectorizer
...e snippet (libquantum-like) with –enable-cond-stores-vec ? I ask because I don’t see vectorization kicking in unless -force-vector-width=<> is specified. Let me know if I am missing something. -Thx struct nodeTy { unsigned int c1; unsigned int c2; unsigned int state; }; struct quantum_reg { struct nodeTy node[32]; unsigned int size; }; void quantum_toffoli(int control1, int control2, int target, struct quantum_reg *reg, int n) { int i; int N = reg->size; for(i=0; i < N; i++) { if(reg->node[i].state & ((unsigned int)1 << contr...
2016 Dec 13
4
Enabling scalarized conditional stores in the loop vectorizer
Hi Michael, Thanks for testing this on your benchmarks and target. I think the results will help guide the direction we go. I tested the feature with spec2k/2k6 on AArch64/Kryo and saw minor performance swings, aside from a large (30%) improvement in spec2k6/libquantum. The primary loop in that benchmark has a conditional store, so I expected it to benefit. Regarding the cost model, I think the