PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

error: pgcollect-Fatal-unable to find any RC file
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
TerryFeagin25932



Joined: 31 Mar 2011
Posts: 6

PostPosted: Wed May 18, 2011 1:08 am    Post subject: error: pgcollect-Fatal-unable to find any RC file Reply with quote

When trying to use the profiler, I followed the instructions in the PGPROF HELP
(viz., "To profile your application named 'myprog', you execute the following commands:
$ pgcollect myprog
$ pgprof -exe myprog
")

I am using Visual Studio 2010 and specified the –Minfo=ccff option for the compile and link command lines.

When I follow these instructions from PGPROF HELP, I get the message:

pgcollect unable to find RC file
tried: pgcollect_rc pgcollectrc

and then when I try the pgprof command, I get a similar error message:

pgprof unable to find RC file
tried: pgprof_rc pgprof.rc


Any idea what this means or where I should look to find these files?
Should I create such files and if so, what should they contain?

Thanks,
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Thu May 19, 2011 9:36 am    Post subject: Reply with quote

Hi Terry,

Our tools engineers are investigating this but are having trouble reproducing the issue. They asked if you could post the output from the command "pgcollect -dryrun". This might shed some light on the problem.

Thanks,
Mat
Back to top
View user's profile
TerryFeagin25932



Joined: 31 Mar 2011
Posts: 6

PostPosted: Sun May 22, 2011 9:21 pm    Post subject: Reply with quote

Here is the result you requested: (thanks)

C:\Users\myname\Documents\Visual Studio 2010\Projects\PVFProject2\PVFProject2\Win32\Debug>pgcollect -dryrun
pgcollect unable to find RC file
tried: pgcollect_rc pgcollectrc
driver directory: C:\Users\myname\Documents\Visual Studio 2010\Projects\PVFProject2\PVFProject2\Win32\Debug
pgcollect-Fatal-unable to find any RC file
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Mon May 23, 2011 3:09 pm    Post subject: Reply with quote

Hi Terry,

Sorry but it's still a mystery as to the problem. Here's the response I got back for one of our tools engineers:

Quote:
I tried it with 11.5 PGI WS using the PGI DOS-Prompt window on win64 and
it worked fine.

pgcollect_rc and pgcollectrc should be in the PGI bin directory. It is
suspicious that the error says the driver directory is the user's
project directory rather than something like "C:\Program
Files\PGI\win64\11.5\bin". I don't know why or how that would happen.
this is in common driver code that affects the compilers as much as
pgcollect.

If I was diagnosing this on my own system, I would check the following:
(1) are pgcollect_rc and pgcollectrc present in the PGI bin directory
(2) do the PGI compilers work from the same command line prompt
(3) are there any user- or site- custom rcfiles that could be messing
things up


Something that I just though of. Have you copied pgcollect from the PGI directories to your project directory? Is so, please remove this copy and set your PATH variable to include the path to your PGI bin directory or use one of the pre-configured PGI DOS or Bash shells.

- Mat
Back to top
View user's profile
TerryFeagin25932



Joined: 31 Mar 2011
Posts: 6

PostPosted: Thu May 26, 2011 11:17 pm    Post subject: PGPROF problems Reply with quote

I was able to remove the copy as your tool engineer suggested and set my
PATH variable to include the path to your PGI bin directory. It took about
15 minutes (mostly because of the lengthy paths involved and setting
the PATH in Windows is a bit awkward, since I am more familiar with UNIX),
but it now appears that pgcollect (at least) is now working
okay.

Could you tell me where I find out more about how to use one of the
pre-configured PGI DOS or Bash shells? I am running under Windows
Vista, so I assume the pre-configured PGI DOS shell is what you are
talking about (I haven't ported the bash shell to my machine). I see no
reference to the pre-configured PGI DOS shell anywhere in the
pgprof documentation or user's guide. Where can I read about it?

Now, it seems that pgprof is not doing much. I tried opening the file called
pgprof.out, but the window is still not showing anything like the user's
guide says it should. I'm beginning to think I should purchase another
compiler. I've only got 23 hours on a trial license to figure this one out.
I am familiar with the Intel FORTRAN and their tools are pretty
easy to use. This stuff is very hard to use. Is there an easier way to
do all of this (maybe within Visual Studio ) ?

Anyway, here is the output from the pgprof command, so maybe
someone can explain why I am not seeing anything in the pgprof
window. THANKS in advance for any help... Terry

pgprof-Warning-Malformed $expr(), nonnumeric value 0-ea
pgprof-Warning-Malformed $expr(), nonnumeric value 0-ea
pgprof-Warning-Malformed $expr(), nonnumeric value 0-ea
pgprof-Warning-Malformed $expr(), nonnumeric value 0-ea
pgprof-Warning-Malformed $expr(), nonnumeric value 0-ea
pgprof-Warning-Malformed $expr(), nonnumeric value 0-ea
NOTE: your trial license will expire in 0 days, 23.1 hours.
java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "0<undefined>"
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at javax.swing.SwingWorker.get(SwingWorker.java:600)
at PGInitTask.done(PGInitTask.java:58)
at javax.swing.SwingWorker$5.run(SwingWorker.java:735)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:830)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:840)
at javax.swing.Timer.fireActionPerformed(Timer.java:292)
at javax.swing.Timer$DoPostEvent.run(Timer.java:224)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:235)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Caused by: java.lang.NumberFormatException: For input string: "0<undefined>"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at Profile.parseFile(Profile.java:608)
at Profile.<init>(Profile.java:768)
at Profile.<init>(Profile.java:737)
at Jpgprof.initProfiles(Jpgprof.java:1903)
at Jpgprof.fileInit(Jpgprof.java:387)
at PGInitTask.doInBackground(PGInitTask.java:44)
at PGInitTask.doInBackground(PGInitTask.java:21)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:717)
java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "0<undefined>"
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at javax.swing.SwingWorker.get(SwingWorker.java:600)
at PGInitTask.done(PGInitTask.java:58)
at javax.swing.SwingWorker$5.run(SwingWorker.java:735)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:830)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:840)
at javax.swing.Timer.fireActionPerformed(Timer.java:292)
at javax.swing.Timer$DoPostEvent.run(Timer.java:224)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:235)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:286)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
Caused by: java.lang.NumberFormatException: For input string: "0<undefined>"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at Profile.parseFile(Profile.java:608)
at Profile.<init>(Profile.java:768)
at Profile.<init>(Profile.java:737)
at Jpgprof.initProfiles(Jpgprof.java:1903)
at Jpgprof.fileInit(Jpgprof.java:387)
at PGInitTask.doInBackground(PGInitTask.java:44)
at PGInitTask.doInBackground(PGInitTask.java:21)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:717)

Thanks,
T e r r y
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group