-
Notifications
You must be signed in to change notification settings - Fork 221
Add environment variable for profiling EasyBuild #5040
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: develop
Are you sure you want to change the base?
Changes from all 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -122,7 +122,22 @@ then | |||||
| export FANCYLOGGER_IGNORE_MPI4PY=1 | ||||||
| fi | ||||||
|
|
||||||
| # If a profile filename is given, run easybuild via cProfile | ||||||
| if [ -z "${EB_PROFILE}" ] | ||||||
| then | ||||||
| EB_PROFILE_FLAGS=() | ||||||
| else | ||||||
| if [ "${pyver_min}" -lt "9" ] | ||||||
| then | ||||||
| echo "EB_PROFILE not supported for Python < 3.9" | ||||||
| EB_PROFILE="" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be setting
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Micket ping
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe start with an empty I'd also make it an error if EB_PROFILE can't be honored. |
||||||
| else | ||||||
| verbose "Writing profile output to: \"${EB_PROFILE}\"" | ||||||
| EB_PROFILE_FLAGS=(-m cProfile -o "${EB_PROFILE}") | ||||||
| fi | ||||||
| fi | ||||||
|
|
||||||
| export EB_SCRIPT_PATH="${0}" | ||||||
|
|
||||||
| verbose "${PYTHON} -m ${EASYBUILD_MAIN} ${*}" | ||||||
| exec "${PYTHON}" -m "${EASYBUILD_MAIN}" "${@}" | ||||||
| verbose "${PYTHON} ${EB_PROFILE_FLAGS[*]} -m ${EASYBUILD_MAIN} ${*}" | ||||||
| exec "${PYTHON}" "${EB_PROFILE_FLAGS[@]}" -m "${EASYBUILD_MAIN}" "${@}" | ||||||
Uh oh!
There was an error while loading. Please reload this page.