gtcasl / eiger

Home page for the Eiger statistical performance modeling framework.
http://gpuocelot.gatech.edu/projects/eiger/
Other
1 stars 1 forks source link

The line continuation character breaks lwperf #9

Open eanger opened 9 years ago

eanger commented 9 years ago

For example, the following code does not work:

PERFLOG(SITENAME, IP(its), IP(nx), IP(numReg), IP(numFiles), IP(showProg), \ IP(quiet), IP(viz), IP(balance), IP(cost));

but,

PERFLOG(SITENAME, IP(its), IP(nx), IP(numReg), IP(numFiles), IP(showProg), IP(quiet), IP(viz), IP(balance), IP(cost));

does work.


eanger commented 9 years ago

PERFLOG sites are not just macros handled by the preprocessor; the updateLoggers* scripts parse these calls out and ensure that everything is kept up to date. However in doing so, it assumes that all the calls are on the same line. I'm sure this could be made more intelligent, but would probably be pretty time consuming, require implementing something like a C parser.


Original comment by: Eric Anger