From: Rick K. <rk...@nc...> - 2008-02-04 17:11:18
|
Sanjay, An error code like that being returned from ps_hwpc_read() usually means that one or both of ps_hwpc_init()/ps_hwpc_start() have not been called before calling ps_hwpc_read(). I can't say if it's related to use of Charm++ (I assume you mean the software developed by UIUC's Parallel Programming Laboratory), but each process should call init, then start, then read. In the case of a multithreaded program, only the main thread should call init but all threads should call start, read, etc. However, because signal delivery is unpredictable with POSIX threads, I'd guess this would cause problems with the approach used in the "sampler" example. Rick Sanjay H A wrote: > Hello Sir > > Progress about MPI : I am able to get output with MPI application. > > But one of my MPI application is using "charm++", On that if I insert > the routines > > > The application runs for given sampling seconds, then inside the > sampler subroutine, after calling ps_hwpc_read(), the program is > exiting. (ret value is not equal to success) > > The return value from ps_hwpc_read() is 1012. > > The error it is giving while exiting is: "calling sequence not allowed" > > Any suggestion on this. Is this because of charm++? > > Thanx > Regards > > sanjay > |