Skip to content
Snippets Groups Projects
Commit b706da11 authored by Pramod Kumbhar's avatar Pramod Kumbhar Committed by Todd Gamblin
Browse files

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
parent b3043873
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
##############################################################################
from spack import *
import os
import os.path
import glob
from llnl.util.filesystem import join_path
......@@ -146,3 +146,8 @@ def link_tau_arch_dirs(self):
dest = join_path(self.prefix, d)
if os.path.isdir(src) and not os.path.exists(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])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment