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
Merge requests
!72
Draft: add bin/build_eicrecon.sh (like the build_detector.sh)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: add bin/build_eicrecon.sh (like the build_detector.sh)
pr/build_eicrecon
into
master
Overview
3
Commits
1
Pipelines
0
Changes
3
Open
Dmitry Kalinkin
requested to merge
pr/build_eicrecon
into
master
1 year ago
Overview
3
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
master
version 1
6ef33080
1 year ago
master (base)
and
latest version
latest version
e5f3bf54
1 commit,
1 year ago
version 1
6ef33080
1 commit,
1 year ago
3 files
+
65
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
bin/build_eicrecon.sh
0 → 100755
+
48
−
0
Options
#!/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!"
Loading