Set TAU_MAKEFILE env variable (#2210)
* In order to use TAU module, we have to set TAU_MAKEFILE env variable. * updated with suggestions from @citibeth
This commit is contained in:
parent
b304387308
commit
b706da1109
1 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
import os
|
import os
|
||||||
import os.path
|
import glob
|
||||||
from llnl.util.filesystem import join_path
|
from llnl.util.filesystem import join_path
|
||||||
|
|
||||||
|
|
||||||
|
@ -146,3 +146,8 @@ def link_tau_arch_dirs(self):
|
||||||
dest = join_path(self.prefix, d)
|
dest = join_path(self.prefix, d)
|
||||||
if os.path.isdir(src) and not os.path.exists(dest):
|
if os.path.isdir(src) and not os.path.exists(dest):
|
||||||
os.symlink(join_path(subdir, d), dest)
|
os.symlink(join_path(subdir, d), dest)
|
||||||
|
|
||||||
|
def setup_environment(self, spack_env, run_env):
|
||||||
|
pattern = join_path(self.prefix.lib, 'Makefile.*')
|
||||||
|
files = glob.glob(pattern)
|
||||||
|
run_env.set('TAU_MAKEFILE', files[0])
|
||||||
|
|
Loading…
Reference in a new issue