Questions tagged [unroll]
27 questions
1
vote
3 answers
Unrolling Loops (C)
I understand the concept of unrolling loops however, can someone explain to me how to unroll a simple loop?
It would be great if you would show me a loop, and then a unrolled version of that loop with explanations of what is happening.

J-Rock
- 27
- 1
- 3
1
vote
1 answer
Using llvm do loop unrolling, failed at spliting block
I am doing llvm for some basic loop transformation practice.
The target loop I want to transform is as following:
int main ()
{
int j=0,i=0;
int x[100][5000] = {0};
for (i = 0; i < 100; i = i+1){
for (j = 0; j < 5000; j =…

Chang May
- 165
- 1
- 10
1
vote
1 answer
unroll loops in an AMD OpenCL kernel
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 speedup
kernel void hough_circle(read_only image2d_t…

user2933632
- 35
- 7
0
votes
0 answers
Import Multiple Payloads with Dynamic Unroll By in ADF dataflow
The example payloads all have unique keys "/", "/10/101", "/10/12345/AB/100001". For each payload (Cosmos container items) my goal is to send id, item_description and delete to one SQL table and id, linktype (linktype = https://test/testIdeas),…

Hoop
- 3
- 2
0
votes
1 answer
Can the Flatten activity in ADF data flow handle dynamic unroll by
I'm importing items from Cosmos db, however each item can potentially have a different schema structure. Below are a few examples of how they could look.
Ex.1
{
"id": "01-000008",
"pKey": "000008",
"delete": false,
"/": {
"fwqs":…

Hoop
- 3
- 2
0
votes
2 answers
Spock Unroll seems to print something odd with boolean parameter
I just put this test method together:
@Unroll
def 'super start edit should be called if cell is not empty'( boolean empty ){
given:
DueDateEditor editor = GroovySpy( DueDateEditor ){
isEmpty() >> empty
}
when:
…

mike rodent
- 14,126
- 11
- 103
- 157
0
votes
1 answer
SpockExecutionException: Data provider has no data
I've done a bunch of searching and, while I've found a few hits, like Why does Spock think my Data Provider has no data?, none of them seem to be very helpful.
I've only done a data provider a couple of times, but it seems perfect for this. I have…

Thom
- 14,013
- 25
- 105
- 185
0
votes
1 answer
How to implement Spock Parameterized test best practice?
I have a test spec, which can be run with a unique data set. The best practice for this is a bit unclear. How should the code below be modified to run with:
@Stepwise
class marktest extends ShopBootStrap {
private boolean useProductionUrl =…

webcrew
- 157
- 2
- 12
0
votes
1 answer
Optimal block size for unrolled linked lists
I'm learning about basic data structures and so far have got to unrolled linked lists. A book I have says that if I make the number of elements in each block sized at most to the size of one cache line I will get better cache performance from the…

Austin
- 6,921
- 12
- 73
- 138
0
votes
1 answer
Unrolling list into function args?
Given an argument list and a two-arity function:
args = [5, 6]
f = ((y,z)->y*z)
How do I unroll args into function arguments? - E.g. in Python you can do: f(*args).
What I've tried (more JavaScript style I suppose):
Function.call.apply(f, args)
#…

A T
- 13,008
- 21
- 97
- 158
0
votes
1 answer
How can I unroll callbacks in Coffeescript?
Normally in Javascript I can do something like this:
var step;
determineStep();
function determineStep() {
step = 'A';
asyncCallbackA(function(result)) {
if (result.testForB) performB();
});
}
function performB() {
step =…

Brennan Cheung
- 4,271
- 4
- 30
- 29
0
votes
0 answers
OpenGL "optimizing" uniform variable
I have a uniform variable called control_count (count of the control points in a bezier curve). In the marked part in my code, if I replace the constant 4 with this variable, it's just stops working, if it's 4 it's working fine. The variable must…

Ferenc Dajka
- 1,052
- 3
- 17
- 45