Skip to content

Add configurable Slurm submission workflow#1

Open
lullu57 wants to merge 2 commits into
yazdinip:mainfrom
lullu57:codex/slurm-workflow
Open

Add configurable Slurm submission workflow#1
lullu57 wants to merge 2 commits into
yazdinip:mainfrom
lullu57:codex/slurm-workflow

Conversation

@lullu57

@lullu57 lullu57 commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add reusable Slurm submit and array worker scripts for KernelTuner experiments
  • support configurable log, scratch, and artifact directories for cluster runs
  • support Slurm native mail settings and worker-level email alerts
  • document the submission flow in the README

Notes

  • keeps the untracked CUDA Agent PDF out of the commit
  • uses a fork-based PR because direct push to upstream is not permitted for the current GitHub account

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3869101b5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +82 to +84
EXPERIMENT_CFG="${EXPERIMENTS[$TASK_ID]}"
if [[ ! -f "$EXPERIMENT_CFG" ]]; then
echo "ERROR: Experiment config not found: $EXPERIMENT_CFG" >&2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve list entries relative to workspace before file check

The worker reads each list entry into EXPERIMENT_CFG and immediately checks -f on that raw value, but the example list uses relative paths (for example configs/experiments/...). If submission happens from a different directory (or the job starts with a different cwd), tasks fail with Experiment config not found even though the config exists under WORKSPACE_ROOT, which breaks the advertised reusable submission flow for cluster runs.

Useful? React with 👍 / 👎.

fi

EXPERIMENT_LIST_FILE="$1"
WORKSPACE_ROOT="${2:-$SLURM_SUBMIT_DIR}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid unbound SLURM_SUBMIT_DIR in optional workspace default

Because set -u is enabled, WORKSPACE_ROOT="${2:-$SLURM_SUBMIT_DIR}" exits immediately when the script is invoked with only the required list argument outside a Slurm-launched environment, even though usage declares workspace_root as optional. This makes direct invocation (including local dry-run debugging) fail before any meaningful validation or execution.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant