A solution to this situation is offered by the later versions of the glibc library, which introduces an environment variable named GMON_OUT_PREFIX . Setting this variable to something non-null, induces that the gmon.out file will be in fact named GMON_OUT_PREFIX.<pid> .
Thus, for the use in GIREF, I chose the following solution: add this variable to the /etc/csh.giref configuration file or to the /etc/profile.d/giref.{csh,sh} (the later on the cluster, e.g.), with the following commands:
GMON_OUT_PREFIX='gmon.out-'`/bin/uname -n`
export GMON_OUT_PREFIX
or
setenv GMON_OUT_PREFIX 'gmon.out-'`/bin/uname -n`
This was tested on SuSE Linux 8.0 (then 8.2) and it functions.
|