RE: STL with Performer/Vega

New Message Reply Date view Thread view Subject view Author view

WRVO (WRVO++at++chevron.com)
Tue, 6 Apr 1999 07:35:41 -0700


I tried this a year ago and didn't have much luck. I was using Objectspace's
version of STL as SGI's wasn't out yet (I still have the allocator but it's
based on ObjectSpace so it probably wouldn't do you much good). The advice I
got about allocators is to avoid them. There's not much info on how to build
one and all it takes is one place in the STL code where it isn't used to
cause a problem and tracking that down is like looking for a needle in a
pile of needles. One problem is the inconsistent allocation of objects in
performer - some objects automatically use the shared arena and others
don't. Since STL uses the copy constructor, it may copy an object that you
allocated in the shared arena to non-arena memory causing all sorts of
grief. It's even worse that this because there is memory allocated by the
container as well as memory allocated for the objects inside the container
and all of it needs to be done in shared memory. There are also locking
issues to deal with too.

I've since abandoned this approach in favor of nothing but now need it
again. If you hear anything I'd be happy to know about it too.

Good luck,

William R Volz - Senior Research Geophysicist
Chevron Petroleum Technology
Voice: 281-596-2059 Fax: 281-596-3009

> -----Original Message-----
> From: Kenneth Gordon [SMTP:kenneth.s.gordon++at++lmco.com]
> Sent: Tuesday, April 06, 1999 8:44 AM
> To: info-performer++at++sgi.com; info-vega++at++paradigmsim.com
> Subject: STL with Performer/Vega
>
> I was wondering whether anyone here has used the Standard Template
> Library (STL) with either Performer or Vega. I am running into a
> problem in multiprocess mode, since STL does not know to allocate memory
> from the shared arena.
>
> I tried to create my own STL Allocator, which would perform this task,
> but I cannot get the application to compile with it (that's not entirely
> true. My allocator works with deques, but it complains when I try to
> use it with maps).
>
> Has anyone successfully used STL using the shared memory arena? If so,
> could you please explain what you did (or send me your allocator,
> assuming this is the approach you took)?
>
> Thanks, in advance.
>
>
> -- Ken
>
>
> --
> /---------------------------------------------------\
> | Kenneth Gordon |
> | Kenneth.S.Gordon++at++lmco.com |
> | Lockheed Martin, GES Division |
> | Work: (609) 787-3646 Lab: (609) 787-3193 |
> | Home: (609) 802-1663 Fax: (609) 787-3232 |
> | http://www.cs.sunysb.edu/~kgordon |
> \---------------------------------------------------/
>
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Apr 06 1999 - 07:40:20 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.