Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
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
containers
eic_container
Commits
3d4de595
Commit
3d4de595
authored
1 year ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: eic-spack dd4hep-pr1080
parent
e197430f
No related branches found
Branches containing commit
No related tags found
1 merge request
!585
feat: eic-spack dd4hep-pr1080
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
containers/jug/setup_detectors.py
+35
-14
35 additions, 14 deletions
containers/jug/setup_detectors.py
detectors.yaml
+26
-0
26 additions, 0 deletions
detectors.yaml
eic-spack.sh
+1
-1
1 addition, 1 deletion
eic-spack.sh
with
62 additions
and
15 deletions
containers/jug/setup_detectors.py
+
35
−
14
View file @
3d4de595
...
@@ -84,22 +84,43 @@ if __name__ == '__main__':
...
@@ -84,22 +84,43 @@ if __name__ == '__main__':
data_dir
=
'
{}/share/{}
'
.
format
(
prefix
,
det
)
data_dir
=
'
{}/share/{}
'
.
format
(
prefix
,
det
)
## build and install
## build and install
print
(
'
- {}-{}
'
.
format
(
det
,
cfg
[
'
version
'
]))
print
(
'
- {}-{}
'
.
format
(
det
,
cfg
[
'
version
'
]))
## clone/build/install detector libraries
## cleanup
cmd
=
[
'
rm -rf /tmp/build /tmp/det
'
,
cmd
=
[
'
rm -rf /tmp/build /tmp/det
'
]
'
&&
'
,
print
(
'
'
.
join
(
cmd
))
'
git clone --depth 1 -b {version} {repo_grp}/{detector}.git /tmp/det
'
.
format
(
subprocess
.
check_call
(
'
'
.
join
(
cmd
),
shell
=
True
)
version
=
cfg
[
'
version
'
],
## clone
repo_grp
=
DETECTOR_REPO_GROUP
,
cmd
=
[
detector
=
det
),
'
git clone --depth 1 -b {version} {repo_grp}/{detector}.git /tmp/det
'
.
format
(
'
&&
'
,
version
=
cfg
[
'
version
'
],
'
cmake -B /tmp/build -S /tmp/det -DCMAKE_CXX_STANDARD=17
'
,
repo_grp
=
DETECTOR_REPO_GROUP
,
'
-DCMAKE_CXX_FLAGS=
"
-Wno-psabi
"'
,
detector
=
det
)
'
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
'
,
]
'
-DCMAKE_INSTALL_PREFIX={prefix}
'
.
format
(
prefix
=
prefix
),
'
&&
'
,
'
cmake --build /tmp/build -j$(($(($(nproc)/4))+1)) -- install
'
]
print
(
'
'
.
join
(
cmd
))
print
(
'
'
.
join
(
cmd
))
subprocess
.
check_call
(
'
'
.
join
(
cmd
),
shell
=
True
)
subprocess
.
check_call
(
'
'
.
join
(
cmd
),
shell
=
True
)
## patches
if
cfg
.
get
(
'
patches
'
):
for
patch
in
cfg
[
'
patches
'
]:
cmd
=
[
f
'
curl -L
{
patch
}
| patch -p1 -d/tmp/det
'
]
print
(
'
'
.
join
(
cmd
))
subprocess
.
check_call
(
'
'
.
join
(
cmd
),
shell
=
True
)
## build
cxxflags
=
''
if
cfg
.
get
(
'
cxxflags
'
):
cxxflags
=
cfg
[
'
cxxflags
'
]
cmd
=
[
f
'
cmake -B /tmp/build -S /tmp/det -DCMAKE_CXX_STANDARD=17
'
,
f
'
-DCMAKE_CXX_FLAGS=
"
-Wno-psabi
{
cxxflags
}
"'
,
f
'
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
'
,
f
'
-DCMAKE_INSTALL_PREFIX=
{
prefix
}
'
]
print
(
'
'
.
join
(
cmd
))
subprocess
.
check_call
(
'
'
.
join
(
cmd
),
shell
=
True
)
## install
cmd
=
[
'
cmake --build /tmp/build -j$(($(($(nproc)/4))+1)) -- install
'
]
print
(
'
'
.
join
(
cmd
))
subprocess
.
check_output
(
'
'
.
join
(
cmd
),
shell
=
True
)
## write version info to jug_info if available
## write version info to jug_info if available
if
os
.
path
.
exists
(
'
/etc/jug_info
'
):
if
os
.
path
.
exists
(
'
/etc/jug_info
'
):
cmd
=
[
'
cd /tmp/det
'
,
cmd
=
[
'
cd /tmp/det
'
,
...
...
This diff is collapsed.
Click to expand it.
detectors.yaml
+
26
−
0
View file @
3d4de595
...
@@ -3,21 +3,47 @@ detectors:
...
@@ -3,21 +3,47 @@ detectors:
nightly
:
nightly
:
default
:
true
default
:
true
version
:
main
version
:
main
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
main
:
main
:
version
:
main
version
:
main
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
22.12.0
:
22.12.0
:
version
:
22.12.0
version
:
22.12.0
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.01.0
:
23.01.0
:
version
:
23.01.0
version
:
23.01.0
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.03.0
:
23.03.0
:
version
:
23.03.0
version
:
23.03.0
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.05.0
:
23.05.0
:
version
:
23.05.0
version
:
23.05.0
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.05.1
:
23.05.1
:
version
:
23.05.1
version
:
23.05.1
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.05.2
:
23.05.2
:
version
:
23.05.2
version
:
23.05.2
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.06.0
:
23.06.0
:
version
:
23.06.0
version
:
23.06.0
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
23.06.1
:
23.06.1
:
version
:
23.06.1
version
:
23.06.1
patches
:
-
https://github.com/eic/epic/pull/449.patch
cxxflags
:
-DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
This diff is collapsed.
Click to expand it.
eic-spack.sh
+
1
−
1
View file @
3d4de595
...
@@ -3,7 +3,7 @@ EICSPACK_ORGREPO="eic/eic-spack"
...
@@ -3,7 +3,7 @@ EICSPACK_ORGREPO="eic/eic-spack"
## EIC spack github version, e.g. v0.19.7 or commit hash
## EIC spack github version, e.g. v0.19.7 or commit hash
## note: nightly builds will use e.g. releases/v0.19
## note: nightly builds will use e.g. releases/v0.19
EICSPACK_VERSION
=
"v0.20.
3
"
EICSPACK_VERSION
=
"v0.20.
4
"
## Space-separated list of eic-spack cherry-picks
## Space-separated list of eic-spack cherry-picks
read
-r
-d
''
EICSPACK_CHERRYPICKS <<-
\
read
-r
-d
''
EICSPACK_CHERRYPICKS <<-
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment