<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: compiling problem when using cxperf in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678813#M723161</link>
    <description>I have not seen the doc you  mention, but&lt;BR /&gt;the syntax you have seems to be wrong.&lt;BR /&gt;&lt;BR /&gt;Giving the option -Wl to the compiler says&lt;BR /&gt;that you want to pass options to the linker.&lt;BR /&gt;In this case  -u&lt;BR /&gt;According to the man-page for ld  -u, xxx&lt;BR /&gt;is not the correct syntax.&lt;BR /&gt;Try -u xxx&lt;BR /&gt;where  xxx is the name of the symbol you&lt;BR /&gt;want to "undefine"&lt;BR /&gt;&lt;BR /&gt;Olav</description>
    <pubDate>Fri, 08 Mar 2002 13:51:30 GMT</pubDate>
    <dc:creator>Olav Baadsvik</dc:creator>
    <dc:date>2002-03-08T13:51:30Z</dc:date>
    <item>
      <title>compiling problem when using cxperf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678812#M723160</link>
      <description>hi,&lt;BR /&gt;  has anyone used the tool "cxperf"? I used it&lt;BR /&gt;as in the doc:&lt;BR /&gt;"c89 main.c /opt/cxperf/lib/cxperfmon.ia64.a -Wl, -u, __cxperfStubs +DD64"&lt;BR /&gt; but failed with message:&lt;BR /&gt;     "__cxperfStubs": No such file or directory&lt;BR /&gt;     fatal error&lt;BR /&gt;could anyone help?&lt;BR /&gt;-Wangshan</description>
      <pubDate>Fri, 08 Mar 2002 12:06:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678812#M723160</guid>
      <dc:creator>wangshan_1</dc:creator>
      <dc:date>2002-03-08T12:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem when using cxperf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678813#M723161</link>
      <description>I have not seen the doc you  mention, but&lt;BR /&gt;the syntax you have seems to be wrong.&lt;BR /&gt;&lt;BR /&gt;Giving the option -Wl to the compiler says&lt;BR /&gt;that you want to pass options to the linker.&lt;BR /&gt;In this case  -u&lt;BR /&gt;According to the man-page for ld  -u, xxx&lt;BR /&gt;is not the correct syntax.&lt;BR /&gt;Try -u xxx&lt;BR /&gt;where  xxx is the name of the symbol you&lt;BR /&gt;want to "undefine"&lt;BR /&gt;&lt;BR /&gt;Olav</description>
      <pubDate>Fri, 08 Mar 2002 13:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678813#M723161</guid>
      <dc:creator>Olav Baadsvik</dc:creator>
      <dc:date>2002-03-08T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem when using cxperf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678814#M723162</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Going on the statement further in the document&lt;BR /&gt;&lt;BR /&gt;In the example above, bsort.c is linked with the MPI library and the&lt;BR /&gt;CXperf runtime components. The symbol _cxperfStubs is presented to&lt;BR /&gt;the linker as undefined. The symbol, _cxperfStubs, links the CXperf&lt;BR /&gt;runtime entry points. The resulting file is bsort.ia64.&lt;BR /&gt;&lt;BR /&gt;Olav appears to be correct&lt;BR /&gt;&lt;BR /&gt;It is certainly worth trying.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                  Steve Steel</description>
      <pubDate>Fri, 08 Mar 2002 13:59:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678814#M723162</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-03-08T13:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem when using cxperf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678815#M723163</link>
      <description>Thanks, Olav &amp;amp; Steve,&lt;BR /&gt;   Now the compiling is ok. But the cxperf running still has issues:&lt;BR /&gt;&lt;BR /&gt;# c89 main.c /opt/cxperf/lib/cxperfmon.ia64.a &lt;BR /&gt;-u __cxperfStubs +DD64&lt;BR /&gt;# cxperf a.out&lt;BR /&gt;(CXperf) select all&lt;BR /&gt;(CXperf) collect cpu&lt;BR /&gt;(CXperf) run&lt;BR /&gt;ERROR   : 9001 : Exec of a.out process fails, aborting ...&lt;BR /&gt;ERROR   : 9001 : CXperf RTC::errexit: entry -  _synthPid = 23547&lt;BR /&gt;exec: Permission denied&lt;BR /&gt;(CXperf)&lt;BR /&gt;&lt;BR /&gt;the main.c is very simple:&lt;BR /&gt;main(){&lt;BR /&gt;     printf("hello\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;-Wangshan</description>
      <pubDate>Fri, 08 Mar 2002 14:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678815#M723163</guid>
      <dc:creator>wangshan_1</dc:creator>
      <dc:date>2002-03-08T14:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem when using cxperf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678816#M723164</link>
      <description>Hi&lt;BR /&gt;You probably need to be root and are not. You have no execute permission&lt;BR /&gt;&lt;BR /&gt;Look at&lt;BR /&gt;&lt;BR /&gt;export ST_CXPERF_RTC=/opt/cxperf/lbin/rtc.ia64&lt;BR /&gt;&lt;BR /&gt;Can your user access this&lt;BR /&gt;&lt;BR /&gt;Or Try like this&lt;BR /&gt;&lt;BR /&gt;The example below displays a sample wrapper script.&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;PATH=$PATH:/opt/cxperf/bin&lt;BR /&gt;export ST_CXPERF_RTC=/opt/cxperf/lbin/rtc.ia64&lt;BR /&gt;export ST_CXPERF_SYNTH=/opt/cxperf/lbin/synth.ia64&lt;BR /&gt;/opt/cxperf/bin/cxperf.ia64 ./bsort.ia64 &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;select routine all&lt;BR /&gt;collect cpu wall_clock events&lt;BR /&gt;set events EXECUTION_1&lt;BR /&gt;set pdf bsort.$$.cxp&lt;BR /&gt;run&lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;In the example above, the MPI application bsort.ia64 is run by&lt;BR /&gt;CXperf.&lt;BR /&gt;If CXperf is installed at the standard location /opt/cxperf, the&lt;BR /&gt;exported shell variables in the example are not necessary.&lt;BR /&gt;When possible, use a script file. When using a script file, the CXperf&lt;BR /&gt;invocation appears as followed:&lt;BR /&gt;/opt/cxperf/bin/cxperf.ia64 ./bsort.ia64 -x cxperf&lt;BR /&gt;-ScriptName&lt;BR /&gt;The file cxperfScriptName contains the content below:&lt;BR /&gt;(CXperf) select routine all&lt;BR /&gt;(CXperf) collect cpu wall_clock events&lt;BR /&gt;(CXperf) set events EXECUTION_1&lt;BR /&gt;(CXperf) set pdf bsort.$$&lt;BR /&gt;(CXperf) run&lt;BR /&gt;(CXperf) quit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                Steve Steel</description>
      <pubDate>Fri, 08 Mar 2002 14:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678816#M723164</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-03-08T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem when using cxperf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678817#M723165</link>
      <description>your suggestions are very helpful, thanks, Steve!&lt;BR /&gt;I found that in stead of using "cxperf a.out"&lt;BR /&gt;, "cxperf ./a.out" will work.&lt;BR /&gt;-Wangshan</description>
      <pubDate>Sat, 09 Mar 2002 02:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiling-problem-when-using-cxperf/m-p/2678817#M723165</guid>
      <dc:creator>wangshan_1</dc:creator>
      <dc:date>2002-03-09T02:49:57Z</dc:date>
    </item>
  </channel>
</rss>

