On Tue, Sep 15, 2009 at 9:47 AM, Matt W. Benjamin <matt_at_linuxbox.com> wrote:
> Hi all,
>
> I'm quite sure that you're going to do what you always do, but my belief is, it's fruitless to look to external libraries and (especially) more complex language infrastructure as a substitute for the old-fashioned work of working through the code, subsystem by subsystem, to establish MP safety.
>
> The result of this sort of approach, as I think the result has been from the transition to C++ as a whole, to could very likely be to:
>
> a. increase the size of
> b. potentially, -reduce- the profiled performance of
> c. and I think very likely, reduce the overall value of
>
> the codebase as a whole.
Yes, that is also one of the issues.. squid3 codes(c++) are very
complicated compared to original squid written in c, That already have
increased size of source codes......
But if we use external library like openmp then i dont think we need
to make much changes in actual codes. But that is only possible if we
find blocks in existing codes which could be executed by different
threads...
I am trying hard to analyze it for the same & would like to spend some
time on it before come to conclusion..... Will sure not disturb
everything..... And also want to keep codes as simple as possible
Will come up with new ideas soon....
Thanks
>
> Matt
>
> ----- "Sachin Malave" <sachinmalave_at_gmail.com> wrote:
>
>> On Tue, Sep 15, 2009 at 2:39 AM, Guido Serassio
>> <guido.serassio_at_acmeconsulting.it> wrote:
>> > Hi,
>> >
>> >>
>> >> And current generation libraries are also far better than older,
>> like
>> >> OpenMP, creating threads and handling synchronization issues in
>> OpenMP
>> >> is very easy...
>> >>
>> >> Automatic locks are provided, u need not to design your own
>> locking
>> >> mechanisms........ Just a statement and u can lock the shared
>> >> variable...
>> >> Then the major work remains is to identify the shared access.....
>> >>
>> >> I WANT TO USE OPENMP library.............
>> >>
>> >> ANY suggestions.....
>> >
>> > Just a multi platform consideration:
>> >
>> > Don't forget that such libraries like OpenMP could not be available
>> on
>> > all Squid supported platforms.
>> > As example, on Windows OpenMP is available only using gcc 4.3.2 and
>> > later or MS Visual Studio 2008.
>> > But MSYS + MinGW provides gcc 3.4.5 and the Squid 3 Visual Studio
>> > Project is based on Visual Studio 2005.
>> >
>> > So, please, we should be very careful when thinking about Squid MP.
>>
>> Well, if that is so..... We will use OpenMP 2.0 standard which is
>> available on Visual Studio 2005 also....
>> Tasking model is added in 3.0 version, which has changed whole OpenMP
>> programming style but it is not needed in our case, I guess......
>> Thanks for pointing out this......
>>
>> Will try to use 2.0 version. Please tell me if you have different
>> library in your mind.
>>
>>
>>
>> >
>> > Regards
>> >
>> > Guido Serassio
>> > Acme Consulting S.r.l.
>> > Microsoft Gold Certified Partner
>> > Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
>> > Tel. : +39.011.9530135 Fax. : +39.011.9781115
>> > Email: guido.serassio_at_acmeconsulting.it
>> > WWW: http://www.acmeconsulting.it
>> >
>> >
>> >
>
> --
>
> Matt Benjamin
>
> The Linux Box
> 206 South Fifth Ave. Suite 150
> Ann Arbor, MI 48104
>
> http://linuxbox.com
>
> tel. 734-761-4689
> fax. 734-769-8938
> cel. 734-216-5309
>
-- Mr. S. H. Malave MTech, Computer Science & Engineering Dept., Walchand College of Engineering, Sangli. Mob. 9860470739 sachinmalave_at_wce.org.inReceived on Tue Sep 15 2009 - 15:05:51 MDT
This archive was generated by hypermail 2.2.0 : Wed Sep 16 2009 - 12:00:05 MDT