Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
#
# Copyright (C) 2015 IT4Innovations
# Lumir Jasiok
# lumir.jasiok@vsb.cz
# http://www.it4i.cz
#
#
#
"""
EasyBuild support for installing the Intel Advisor XE,
implemented as an easyblock
@author: Lumir Jasiok (IT4Innovations)
"""
from easybuild.easyblocks.generic.intelbase import IntelBase
class EB_Advisor(IntelBase):
"""
Support for installing Intel Advisor XE
"""
def sanity_check_step(self):
"""Custom sanity check paths for Advisor"""
custom_paths = {
'files': ["advisor_xe/lib64/libadvixe_runtool_6.6.so",
"advisor_xe/lib64/libadvixe_dvt_core_6.5.so"],
'dirs': ['advisor_xe/bin64', 'advisor_xe/lib64']
}
super(EB_Advisor, self).sanity_check_step(custom_paths=custom_paths)
def make_module_req_guess(self):
"""
A dictionary of possible directories to look for
"""
guesses = super(EB_Advisor, self).make_module_req_guess()
lib_path = 'advisor_xe/lib64'
include_path = 'advisor_xe/include'
guesses.update({
'LD_LIBRARY_PATH': [lib_path],
'LIBRARY_PATH': [lib_path],
'CPATH': [include_path],
'INCLUDE': [include_path],
'PATH': ['advisor_xe/bin64'],
})
return guesses