Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common_bench
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
EIC
benchmarks
common_bench
Commits
e5f3bf54
Commit
e5f3bf54
authored
1 year ago
by
Dmitry Kalinkin
Browse files
Options
Downloads
Patches
Plain Diff
add bin/build_eicrecon.sh (like the build_detector.sh)
parent
743ccd6b
No related branches found
No related tags found
1 merge request
!72
Draft: add bin/build_eicrecon.sh (like the build_detector.sh)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+11
-0
11 additions, 0 deletions
.gitlab-ci.yml
bin/build_eicrecon.sh
+48
-0
48 additions, 0 deletions
bin/build_eicrecon.sh
bin/env.sh
+6
-0
6 additions, 0 deletions
bin/env.sh
with
65 additions
and
0 deletions
.gitlab-ci.yml
+
11
−
0
View file @
e5f3bf54
...
@@ -69,6 +69,15 @@ common:detector:
...
@@ -69,6 +69,15 @@ common:detector:
-
print_env.sh
-
print_env.sh
-
ls -lrth
-
ls -lrth
common:eicrecon
:
stage
:
initialize
rules
:
-
if
:
'
$CI_SERVER_HOST
==
"eicweb.phy.anl.gov"'
needs
:
[
"
common:setup"
]
script
:
-
source .local/bin/env.sh && build_eicrecon.sh
detector_benchmarks
:
detector_benchmarks
:
stage
:
benchmarks
stage
:
benchmarks
rules
:
rules
:
...
@@ -85,7 +94,9 @@ detector_benchmarks:
...
@@ -85,7 +94,9 @@ detector_benchmarks:
DETECTOR_CONFIG
:
'
epic_arches'
DETECTOR_CONFIG
:
'
epic_arches'
DETECTOR_VERSION
:
'
main'
DETECTOR_VERSION
:
'
main'
DETECTOR_REPOSITORYURL
:
'
https://github.com/eic/epic.git'
DETECTOR_REPOSITORYURL
:
'
https://github.com/eic/epic.git'
EICRECON_REPOSITORYURL
:
'
https://github.com/eic/EICrecon.git'
-
DETECTOR
:
'
epic'
-
DETECTOR
:
'
epic'
DETECTOR_CONFIG
:
'
epic_brycecanyon'
DETECTOR_CONFIG
:
'
epic_brycecanyon'
DETECTOR_VERSION
:
'
main'
DETECTOR_VERSION
:
'
main'
DETECTOR_REPOSITORYURL
:
'
https://github.com/eic/epic.git'
DETECTOR_REPOSITORYURL
:
'
https://github.com/eic/epic.git'
EICRECON_REPOSITORYURL
:
'
https://github.com/eic/EICrecon.git'
This diff is collapsed.
Click to expand it.
bin/build_eicrecon.sh
0 → 100755
+
48
−
0
View file @
e5f3bf54
#!/bin/bash
## =============================================================================
## Build and install the EICrecon package into our local prefix
## =============================================================================
## =============================================================================
## Load the environment variables. To build the detector we need the following
## variables:
##
## - LOCAL_PREFIX: location where local packages should be installed
if
[
-n
"
${
LOCAL_PREFIX
}
"
]
;
then
source
.local/bin/env.sh
else
source
${
LOCAL_PREFIX
}
/bin/env.sh
fi
## =============================================================================
## Step 1: download/update the detector definitions (if needed)
pushd
"
$(
mktemp
-d
)
"
echo
"Fetching EICrecon"
if
[
-n
"
${
DETECTOR_DEPLOY_TOKEN_USERNAME
:-}
"
-a
-n
"
${
DETECTOR_DEPLOY_TOKEN_PASSWORD
:-}
"
]
;
then
DEPLOY_TOKEN
=
"
${
DETECTOR_DEPLOY_TOKEN_USERNAME
}
:
${
DETECTOR_DEPLOY_TOKEN_PASSWORD
}
@"
echo
"Deploy token for
${
DETECTOR_DEPLOY_TOKEN_USERNAME
}
is masked in the next line."
else
DEPLOY_TOKEN
=
""
fi
echo
"git clone -b
${
EICRECON_VERSION
}
--depth 1
${
EICRECON_REPOSITORYURL
:-
https
://eicweb.phy.anl.gov/EIC/eicrecons/EICrecon.git
}
EICrecon"
git clone
-b
${
EICRECON_VERSION
}
--depth
1
${
EICRECON_REPOSITORYURL
:-
https
://
${
DEPLOY_TOKEN
}
eicweb
.phy.anl.gov/EIC/eicrecons/EICrecon.git
}
EICrecon
rm
-rf
"EICrecon/.git"
## =============================================================================
## Step 2: Compile and install the detector definition
echo
"Building and installing the
${
DETECTOR
}
package"
cd
EICrecon
cmake
-DCMAKE_INSTALL_PREFIX
=
${
LOCAL_PREFIX
}
&&
make
-j
$((
$(
nproc
)
/
4
+
1
))
install
||
exit
1
TO_REMOVE
=
"
$PWD
"
popd
rm
-rf
"
$TO_REMOVE
"
unset
TO_REMOVE
## =============================================================================
## Step 3: That's all!
echo
"Detector build/install complete!"
This diff is collapsed.
Click to expand it.
bin/env.sh
+
6
−
0
View file @
e5f3bf54
...
@@ -127,6 +127,12 @@ echo "LOCAL_DATA_PATH=${LOCAL_DATA_PATH}" >> .env
...
@@ -127,6 +127,12 @@ echo "LOCAL_DATA_PATH=${LOCAL_DATA_PATH}" >> .env
echo
"Adding LOCAL_PREFIX to PATH and LD_LIBRARY_PATH"
echo
"Adding LOCAL_PREFIX to PATH and LD_LIBRARY_PATH"
export
PATH
=
${
LOCAL_PREFIX
}
/bin:
${
PATH
}
export
PATH
=
${
LOCAL_PREFIX
}
/bin:
${
PATH
}
export
LD_LIBRARY_PATH
=
${
LOCAL_PREFIX
}
/lib:
${
LD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
${
LOCAL_PREFIX
}
/lib:
${
LD_LIBRARY_PATH
}
if
[
-d
"
${
LOCAL_PREFIX
}
/lib/EICrecon/plugins"
]
;
then
echo
"Using EICrecon plugins from
${
LOCAL_PREFIX
}
/lib/EICrecon/plugins"
export
JANA_PLUGIN_PATH
=
${
LOCAL_PREFIX
}
/lib/EICrecon/plugins
else
echo
"The
${
LOCAL_PREFIX
}
/lib/EICrecon/plugins doesn't exist"
fi
# Local field maps
# Local field maps
mkdir
-p
${
LOCAL_DATA_PATH
}
/fieldmaps
mkdir
-p
${
LOCAL_DATA_PATH
}
/fieldmaps
...
...
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