Is it possible to make this work:
if X 3 or 10 then ...
of course it would be shorthand for: if (X3) or (X10) then
I suppose also it would be possible then to do:
if X 3 or -1 or = 4000 or = 100 then...
Not likely. See e.g. the FAQ about extensions:
I don't suppose that anybody will start implementing real parallel loops
like suggested on the wiki page any time soon.
The examples are very artificial to demonstrate the problems.
Some real world examples / tutorials should be added on a new page. Parallel
algorithms are seldom taught
Andrew Haines wrote:
Hi,
Is it possible to make this work:
if X 3 or 10 then ...
of course it would be shorthand for: if (X3) or (X10) then
The or operator is stronger than the operator by definition. This
can't be changed.
In C we have a logical or (||) and a binary or (|), as
Mattias Gärtner schrieb:
Zitat von Michael Schnell [EMAIL PROTECTED]:
Think about the alternative: It is much harder to implement the same
parallel loop with TThread. So OpenMP makes parallel loops much easier
to implement. For me this is the 'Delphi' way: Makes things easy and
readable.
Op Tue, 11 Dec 2007, schreef Florian Klaempfl:
Mattias Gärtner schrieb:
Zitat von Michael Schnell [EMAIL PROTECTED]:
Think about the alternative: It is much harder to implement the same
parallel loop with TThread. So OpenMP makes parallel loops much easier
to implement. For me this
For me the whole OpenMP approach is really artifical, I don't see a real
use in real world code for it honestly
IMHO, it _would_ be nice to do a matrix multiplication like this (or
according to proposal 2 with parallel for):
procedure MultMatrix(const mr, m1, m2: TMatrix;);
var
ll:
Hi,
Do I need to set IsMultiThread variable or does it get done
automatically by FPC?
Regards,
- Graeme -
___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Michael Schnell wrote:
Andrew Haines wrote:
Is it possible to make this work:
if X 3 or 10 then ...
of course it would be shorthand for: if (X3) or (X10) then
The or operator is stronger than the operator by definition. This
can't be changed.
In C we have a logical or (||) and a
Florian Klaempfl wrote:
It is common in the scientistware I benchmark daily. The evil geniuses
parallelize their applications by placing a some OpenMP hints in their
source code.
Yes, but only some loops. But just imagine how OpenMP could help in
parallelization of the compiler? It can't
Op Tue, 11 Dec 2007, schreef Mark Morgan Lloyd:
Florian Klaempfl wrote:
It is common in the scientistware I benchmark daily. The evil
geniuses parallelize their applications by placing a some OpenMP
hints in their source code.
Yes, but only some loops. But just imagine how
On Tue, 11 Dec 2007 19:24:59 +0100 (CET)
Daniël Mantione [EMAIL PROTECTED] wrote:
Op Tue, 11 Dec 2007, schreef Mark Morgan Lloyd:
Florian Klaempfl wrote:
It is common in the scientistware I benchmark daily. The evil
geniuses parallelize their applications by placing a some
On Tuesday 11 December 2007 10:04, Michael Schnell wrote:
Andrew Haines wrote:
Hi,
Is it possible to make this work:
if X 3 or 10 then ...
of course it would be shorthand for: if (X3) or (X10) then
The or operator is stronger than the operator by definition.
This can't
Vinzent Hoefler schrieb:
On Tuesday 11 December 2007 10:04, Michael Schnell wrote:
Andrew Haines wrote:
Hi,
Is it possible to make this work:
if X 3 or 10 then ...
of course it would be shorthand for: if (X3) or (X10) then
The or operator is stronger than the operator by
13 matches
Mail list logo