[SimGrid-user] SimGrid Energy

Martin Quinson martin.quinson at ens-rennes.fr
Sun Feb 7 11:20:25 CET 2016


Hello,

either you can model this into the existing infrastructure (by adding
the corresponding values to the consumpution of each declared pstate,
or maybe declare new fictional pstates for that), or you'll have to
modify a bit how energy is modeled in SimGrid. 

The latter is not feasible from Java as the energy is modeled here:
src/surf/plugins/energy.cpp 

You will certainly experience huge difficulties to recompile the C
interface on a windows box. The info we have are here:
http://simgrid.gforge.inria.fr/simgrid/3.13/doc/install.html

I strongly advice to use a linux or mac machine to work on/with the C
interface. A Linux virtual machine would be perfectly enough. 

Bye, MT.

On Sun, Feb 07, 2016 at 11:36:39AM +0600, A.S.M Rizvi wrote:
> Dear Sir,
> The jar file you provided worked fine in Windows 7. I can see the energy
> consumption of different hosts now.
> Now if I want to add some additional functionalities to energy module what
> should I do? For example, if I want to integrate the heating and cooling
> energy what should I do?
> 
> Thanks for your previous help. It was really nice and smooth!
> 
> Thanks,
> A.S.M Rizvi
> MS Student,
> Bangladesh University of Engineering and Technology,
> Dhaka.
> On Mon, Feb 1, 2016 at 2:23 PM, A.S.M Rizvi <0905050.ar at ugrad.cse.buet.ac.bd
> > wrote:
> 
> > Dear Sir,
> >
> > I have Ubuntu 15.10 in my device. I had some issues with that too. I will
> > try with that again after sometime and will give you feedback.
> >
> > Thank you very much for your co-operation.
> >
> >
> >
> > On Mon, Feb 1, 2016 at 1:59 PM, Martin Quinson <
> > martin.quinson at ens-rennes.fr> wrote:
> >
> >> Grmbl, I'll get it working at some point. Damn autobuilders.
> >>
> >> It would be really better if you could install a linux virtual machine
> >> to work in the meanwhile. If it's impossible, wait another couple of
> >> hours/days. I do my best.
> >>
> >> Bye, Mt.
> >>
> >> On Mon, Feb 01, 2016 at 07:39:04AM +0100, Martin Quinson wrote:
> >> > Hello,
> >> >
> >> > yeah, the fix I uploaded to the servers before getting to bed failed,
> >> > so there were no artefact to download since they were not built. I
> >> > just uploaded another solution, so you can try again when the build
> >> > completes.
> >> >
> >> >  https://ci.appveyor.com/project/mquinson/simgrid
> >> >
> >> > Bye, Mt.
> >> >
> >> > On Mon, Feb 01, 2016 at 08:33:58AM +0600, A.S.M Rizvi wrote:
> >> > > Dear Sir,
> >> > > Thank you very much for your quick response.
> >> > > I can not find any option to download simgrid.jar in the Artifacts
> >> link. It
> >> > > shows "The build job does not contain any artifacts".
> >> > >
> >> > > Thanks,
> >> > > A.S.M Rizvi
> >> > > MS Student,
> >> > > Bangladesh University of Engineering and Technology,
> >> > > Dhaka.
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Mon, Feb 1, 2016 at 4:10 AM, Martin Quinson <
> >> martin.quinson at ens-rennes.fr
> >> > > > wrote:
> >> > >
> >> > > > Hello,
> >> > > >
> >> > > > it seems that the windows nightly builds went bad at some point.
> >> It's
> >> > > > hard for us to test as we don't use windows ourselves. I tried a
> >> > > > workaround, that is currently building on the servers.
> >> > > >
> >> > > > You will find it here:
> >> https://ci.appveyor.com/project/mquinson/simgrid
> >> > > > Click on the artefact link, on the right below, and download
> >> simgrid.jar
> >> > > > If it still complains about unsatisfied link errors, try downloading
> >> > > > the libwinpthread-1.dll file (that should appear as an artefact
> >> too),
> >> > > > and put it in the same directory where your jarfile is.
> >> > > >
> >> > > > Please tell us how it goes for you.
> >> > > >
> >> > > > Bye, Mt.
> >> > > >
> >> > > > On Sun, Jan 31, 2016 at 11:39:58PM +0600, A.S.M Rizvi wrote:
> >> > > > > Dear Sir,
> >> > > > >
> >> > > > > Thank you very much for your reply.
> >> > > > >
> >> > > > > I created a project at Netbeans IDE 8.1 and created Energy and
> >> > > > > EnergyConsumer class in that project and added SimGrid.jar in
> >> library.
> >> > > > > Unfortunately, it showed the following error when I tried to run
> >> it:
> >> > > > >
> >> > > > > ---
> >> > > > > Exception in thread "main" java.lang.UnsatisfiedLinkError:
> >> > > > >
> >> > > >
> >> C:\Users\DELL\AppData\Local\Temp\simgrid-java32110468150883509\libsimgrid.dll:
> >> > > > > %1 is not a valid Win32 application
> >> > > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> >> > > > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
> >> > > > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
> >> > > > > at java.lang.Runtime.load0(Runtime.java:809)
> >> > > > > at java.lang.System.load(System.java:1086)
> >> > > > > at org.simgrid.NativeLib.loadLib(NativeLib.java:115)
> >> > > > > at org.simgrid.NativeLib.nativeInit(NativeLib.java:31)
> >> > > > > at org.simgrid.NativeLib.nativeInit(NativeLib.java:23)
> >> > > > > at org.simgrid.msg.Msg.<clinit>(Msg.java:118)
> >> > > > > at energy.Energy.main(Energy.java:20)
> >> > > > >
> >> > > >
> >> C:\Users\DELL\AppData\Local\NetBeans\Cache\8.1\executor-snippets\debug.xml:83:
> >> > > > > Java returned: 1
> >> > > > > BUILD FAILED (total time: 5 seconds)
> >> > > > > ---
> >> > > > > I am using jdk version 1.8. I searched about the error however
> >> could not
> >> > > > > manage to find any solution. I tested same code to one of my
> >> friend's
> >> > > > > device, but got similar type of error.
> >> > > > >
> >> > > > > Can you please put some light on this problem?
> >> > > > >
> >> > > > > Thanks,
> >> > > > > A.S.M Rizvi
> >> > > > > MS Student,
> >> > > > > Bangladesh University of Engineering and Technology,
> >> > > > > Dhaka
> >> > > > >
> >> > > > > On Sun, Jan 31, 2016 at 6:49 AM, Martin Quinson <
> >> > > > > martin.quinson at ens-rennes.fr> wrote:
> >> > > > >
> >> > > > > > Hello,
> >> > > > > >
> >> > > > > > SimGrid works much better on linux or mac systems than Windows.
> >> If you
> >> > > > > > absolutely need windows, then you must use Java. But if you
> >> want to
> >> > > > > > use energy with Java, you need a git version of SimGrid (even
> >> 3.12 is
> >> > > > > > not recent enough). You can find a recent windows build of the
> >> jar
> >> > > > > > file, for the git version:
> >> > > > > >
> >> > > > > >
> >> > > >
> >> https://ci.appveyor.com/api/buildjobs/f3sp1w6igv9vwxe5/artifacts/simgrid.jar
> >> > > > > >
> >> > > > > > You can find an example of how to use it here:
> >> > > > > >
> >> https://github.com/mquinson/simgrid/tree/master/examples/java/energy
> >> > > > > >
> >> > > > > > Welcome in the SimGrid community.
> >> > > > > >
> >> > > > > > Bye, Mt.
> >> > > > > >
> >> > > > > > > Date: Sun, 31 Jan 2016 03:01:49 +0600
> >> > > > > > > From: "A.S.M Rizvi" <0905050.ar at ugrad.cse.buet.ac.bd>
> >> > > > > > > To: simgrid-user at lists.gforge.inria.fr
> >> > > > > > > Subject: SimGrid Energy
> >> > > > > > >
> >> > > > > > > Dear Sir,
> >> > > > > > > I have installed SimGrid3.10.0 version in Windows 7(64 bit).
> >> I want
> >> > > > to
> >> > > > > > > simulate energy module of a wired distributed system. I need
> >> to find
> >> > > > the
> >> > > > > > > energy consumption of every node during their tasks.
> >> > > > > > >
> >> > > > > > > Is it possible to do this job using SimGrid 3.10.0? If
> >> possible, can
> >> > > > you
> >> > > > > > > please tell me where to begin? Is there any example code?
> >> > > > > > >
> >> > > > > > > I am new to SimGrid. Please help!
> >> > > > > >
> >> > > > > > --
> >> > > > > > Programming is not about technology for its own sake.
> >> > > > > > It's about being able to express your ideas precisely and
> >> efficiently.
> >> > > > > >              -- Inspired of http://prog21.dadgum.com/
> >> > > > > >
> >> > > >
> >> > > > --
> >> > > > Chaque génération, sans doute, se croit vouée à refaire le monde. La
> >> > > > mienne sait pourtant qu'elle ne le refera pas. Mais sa tâche est
> >> > > > peut-être plus grande. Elle consiste à empêcher que le monde se
> >> défasse.
> >> > > >           --- Albert Camus, Prix Nobel de littérature 1957.
> >> > > >
> >> >
> >> > --
> >> > There are two ways of constructing a software design. One way is to
> >> > make it so simple that there are obviously no deficiencies. And the
> >> > other way is to make it so complicated that there are no obvious
> >> > deficiencies.             -- Tony (C.A.R.) Hoare.
> >>
> >>
> >>
> >> > _______________________________________________
> >> > Simgrid-user mailing list
> >> > Simgrid-user at lists.gforge.inria.fr
> >> > http://lists.gforge.inria.fr/mailman/listinfo/simgrid-user
> >>
> >>
> >> --
> >> The tragedy of modern man is not that he knows less and less about the
> >> meaning of his own life, but that it bothers him less and less.
> >>           --- Vaclav Havel
> >>
> >
> >

-- 
Il est dangereux d'avoir raison quand le gouvernement a tort.
It is dangerous to be right when the government is wrong.
  -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/simgrid-user/attachments/20160207/7d7aaf68/attachment.sig>


More information about the Simgrid-user mailing list