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 10:25:27


This is will be Prism feature so you can use #if define(__ia64__) token
to the below code

Thanks
Amir

John Kelso wrote:

>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
>>>-----------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>-----------------------------------------------------------------------
> 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 - 10:25:16 PST