Now Eiffel SCOOP is supported by eiffelstudio, but I do not know how
to use it!
I have two classes in my program:
class PF_HP
--
-- The "Proteinfolding in HP-Model" for Eiffel :-)
--
-- To compile type command : ec -config pf_hp.ecf
-- Run with command : ./pf_hp
--
--
--
create
make
feature --Queries:
-- n : NONE;
grid: separate GRID;
...
And:
class GRID
--
-- twodimensional Grid as an array2
--
create
make
feature --Queries:
a: ARRAY2[BOOLEAN];
used: ARRAY2[BOOLEAN];
--Constructor:
zero: BOOLEAN
make (i: INTEGER)is
do
...
In the second class GRID I have a method that should be executed in
parallel:
feature {PF_HP}
--Commands:
embed(line, col: INTEGER; seq: BOOL_STRING; fold: STRING) is
require
-- line=0
-- col =0
-- not seq.is_equal (Void)
-- not fold.is_equal(Void)
local
i, x, y: INTEGER; b, one: BOOLEAN
do
...
But I can only add the keyword separate to the Attribute grid :
separate GRID;
And this yields no parallel execution as far as I can see in resulting
CPU Load!
How can I make my program parallel with SCOOP?
Thanks in advance
leder
Happy Eiffeling!
I guess you should post your question on the ise eiffel mailing list
(eiffel_...@yahoogroups.com). The ise people don't post on this
group (for whatever reason).
http://doc.eiffel.com/book/solutions/concurrent-eiffel-scoop
My feeling is that your project is not compiled with SCOOP setting. The latter is sticky, so you need to recompile your project from scratch after changing it.
If the only change you made to the application was an addition of the keyword "separate" to the attribute type declaration, the compiler should report an error (assuming that there are feature calls on this attribute).
Alexander Kogtenkov