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
b93589e9
Commit
b93589e9
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: remove beam line and accelerator installation
parent
0b448d19
No related branches found
No related tags found
1 merge request
!63
feat: remove beam line and accelerator installation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
bin/build_detector.sh
+0
-44
0 additions, 44 deletions
bin/build_detector.sh
with
2 additions
and
46 deletions
.gitlab-ci.yml
+
2
−
2
View file @
b93589e9
...
...
@@ -82,11 +82,11 @@ detector_benchmarks:
parallel
:
matrix
:
-
DETECTOR
:
'
epic'
DETECTOR_CONFIG
:
'
epic_
imaging
'
DETECTOR_CONFIG
:
'
epic_
arches
'
DETECTOR_VERSION
:
'
main'
DETECTOR_REPOSITORYURL
:
'
https://github.com/eic/epic.git'
-
DETECTOR
:
'
epic'
DETECTOR_CONFIG
:
'
epic_
sciglass
'
DETECTOR_CONFIG
:
'
epic_
brycecanyon
'
DETECTOR_VERSION
:
'
main'
DETECTOR_REPOSITORYURL
:
'
https://github.com/eic/epic.git'
...
...
This diff is collapsed.
Click to expand it.
bin/build_detector.sh
+
0
−
44
View file @
b93589e9
...
...
@@ -47,42 +47,6 @@ if [ -f "${DETECTOR}/requirements.txt" ] ; then
fi
rm
-rf
"
${
DETECTOR
}
/.git"
## We need an up-to-date copy of the detector
## start clean to avoid issues...
if
[
-d
"
${
BEAMLINE_CONFIG
}
"
]
;
then
echo
"cleaning up
${
BEAMLINE_CONFIG
}
"
mv
"
${
BEAMLINE_CONFIG
}
"
"
$(
mktemp
)
-
${
BEAMLINE_CONFIG
}
"
fi
echo
"Fetching
${
BEAMLINE_CONFIG
}
"
if
[
-n
"
${
BEAMLINE_CONFIG_DEPLOY_TOKEN_USERNAME
:-}
"
-a
-n
"
${
BEAMLINE_CONFIG_DEPLOY_TOKEN_PASSWORD
:-}
"
]
;
then
DEPLOY_TOKEN
=
"
${
BEAMLINE_CONFIG_DEPLOY_TOKEN_USERNAME
}
:
${
BEAMLINE_CONFIG_DEPLOY_TOKEN_PASSWORD
}
@"
echo
"Deploy token for
${
BEAMLINE_CONFIG_DEPLOY_TOKEN_USERNAME
}
is masked in the next line."
else
DEPLOY_TOKEN
=
""
fi
echo
"git clone -b
${
BEAMLINE_CONFIG_VERSION
}
--depth 1
${
BEAMLINE_REPOSITORYURL
:-
https
://eicweb.phy.anl.gov/EIC/detectors/
${
BEAMLINE_CONFIG
}
.git
}
${
BEAMLINE_CONFIG
}
"
git clone
-b
${
BEAMLINE_CONFIG_VERSION
}
--depth
1
${
BEAMLINE_REPOSITORYURL
:-
https
://
${
DEPLOY_TOKEN
}
eicweb
.phy.anl.gov/EIC/detectors/
${
BEAMLINE_CONFIG
}
.git
}
${
BEAMLINE_CONFIG
}
[[
"
$?
"
==
"0"
]]
||
exit
1
rm
-rf
"
${
BEAMLINE_CONFIG
}
/.git"
## We also need an up-to-date copy of the accelerator. For now this is done
## manually. Down the road we could maybe automize this with cmake
if
[
-d
accelerator
]
;
then
echo
"cleaning up accelerator"
mv
"accelerator"
"
$(
mktemp
)
-accelerator"
fi
echo
"Fetching accelerator"
git clone
--depth
1 https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git
[[
"
$?
"
==
"0"
]]
||
exit
1
rm
-rf
"accelerator/.git"
## Now symlink the accelerator definition into the detector definition
echo
"Linking accelerator definition into detector definition"
ln
-s
-f
${
DETECTOR_PREFIX
}
/accelerator/eic
${
DETECTOR_PATH
}
/eic
[[
"
$?
"
==
"0"
]]
||
exit
1
ln
-s
-f
${
DETECTOR_PREFIX
}
/
${
BEAMLINE_CONFIG
}
/
${
BEAMLINE_CONFIG
}
${
DETECTOR_PATH
}
/
${
BEAMLINE_CONFIG
}
[[
"
$?
"
==
"0"
]]
||
exit
1
popd
## =============================================================================
## Step 2: Compile and install the detector definition
...
...
@@ -94,14 +58,6 @@ cmake ${DETECTOR_PATH} -DCMAKE_INSTALL_PREFIX=${LOCAL_PREFIX} -DCMAKE_CXX_STANDA
popd
rm
-rf
${
DETECTOR_PREFIX
}
/
${
DETECTOR
}
_build
mkdir
-p
${
DETECTOR_PREFIX
}
/
${
BEAMLINE_CONFIG
}
_build
pushd
${
DETECTOR_PREFIX
}
/
${
BEAMLINE_CONFIG
}
_build
cmake
${
DETECTOR_PREFIX
}
/
${
BEAMLINE_CONFIG
}
-DCMAKE_INSTALL_PREFIX
=
${
LOCAL_PREFIX
}
-DCMAKE_CXX_STANDARD
=
17
&&
make
-j
$((
$(
nproc
)
/
4
+
1
))
install
||
exit
1
popd
rm
-rf
${
DETECTOR_PREFIX
}
/
${
BEAMLINE_CONFIG
}
_build
## =============================================================================
## Step 3: That's all!
echo
"Detector build/install complete!"
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