-
Notifications
You must be signed in to change notification settings - Fork 843
Updates for condor on CMS Connect in singularity #3845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mg265UL
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,14 @@ | ||
| #! /bin/bash | ||
| #!/bin/bash | ||
|
|
||
| # HTCondor python bindings are lost after cmsenv/scram | ||
| # unless PYTHONPATH is set including its location | ||
| # Workaround: Include original location in the path | ||
| # if not there already. | ||
| PYTHON_BINDINGS="$(python -c 'import htcondor; import os; print os.path.dirname(htcondor.__path__[0])' 2>/dev/null)" | ||
| PYTHON_BINDINGS="$(python -c 'import htcondor; import os; print(os.path.dirname(htcondor.__path__[0]))' 2>/dev/null)" | ||
| if [ -z "$PYTHON_BINDINGS" ]; then | ||
| echo "Error: Could not find htcondor python binding (htcondor.so), please include the directory in PYTHONPATH." | ||
| exit 1 | ||
| if [ -d $CMSSW_BASE/venv ]; | ||
| then | ||
| echo "venv exists" | ||
| else | ||
| if [ -n "$PYTHONPATH" ]; then | ||
| case ":$PYTHONPATH:" in | ||
| *:$PYTHON_BINDINGS:*) : | ||
| ;; | ||
| *) export PYTHONPATH="$PYTHON_BINDINGS:$PYTHONPATH" | ||
| ;; | ||
| esac | ||
| else | ||
| export PYTHONPATH="$PYTHON_BINDINGS" | ||
| fi | ||
| export PYTHON_BINDINGS="$PYTHON_BINDINGS" | ||
| scram-venv | ||
| cmsenv | ||
| pip3 install htcondor --upgrade #FIXME need better way to interface HTCondor Python API for Python3.9 | ||
| fi | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| #!/bin/bash | ||
| unset PERL5LIB | ||
|
|
||
| source Utilities/cmsconnect_utils.sh | ||
| source Utilities/source_condor.sh | ||
|
|
@@ -21,6 +22,9 @@ cat<<-EOF | |
| +GridpackCard = "${card_name}" | ||
|
|
||
| +REQUIRED_OS = "${rhel_ver}" | ||
| #Requirements = HAS_SINGULARITY == True | ||
| #+SingularityImage = "/cvmfs/singularity.opensciencegrid.org/opensciencegrid/osgvo-el7:latest" | ||
| #use_x509userproxy = true | ||
| request_cpus = $cores | ||
| request_memory = $memory | ||
| Queue 1 | ||
|
|
@@ -51,6 +55,7 @@ cat<<-EOF | |
|
|
||
| # Purdue wokaround | ||
| unset CXX CC FC | ||
| unset PERL5LIB | ||
| # Run | ||
| iscmsconnect=1 bash -x gridpack_generation.sh "${card_name}" "${card_dir}" "${workqueue}" CODEGEN "${scram_arch}" "${cmssw_version}" | ||
| exitcode=\$? | ||
|
|
@@ -222,8 +227,9 @@ input_files="input_${card_name}.tar.gz" | |
| patches_directory="./patches" | ||
| utilities_dir="./Utilities" | ||
| plugin_directory="./PLUGIN" | ||
| addons_dir="./addons" # awightma | ||
| if [ -e "$input_files" ]; then rm "$input_files"; fi | ||
| tar -zchf "$input_files" "$card_dir" "$patches_directory" "$utilities_dir" "${plugin_directory}" | ||
| tar -zchf "$input_files" "$card_dir" "$patches_directory" "$utilities_dir" "${plugin_directory}" "${addons_dir}" | ||
|
||
|
|
||
| ## Create a submit file for a single job | ||
| # create_codegen_exe arguments are: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
el9 gridpacks won't work for official production yet (that's why we just didn't care about el9 so much in the script), or is the container-in-container prepared? @DickyChant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should officially disable el9 instead of making it work like this (el9 gridpacks are not going to be usable for official production) , talked to sitian
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed