Some of it we can only guess since it uses functions defined elsewhere, but here goes:
We can't tell what selectedEvents actually is from this code snippet since it doesn't declare it anyway, it just uses it, but it's some sort of container, maybe a list. I can't guess what this 'config' function (or member, or whatever it is) comes from.
Hi ,
Can anyone explains what does the below highlighted statements means:
# Set environment variables
. ${0%/*}/wrkenv.sh
jobName_sh=${0##*/}
jobName=${jobName_sh%.*}
Thanks,
Sri (1 Reply)
Can someone please explain the meaning of code between the two lines below.
if ; then
echo "./filter.sh <a flat file containing group and id>"
fi
------------------------------------------------------------
>IDnotexist #account in request does not exist in NIS... (1 Reply)
Hi,
Can anyone pls explain me the below SED code in detail.
sed -e :a -e '$!N;s/\n//;ta' -e P -e D
When this code is executed with a file(has 1lac records), it is taking very long time to process.
So I wanted to modify this SED code with equivalant AWK code.
Thanks,
Sri (1 Reply)
I have something like in the script. Can anyone explain what does the sort command does and followed by the sed
sort -r -k3.7,3 -k3.1,3 -k3.4,3 -t: $dir"abc_"$x"_parsed" | sed -e 's/\(\)\(\{3\}\)/\1,\2/2' -e 's/\/2,00/\/200/'
The file abc_"$x"_parsed contains something like below
... (7 Replies)
Hi,
Pls explain me what the below code is doing. specially meaning if -a while calling test function-
case $1 in
1) beg_dt=01; end_dt=07 ;;
2) beg_dt=08; end_dt=14 ;;
3) beg_dt=15; end_dt=21 ;;
4) beg_dt=22; end_dt=28 ;;
5) beg_dt=29; end_dt=31 ;;
esac test \( `date +%w` -eq $2 -a... (3 Replies)
Hi Guys,
Please help me, I am new to programming and I don’t understand what some parts of this code are doing. I have comments on the parts I know, please help if my understanding of the code is not correct and also help with parts with questions.
awk '
{
gsub( ">",... (1 Reply)
can anyone please explain this code?
sed ':a;N;$!ba;s/]\n//g' file
it replaces lines ending with "]" and concatenates with the next line so that
line1]
line2
becomes
line1line2
i don't understand this part: :a;N;$!ba;
I have noted that I can replace "a" with any letter:
... (1 Reply)
Discussion started by: locoroco
1 Replies
LEARN ABOUT CENTOS
papi_epc
PAPI_epc(3) PAPI PAPI_epc(3)NAME
PAPI_epc -
Simplified call to get arbitrary events per cycle, real and processor time.
SYNOPSIS Detailed Description
C Interface:
#include <papi.h>
int PAPI_epc( int event, float *rtime, float *ptime, long long *ref, long long *core, long long *evt, float *epc );
Parameters:
event event code to be measured (0 defaults to PAPI_TOT_INS)
*rtime total realtime since the first call
*ptime total process time since the first call
*ref incremental reference clock cycles since the last call
*core incremental core clock cycles since the last call
*evt total events since the first call
*epc incremental events per cycle since the last call
Return values:
PAPI_EINVAL The counters were already started by something other than PAPI_epc().
PAPI_ENOEVNT One of the requested events does not exist.
PAPI_ENOMEM Insufficient memory to complete the operation.
The first call to PAPI_epc() will initialize the PAPI High Level interface, set up the counters to monitor the user specified event,
PAPI_TOT_CYC, and PAPI_REF_CYC (if it exists) and start the counters.
Subsequent calls will read the counters and return total real time, total process time, total event counts since the start of the
measurement and the core and reference cycle count and EPC rate since the latest call to PAPI_epc().
A call to PAPI_stop_counters() will stop the counters from running and then calls such as PAPI_start_counters() or other rate calls can
safely be used.
PAPI_epc can provide a more detailed look at algorithm efficiency in light of clock variability in modern cpus. MFLOPS is no longer an
adequate description of peak performance if clock rates can arbitrarily speed up or slow down. By allowing a user specified event and
reporting reference cycles, core cycles and real time, PAPI_epc provides the information to compute an accurate effective clock rate, and
an accurate measure of computational throughput.
See Also:
PAPI_flips()
PAPI_flops()
PAPI_ipc()
PAPI_stop_counters()
Author
Generated automatically by Doxygen for PAPI from the source code.
Version 5.2.0.0 Tue Jun 17 2014 PAPI_epc(3)