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
5fcdbc6e
Commit
5fcdbc6e
authored
4 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Add local data setup to env script"
parent
6b8f89b4
No related branches found
No related tags found
1 merge request
!1
Resolve "Add local data setup to env script"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/env.sh
+6
-1
6 additions, 1 deletion
bin/env.sh
bin/mkdir_local_data_link
+11
-0
11 additions, 0 deletions
bin/mkdir_local_data_link
share/common.yml
+2
-2
2 additions, 2 deletions
share/common.yml
with
19 additions
and
3 deletions
bin/env.sh
+
6
−
1
View file @
5fcdbc6e
...
@@ -87,6 +87,11 @@ export JUGGLER_INSTALL_PREFIX=`realpath ${JUGGLER_INSTALL_PREFIX}`
...
@@ -87,6 +87,11 @@ export JUGGLER_INSTALL_PREFIX=`realpath ${JUGGLER_INSTALL_PREFIX}`
if
[
!
-n
"
${
LOCAL_DATA_PATH
}
"
]
;
then
if
[
!
-n
"
${
LOCAL_DATA_PATH
}
"
]
;
then
export
LOCAL_DATA_PATH
=
"/scratch/
${
CI_PROJECT_NAME
}
_
${
CI_PIPELINE_ID
}
"
export
LOCAL_DATA_PATH
=
"/scratch/
${
CI_PROJECT_NAME
}
_
${
CI_PIPELINE_ID
}
"
fi
fi
mkdir
-p
"
${
LOCAL_DATA_PATH
}
"
if
[
!
-d
"
${
LOCAL_DATA_PATH
}
"
]
;
then
echo
"LOCAL_DATA_PATH (
${
LOCAL_DATA_PATH
}
) does not exist!!"
exit
1
fi
## =============================================================================
## =============================================================================
## Other utility variables that govern how some of the dependent packages
## Other utility variables that govern how some of the dependent packages
...
@@ -115,12 +120,12 @@ echo "JUGGLER_N_THREADS: ${JUGGLER_N_THREADS}"
...
@@ -115,12 +120,12 @@ echo "JUGGLER_N_THREADS: ${JUGGLER_N_THREADS}"
echo
"JUGGLER_RNG_SEED:
${
JUGGLER_RNG_SEED
}
"
echo
"JUGGLER_RNG_SEED:
${
JUGGLER_RNG_SEED
}
"
echo
"JUGGLER_INSTALL_PREFIX:
${
JUGGLER_INSTALL_PREFIX
}
"
echo
"JUGGLER_INSTALL_PREFIX:
${
JUGGLER_INSTALL_PREFIX
}
"
echo
"LOCAL_PREFIX:
${
LOCAL_PREFIX
}
"
echo
"LOCAL_PREFIX:
${
LOCAL_PREFIX
}
"
echo
"LOCAL_DATA_PATH:
${
LOCAL_DATA_PATH
}
"
echo
"DETECTOR_PREFIX:
${
DETECTOR_PREFIX
}
"
echo
"DETECTOR_PREFIX:
${
DETECTOR_PREFIX
}
"
echo
"DETECTOR_PATH:
${
DETECTOR_PATH
}
"
echo
"DETECTOR_PATH:
${
DETECTOR_PATH
}
"
echo
"ROOT_BUILD_DIR:
${
ROOT_BUILD_DIR
}
"
echo
"ROOT_BUILD_DIR:
${
ROOT_BUILD_DIR
}
"
echo
"BEAMLINE_CONFIG:
${
BEAMLINE_CONFIG
}
"
echo
"BEAMLINE_CONFIG:
${
BEAMLINE_CONFIG
}
"
echo
"BEAMLINE_CONFIG_VERSION:
${
BEAMLINE_CONFIG_VERSION
}
"
echo
"BEAMLINE_CONFIG_VERSION:
${
BEAMLINE_CONFIG_VERSION
}
"
echo
"LOCAL_DATA_PATH:
${
LOCAL_DATA_PATH
}
"
## =============================================================================
## =============================================================================
## Setup PATH and LD_LIBRARY_PATH to include our prefixes
## Setup PATH and LD_LIBRARY_PATH to include our prefixes
...
...
This diff is collapsed.
Click to expand it.
bin/mkdir_local_data_link
0 → 100755
+
11
−
0
View file @
5fcdbc6e
#!/bin/bash
set
-o
nounset
set
-o
errexit
dirname
=
"
$1
"
mkdir
-p
"
${
LOCAL_DATA_PATH
}
/
${
dirname
}
"
ln
-s
"
${
LOCAL_DATA_PATH
}
/
${
dirname
}
"
${
dirname
}
This diff is collapsed.
Click to expand it.
share/common.yml
+
2
−
2
View file @
5fcdbc6e
...
@@ -29,6 +29,6 @@ common:detector:
...
@@ -29,6 +29,6 @@ common:detector:
-
config
-
config
script
:
script
:
-
source .local/bin/env.sh && build_detector.sh
-
source .local/bin/env.sh && build_detector.sh
-
mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}
-
bin/mkdir_local_data_link sim_output
-
mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}/sim_output
-
print_env.sh
-
print_env.sh
-
ls -lrth
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