Skip to content

Commit 002e2dc

Browse files
committed
Added some DFEP footnotes
1 parent 7d01e03 commit 002e2dc

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

capture.tex

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
A spawn capture allows a spawn statement
77
to make a copy of a variable
88
prior to the start of asynchronous execution.
9+
\footnote{DFEP:
10+
This corresponds to the
11+
\tcode{firstprivate}
12+
clause of OpenMP.
13+
Cilk has no corresponding feature;
14+
it isn't needed, because only a function-call can be spawned,
15+
and arguments are guaranteed to be evaluated before the spawn happens.
16+
}
917
A reduction capture allows a task block or parallel loop
1018
to temporarily associate a reduction object
1119
with an existing object,

reduction.tex

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
and an associated combiner operation,
1111
along with other optional aspects,
1212
to support common parallel computations.
13+
\footnote{DFEP:
14+
In OpenMP,
15+
reductions are expressed using clauses referring to variables,
16+
not using specific types.
17+
In Cilk,
18+
reductions are expressed using reduction types,
19+
which are class types in C++;
20+
in C, they are composed using macros.
21+
}
1322

1423
\pnum
1524
Attempting to access an object with reduction type
@@ -23,6 +32,11 @@
2332
is in a new syntactic category for qualifiers of function types.
2433
It can be used to write functions that can spawn tasks
2534
and return while some of those tasks are still running.
35+
\footnote{DFEP:
36+
Cilk does not have this capability.
37+
In OpenMP, this can be done implicitly,
38+
without annotating the function.
39+
}
2640

2741
\sclause{Reduction specifiers}
2842
\ssclause*{Syntax}

0 commit comments

Comments
 (0)