tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Processor speed
@ 2002-11-20  2:57 Shanmugav Shanmuganatha
  2002-11-21  2:02 ` Summary: " Shanmugav Shanmuganatha
  0 siblings, 1 reply; 3+ messages in thread
From: Shanmugav Shanmuganatha @ 2002-11-20  2:57 UTC (permalink / raw)


Hi,
	I wrote a small C program  to get the processor speed of a
multi-processor system. When I compiled the program I am
getting the following error.
cc -o proc proc_speed.c
ld:
Unresolved:
__sve_p_online
__sve_processor_info

I tried compiling the program with -D__SVE__, but that generated
other errors.
  Any clues to make the compilation succesfull will be greatly
appreciated.

Thanks,
Shanmuganathan.

#include <stdio.h>
#include <sys/processor.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>

#define MAX_PROCESSORS  8       /* Info collected on this many 
processors max */

main()
{

         int processors[MAX_PROCESSORS];
         int count = 0;
         int i = 0;

     int nConfigured = sysconf(_SC_NPROCESSORS_CONF);
     for (i = 0; i < nConfigured; i++) {
         int status = p_online(i, P_STATUS);

         if (status == -1 && errno == EINVAL)
             continue;

         if (status == P_ONLINE && count < MAX_PROCESSORS) {
             proc_info_t info;
             processor_info(i, &info);
                         processors[count++] = info.pi_clock;
         printf("Proc speed %d\n",info.pi_clock);
         }
     }
}



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Summary: processor speed
@ 2000-07-06 15:24 Evans, William
  0 siblings, 0 replies; 3+ messages in thread
From: Evans, William @ 2000-07-06 15:24 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--Boundary_(ID_Wet7xsrhLfmPYfPZ+1a2ow)", Size: 2524 bytes --]


--Boundary_(ID_Wet7xsrhLfmPYfPZ+1a2ow)
Content-type: text/plain; charset=iso-8859-1

The response was tremendous!!! Thanks a million to;
Martin Moore
Carl Gaines
Migule Fliguer
Sean O'Connell
Alan Davis
Joe Fletcher
...and all the others who told me to use psrinfo with the verbose option.
Told me exactly what I wanted to know!!!
Thanks all who responded.  I really appreciate your help!
Bill Evans
UNIX/NT Systems Administrator
 <<...OLE_Obj...>> 
                       ....the recognized global leader in ensuring clients
achieve superior value in the Digital economy.


--Boundary_(ID_Wet7xsrhLfmPYfPZ+1a2ow)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>Summary: processor speed</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">The response was =
tremendous!!! Thanks a million to;</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Martin =
Moore</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Carl Gaines</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Migule =
Fliguer</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Sean =
O'Connell</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Alan Davis</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Joe =
Fletcher</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">...and all the =
others who told me to use psrinfo with the verbose option.&nbsp; Told =
me exactly what I wanted to know!!!</FONT>
<BR><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">Thanks all who =
responded.&nbsp; I really appreciate your help!</FONT>
<BR><B><I><FONT COLOR=3D"#0000FF" SIZE=3D5 FACE=3D"Script MT Bold">Bill =
Evans</FONT></I></B>
<BR><B><I><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">UNIX/NT =
Systems Administrator</FONT></I></B>
<BR><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;...OLE_Obj...&gt;&gt; </FONT><B></B><B><I></I></B>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
....the recognized global leader in ensuring clients achieve superior =
value in the Digital economy.</FONT></P>

</BODY>
</HTML>

--Boundary_(ID_Wet7xsrhLfmPYfPZ+1a2ow)--

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-21  2:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20  2:57 Processor speed Shanmugav Shanmuganatha
2002-11-21  2:02 ` Summary: " Shanmugav Shanmuganatha
  -- strict thread matches above, loose matches on Subject: below --
2000-07-06 15:24 Summary: processor speed Evans, William

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox