From: John Kelso (kelso++at++nist.gov)
Date: 12/01/2005 09:32:41
Thanks for your speedy response.
Will this class only be implemented on the Prism, or on all platforms?
That said, do you have some #ifdefs you'd recommend?
I've stumbled across __ia64__, __linux__ and WIN32. Is there something
like __irix__ I can use, or do I have to do some sort of test like:
#if !(defined(__linux__) || defined(WIN32))
Thanks,
-John
On Thu, 1 Dec 2005, Amir Meteraso wrote:
> Hi John,
>
> In performer 3.2.2 (plan to be release in a few weeks) we added
> pfuSystemTopology
> class for Prism machine in libpfutil. It basically give system specific
> information like number of system
> cpus, number of graphics pipes, cpus nearest to the pipe,
> isolate/restrict cpus, and more.
> Here is a snapshot of pfuSyetemTopology relevant to graphics pipes you
> can try on Prism machine:
> ...
> DIR *dir;
> if ((dir = opendir("/dev/dri")) == NULL) {
> TotalPipes=1;
> }
> struct dirent *de;
> while ((de = readdir(dir)) != NULL) {
> if (!strncmp(de->d_name, "card", 4))
> TotalPipes++;
> }
> closedir(dir);
>
> ..
>
> Hope it helps
> Amir
>
> John Kelso wrote:
>
> >Hi,
> >
> >Our software uses the getinvent() call (included in invent.h) on our IRIX
> >boxes to determine how many graphics pipes are on the system.
> >
> >We're porting to Prisms, and I've discovered that invent.h isn't there.
> >
> >So, how do I determine the number of graphics pipes on a Prism?
> >
> >Thanks,
> >
> >-John
> >
> >
> >-----------------------------------------------------------------------
> > List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> > Open Development Project: http://oss.sgi.com/projects/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> >-----------------------------------------------------------------------
> >
> >
> >
>
>
>
This archive was generated by hypermail 2b29 : Thu Dec 01 2005 - 09:32:47 PST