-
Notifications
You must be signed in to change notification settings - Fork 149
SIM_LOG_DIR points to "${SCRIPT_DIR:?}"/log rather then /etc/astra-sim which requires sudo priviledges. #255
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: master
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 |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ ASTRA_SIM_DIR="${SCRIPT_DIR:?}"/../../astra-sim | |
| INPUT_DIR="${SCRIPT_DIR:?}"/../../inputs | ||
| NS3_DIR="${SCRIPT_DIR:?}"/../../extern/network_backend/ns3-interface | ||
| NS3_APPLICATION="${NS3_DIR:?}"/simulation/src/applications/ | ||
| SIM_LOG_DIR=/etc/astra-sim | ||
| SIM_LOG_DIR="${SCRIPT_DIR:?}"/log | ||
|
||
| BUILD_DIR="${SCRIPT_DIR:?}"/build/ | ||
| RESULT_DIR="${SCRIPT_DIR:?}"/result/ | ||
| BINARY="${BUILD_DIR}"/gem5.opt | ||
|
|
@@ -91,4 +91,4 @@ case "$1" in | |
| compile;; | ||
| -h|--help|*) | ||
| printf "Prints help message";; | ||
| esac | ||
| esac | ||
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.
This updates SIM_LOG_DIR to a writable repo-local path and the script creates directories under it, but parts of the simulator still appear to hardcode /etc/astra-sim for logs/results (e.g., MockNcclLog.h and SimAiMain.cc). If the goal is to avoid sudo requirements beyond just the build step, consider wiring SIM_LOG_DIR through to runtime (env/config/compile-time define) and aligning those hardcoded paths with this setting.