Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
easybuild-easyblocks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
easybuild-easyblocks
Merge requests
!4
"git@code.it4i.cz:sccs/docs.it4i.cz.git" did not exist on "5fd92acd46e868982725be9b2c54b0b207b6f80d"
deleted: easyblocks/v/vtune.py
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
deleted: easyblocks/v/vtune.py
it4i-anselm
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Lukáš Krupčík
requested to merge
it4i-anselm
into
master
7 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
19233a99
1 commit,
7 years ago
1 file
+
0
−
98
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
easyblocks/v/vtune.py deleted
100644 → 0
+
0
−
98
Options
#!/usr/bin/env python
#
# Copyright (C) 2015 IT4Innovations
# Lumir Jasiok
# lumir.jasiok@vsb.cz
# http://www.it4i.cz
#
#
#
"""
EasyBuild support for building and installing Intel VTune Amplifier,
implemented as an easyblock.
@author: Lumir Jasiok (IT4Innovations)
"""
import
os
from
easybuild.easyblocks.generic.intelbase
import
IntelBase
from
easybuild.tools.run
import
run_cmd
class
EB_VTune
(
IntelBase
):
"""
Support for installing Intel VTune Amplifier XE
"""
def
install_step
(
self
):
"""
Actual installation
- create silent.cfg
- run install.sh
"""
kernel_version
=
os
.
uname
()[
2
]
silent_cfg
=
"""
ACCEPT_EULA=accept
CONTINUE_WITH_OPTIONAL_ERROR=yes
PSET_INSTALL_DIR=%s
CONTINUE_WITH_INSTALLDIR_OVERWRITE=yes
PSET_MODE=install
ACTIVATION_TYPE=license_file
ACTIVATION_LICENSE_FILE=%s
CLUSTER_INSTALL_AUTOMOUNT=yes
PHONEHOME_SEND_USAGE_DATA=no
AMPLIFIER_SAMPLING_DRIVER_INSTALL_TYPE=kit
AMPLIFIER_DRIVER_ACCESS_GROUP=wheel
AMPLIFIER_DRIVER_PERMISSIONS=666
AMPLIFIER_LOAD_DRIVER=no
AMPLIFIER_C_COMPILER=/usr/bin/gcc
AMPLIFIER_KERNEL_SRC_DIR=/lib/modules/%s/build
AMPLIFIER_MAKE_COMMAND=/usr/bin/make
AMPLIFIER_INSTALL_BOOT_SCRIPT=no
AMPLIFIER_DRIVER_PER_USER_MODE=no
MPSS_RESTART_STACK=no
MPSS_INSTALL_STACK=no
COMPONENTS=ALL
"""
%
(
self
.
installdir
,
self
.
license_file
,
kernel_version
)
build_dir
=
self
.
cfg
[
'
start_dir
'
]
silent_file
=
os
.
path
.
join
(
build_dir
,
'
silent.cfg
'
)
fd
=
open
(
silent_file
,
'
w
'
)
fd
.
write
(
silent_cfg
)
fd
.
close
()
os
.
chdir
(
build_dir
)
self
.
log
.
info
(
"
Build dir is %s
"
%
(
build_dir
))
cmd
=
"
./install.sh -s silent.cfg --SHARED_INSTALL
"
run_cmd
(
cmd
,
log_all
=
True
,
simple
=
True
)
return
True
def
make_module_req_guess
(
self
):
"""
A dictionary of possible directories to look for
"""
guesses
=
super
(
EB_VTune
,
self
).
make_module_req_guess
()
if
self
.
cfg
[
'
m32
'
]:
guesses
.
update
({
'
PATH
'
:
[
'
vtune_amplifier_xe/bin32
'
],
'
LD_LIBRARY_PATH
'
:
[
'
vtune_amplifier_xe/lib32
'
],
'
LIBRARY_PATH
'
:
[
'
vtune_amplifier_xe/lib32
'
],
})
else
:
guesses
.
update
({
'
PATH
'
:
[
'
vtune_amplifier_xe/bin64
'
],
'
LD_LIBRARY_PATH
'
:
[
'
vtune_amplifier_xe/lib64
'
],
'
LIBRARY_PATH
'
:
[
'
vtune_amplifier_xe/lib64
'
],
})
guesses
.
update
({
'
CPATH
'
:
[
'
vtune_amplifier_xe/include
'
],
'
FPATH
'
:
[
'
vtune_amplifier_xe/include
'
],
'
MANPATH
'
:
[
'
vtune_amplifier_xe/man
'
],
})
return
guesses
Loading