From: Tirath R. <ti...@tp...> - 2006-01-27 17:16:35
|
Hi all, To begin with, is it normal/explainable that running psrun in counting mode counts far more samples of a given event than when running in profile mode? For example, I've been getting the following with my program: PAPI_L2_LDM: Counting: 5452797 samples Profil: 305 samples (total) The case is similar for PAPI_RES_STL and PAPI_TOT_CYC, and I haven't tested any others yet. I figured I'd try invoking libpshwpc directly in the program instead of relying on psrun... but that may not be so simple as the code I have to work with is some pretty old Fortran. I'm pretty new to Fortran, so I don't know how correct my analysis is, but I think the problem is the code I have to work with relies heavily on implicit variables. Here's what I get when trying to compile: g77 -c -O2 -I/usr/local/include -malign-double -fautomatic -Wno- globals -fno-globals gamess.f source/gamess.srcpp: In program `gamess': source/gamess.srcpp:320: IMPLICIT DOUBLE PRECISION(A-H,O-Z) 1 fperfsuite.h:45: (continued): integer PS_PID, PS_PPID, PS_PGRP, PS_SESSION, PS_TTY, 2 Statement at (1) invalid in context established by statement at (2) ... (it goes on like that)... Does anyone know of a workaround for situations like this? |