unroll Questions

3

Solved

How can I tell GCC to unroll a particular loop? I have used the CUDA SDK where loops can be unrolled manually using #pragma unroll. Is there a similar feature for gcc? I googled a bit but could not...
Puklich asked 1/11, 2010 at 18:1

2

Solved

A relatively simple question, but the answer seems to have eluded me. Currently, I have a data frame which looks similar to this: 0 0 0 1 1 0 1 0 1 1 2 1 1 0 3 I'm trying to turn this into a sin...
Autoionization asked 13/8, 2015 at 13:12

1

Solved

I have a code and I want to put method invocation value in the name of the method. @Unroll def 'check #file other text'() { setup: def file = allProperties.keySet().getAt(0) ... where: ... ...
Useful asked 18/5, 2015 at 15:18

1

Solved

I'm trying to assess the performance differences between OpenCL for AMD .I have kernel for hough transfrom in the kernel i have two #pragma unroll statements when run the kernel not produce any spe...
Lehmbruck asked 5/11, 2013 at 9:37

2

Solved

given e.g: scala> def pipes(strings:String*) = strings.toList.mkString("|") which I can call normally: scala> pipes("foo", "bar") res1: String = foo|bar or with a splat: scala> val ...
Duel asked 13/4, 2011 at 12:44

1

Solved

I have following code using loop unrolling: #pragma unroll for (int i=0;i<n;i++) { .... } here if n is a defined constant, everything works fine. However, if n is a variable, performance dra...
Damalas asked 31/3, 2011 at 5:23

1

Solved

Say I have a loop that looks like this: for(int i = 0; i < 10000; i++) { /* Do something computationally expensive */ if (i < 200 && !(i%20)) { /* Do something else */ } } wher...
Limpkin asked 16/2, 2011 at 14:42
1

© 2022 - 2024 — McMap. All rights reserved.