Using multiple (nested) composites and the @parallel annotation. A couple of the composites should have similar parallel sections (same width). The main program has a submission time parameter $wide = getSubmissionTimeValue("wide"). Then later uses $wide in a parameter to the two composites (call them C1, C2) that reference it in the @parallel(width=$wide).
When I try to run the program, it insists that I have two separate submission time parameters - although both are called as wide=$wide from the main composite.
Something seems wrong here - is this supposed to happen? It doesn't happen when I use the submission time parameter in any other way - just with the @parallel annotation.
BruceGlassford,
Can you provide an example code snippet?
Jeff C.
Answer by hnasgaard (1441) | Feb 20, 2014 at 05:45 PM
Here is sample code that you can compile as standalone, then execute "standalone -h" The required arguments are: [Comp1.]width, [Comp2.]width. This is correct, although certainly not optimal. We'll see if we can improve it.
composite Main {
param expression<int32> $width : (int32)getSubmissionTimeValue("width");
graph
stream<int32 i> Beat = Beacon() {
}
() as C1 = Comp1(Beat) {
param width : $width;
}
() as C2 = Comp2(Beat) {
param width : $width;
}
}
composite Comp1(input I) {
param expression<int32> $width;
graph
@parallel(width=$width)
() as Out = Custom(I) {
}
}
composite Comp2(input I) {
param expression<int32> $width;
graph
@parallel(width=$width)
() as Out = Custom(I) {
}
}
Can STP file be converted to an SPL? And can an STP file be deployed on Streams running on-prem? 2 Answers
spl-make-doc generates CDISP7102E without --suppress-reference-docs 1 Answer
Streams Studio freezing during build process 3 Answers
How after read CSV file insert each record in map as key and value in my spl application?? 2 Answers