Re: [info-performer] how to determine how many pipes are on a Prism system

Date view Thread view Subject view Author view

From: Amir Meteraso (amir++at++sgi.com)
Date: 12/01/2005 08:47:52


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
>-----------------------------------------------------------------------
>
>
>

-- 
Amir Meteraso                amir++at++sgi.com
OpenGL Performer - SGI        (972)-9970-6680 


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 01 2005 - 08:47:38 PST