Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finally eiffelstudio w/ SCOOP: HELP!

43 views
Skip to first unread message

Leder

unread,
May 17, 2011, 6:08:54 AM5/17/11
to
Hello all,

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!

Helmut

unread,
May 21, 2011, 7:11:47 PM5/21/11
to

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).

Alexander Kogtenkov

unread,
May 31, 2011, 2:05:30 AM5/31/11
to
I guess you've read how SCOOP works. If not, a short introduction can be found at

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

0 new messages