Add missing module env variable setting causing OSS to fail. (#10182)
This commit is contained in:
parent
90dce26db9
commit
93d9139ff6
1 changed files with 11 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
from spack import *
|
||||
|
||||
import spack.store
|
||||
import os
|
||||
|
||||
|
||||
class Openspeedshop(CMakePackage):
|
||||
|
@ -290,6 +291,16 @@ def setup_environment(self, spack_env, run_env):
|
|||
run_env.set('DYNINSTAPI_RT_LIB', dyninst_libdir)
|
||||
|
||||
run_env.set('OPENSS_RAWDATA_DIR', '.')
|
||||
|
||||
# Set the openspeedshop plugin path
|
||||
if os.path.isdir(self.prefix.lib64):
|
||||
lib_dir = self.prefix.lib64
|
||||
else:
|
||||
lib_dir = self.prefix.lib
|
||||
plugin_path = '/openspeedshop'
|
||||
oss_plugin_path = lib_dir + plugin_path
|
||||
run_env.set('OPENSS_PLUGIN_PATH', oss_plugin_path)
|
||||
|
||||
cbtf_mc = '/sbin/cbtf_mrnet_commnode'
|
||||
cbtf_lmb = '/sbin/cbtf_libcbtf_mrnet_backend'
|
||||
run_env.set('XPLAT_RSH', 'ssh')
|
||||
|
|
Loading…
Reference in a new issue