[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77X71FJ1KR7PTBPRC7S2241":3,"skill-same:01M77X71FJ1KR7PTBPRC7S2241":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M77X71FJ1KR7PTBPRC7S2241","exec-slurm-compile",null,"Compile TensorRT-LLM on a SLURM cluster. Covers submitting a batch job with a container image, monitoring the job, and verifying the build. Use when the user wants to compile TRT-LLM remotely via SLURM rather than on a local compute node.","vdcworkshop\u002FSkills-Catalog","vdcworkshop","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F275270998?v=4","01M77R8FXSKYTB2X9SSVJN7ZRZ","αtef βouafif","01M77R8FYGECN2YWM6WVBVPMGS",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F12 Blockchain\u002F01 Smart Contracts\u002Fexec-slurm-compile\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: exec-slurm-compile\r\ndescription: Compile TensorRT-LLM on a SLURM cluster. Covers submitting a batch job with a container image, monitoring the job, and verifying the build. Use when the user wants to compile TRT-LLM remotely via SLURM rather than on a local compute node.\r\nlicense: Apache-2.0\r\nmetadata:\r\n  author: NVIDIA Corporation\r\n---\r\n\r\n# Compile TensorRT-LLM on SLURM Cluster\r\n\r\nSubmit, monitor, and verify a TensorRT-LLM compilation job on a SLURM cluster using enroot containers.\r\n\r\n## When to Use\r\n\r\n| Scenario | Use This Skill? |\r\n|----------|----------------|\r\n| User wants to compile TRT-LLM on a SLURM cluster | Yes |\r\n| User is already on a compute node and wants to compile | No — use `exec-local-compile` skill instead |\r\n\r\n## Finding the Docker Image\r\n\r\nThe official Docker image tag for a given TensorRT-LLM version is recorded in the repo itself:\r\n\r\n```\r\n\u003Crepo_dir>\u002Fjenkins\u002Fcurrent_image_tags.properties\r\n```\r\n\r\nRead this file to find the current image URL (e.g., `urm.nvidia.com\u002Fsw-tensorrt-docker\u002Ftensorrt-llm:pytorch-25.12-py3-aarch64-ubuntu24.04-trt10.14.1.48-skip-tritondevel-202602011118-10901`).\r\n\r\n\r\n## Pre-dumping the Container Image (enroot import)\r\n\r\nSLURM clusters using enroot\u002Fpyxis require a `.sqsh` container image. To avoid download overhead at compile time, **pre-dump the image in advance** using the `enroot-import` companion script:\r\n\r\n```bash\r\n# Basic usage — submits a SLURM job on a CPU partition to import the image\r\nenroot-import --partition cpu_datamover --debug \u003Cdocker_image_url>\r\n```\r\n\r\nThe script submits an `sbatch` job that runs `enroot import docker:\u002F\u002F\u003Cimage_url>` and produces a `.sqsh` file in the current directory. The output on stdout is the SLURM job ID.\r\n\r\n### enroot-import flags\r\n\r\n| Flag | Description |\r\n|------|-------------|\r\n| `-p, --partition` | SLURM partition for the import job (use a CPU partition like `cpu_datamover`) |\r\n| `-d, --debug` | Enable debug output and preserve the SLURM log (recommended) |\r\n| `-o, --output` | Custom output path for the `.sqsh` file |\r\n| `-A, --account` | SLURM account (defaults to user's first account) |\r\n| `-t, --time` | Time limit for the import job (default: 1 hour) |\r\n| `-n, --just-print` | Print the sbatch command without executing |\r\n| `-J, --job-name` | Custom job name |\r\n\r\n### enroot-import workflow\r\n\r\n1. Read the image tag from `jenkins\u002Fcurrent_image_tags.properties` in the TRT-LLM repo.\r\n2. Run `enroot-import` to submit the import job:\r\n   ```bash\r\n   cd \u003Cdirectory_where_sqsh_should_be_stored>\r\n   \u003Cpath_to>\u002Fenroot-import --partition cpu_datamover --debug \u003Cimage_url>\r\n   ```\r\n   **IMPORTANT:** Convert `urm.nvidia.com\u002Fsw-tensorrt-docker\u002Ftensorrt-llm:xxx` to `urm.nvidia.com#sw-tensorrt-docker\u002Ftensorrt-llm:xxx` to avoid credential issues.\r\n3. Wait for the import job to complete (`squeue -j \u003Cjob_id>`).\r\n4. The resulting `.sqsh` file is the `container_image` used in the compile step.\r\n\r\n\r\n## Prerequisites\r\n\r\nThe user must provide (or you must ask for) these values:\r\n\r\n| Parameter | Description | Example |\r\n|-----------|-------------|---------|\r\n| `container_image` | Path to `.sqsh` container image (see enroot import above) | `\u002Fpath\u002Fto\u002Fpytorch.sqsh` |\r\n| `repo_dir` | Path to the TensorRT-LLM repository | `\u002Fpath\u002Fto\u002FTensorRT-LLM` |\r\n| `mount_dir` | Top-level directory to bind-mount into the container | `\u002Fshared\u002Fusers` |\r\n| `partition` | SLURM partition | `batch` |\r\n| `account` | SLURM account | `my_account` |\r\n\r\nOptional parameters:\r\n\r\n| Parameter | Description | Default |\r\n|-----------|-------------|---------|\r\n| `jobname` | SLURM job name | `trtllm-compile.\u003Cusername>` |\r\n| `gpu_count` | Number of GPUs to request | `4` |\r\n| `time_limit` | Job time limit | `02:00:00` |\r\n| `arch` | GPU architecture(s) for `-a` flag | `100-real` |\r\n| `extra_build_args` | Extra flags for `build_wheel.py` | (none) |\r\n\r\n## Companion Scripts\r\n\r\nThis skill includes three companion scripts in `scripts\u002F`:\r\n\r\n| Script | Purpose |\r\n|--------|---------|\r\n| `enroot-import` | Pre-dump a Docker image to `.sqsh` via a SLURM batch job |\r\n| `submit_compile.sh` | Template for submitting the SLURM job — copy and customize |\r\n| `compile.slurm` | SLURM batch script — launches the container and calls `compile.sh` |\r\n| `compile.sh` | Runs inside the container — executes `build_wheel.py` |\r\n\r\nScripts directory: `skills\u002Fexec-slurm-compile\u002Fscripts\u002F`\r\n\r\n## Instructions\r\n\r\nFollow these steps in order:\r\n\r\n### Step 0: Resolve the Container Image (if needed)\r\n\r\nIf the user does not already have a `.sqsh` container image:\r\n\r\n1. Read the Docker image tag from `\u003Crepo_dir>\u002Fjenkins\u002Fcurrent_image_tags.properties`.\r\n2. Use `enroot-import` to pre-dump it:\r\n   ```bash\r\n   cd \u003Cdirectory_for_sqsh_files>\r\n   \u003Cscripts_dir>\u002Fenroot-import --partition cpu_datamover --debug \u003Cimage_url>\r\n   ```\r\n3. Monitor the import job with `squeue -j \u003Cjob_id>`.\r\n4. Once complete, the `.sqsh` file path becomes the `container_image` parameter.\r\n\r\nIf the user already has a `.sqsh` file, skip this step.\r\n\r\n### Step 1: Gather Information\r\n\r\nAsk the user for any missing prerequisite values listed above. At minimum you need:\r\n- `container_image` (or the Docker image URL — then run Step 0 first)\r\n- `repo_dir`\r\n- `mount_dir`\r\n- `partition` and `account`\r\n\r\nIf the user has used this workflow before, check if previous values are stored in memory files.\r\n\r\n### Step 2: Prepare the Scripts Directory\r\n\r\nThe compile scripts must be accessible from inside the container (i.e., under `mount_dir`). Either:\r\n\r\n**Option A** — Copy companion scripts to a location under `mount_dir`:\r\n```bash\r\nscripts_dir=\u003Cmount_dir>\u002F\u003Cusername>\u002Fworkspace\u002Ftensorrt_llm_scripts\r\nmkdir -p ${scripts_dir}\u002Flog\r\ncp skills\u002Fexec-slurm-compile\u002Fscripts\u002Fcompile.sh ${scripts_dir}\u002F\r\ncp skills\u002Fexec-slurm-compile\u002Fscripts\u002Fcompile.slurm ${scripts_dir}\u002F\r\nchmod +x ${scripts_dir}\u002Fcompile.sh ${scripts_dir}\u002Fcompile.slurm\r\n```\r\n\r\n**Option B** — If the user already has scripts at a known location, use those directly.\r\n\r\n### Step 3: Submit the Job\r\n\r\nRun `sbatch` from the login node (or a node with SLURM client access):\r\n\r\n```bash\r\nsbatch \\\r\n    --nodes=1 --ntasks=1 --ntasks-per-node=1 \\\r\n    --gres=gpu:\u003Cgpu_count> \\\r\n    --partition=\u003Cpartition> \\\r\n    --account=\u003Caccount> \\\r\n    --job-name=\u003Cjobname> \\\r\n    --time=\u003Ctime_limit> \\\r\n    \u003Cscripts_dir>\u002Fcompile.slurm \\\r\n    \u003Ccontainer_image> \u003Cmount_dir> \u003Cscripts_dir> \u003Crepo_dir>\r\n```\r\n\r\nCapture and report the job ID from the `sbatch` output.\r\n\r\n### Step 4: Monitor the Job (Proactive — Do NOT Wait for User)\r\n\r\n**You MUST actively poll the job until it completes.** Do not submit and walk away.\r\n\r\n```bash\r\n# Check job status (repeat every 30-60 seconds)\r\nsqueue -j \u003Cjob_id> -o \"%.18i %.9P %.30j %.8u %.2t %.10M %.6D %R\"\r\n\r\n# Once running, periodically tail the log (do NOT use tail -f, use tail -30 instead)\r\ntail -30 \u003Cscripts_dir>\u002Flog\u002Fcompile_\u003Cjob_id>.srun.log\r\n```\r\n\r\n**Monitoring loop:**\r\n1. Poll `squeue -j \u003Cjob_id>` to check state\r\n2. If `PD` (pending) — report the reason, keep polling every 30-60s\r\n3. If `R` (running) — tail the build log every 30-60s; look for `[XX%] Building`, errors, or completion\r\n4. If the job disappears from `squeue`, it has finished — proceed to Step 5\r\n5. If `F` (failed) — immediately read the full log and report the error\r\n\r\n**Progress indicators to look for in the log:**\r\n- `[XX%] Building CXX object...` — compilation progress\r\n- `Linking CXX...` — link phase\r\n- `FAILED:`, `error:`, `fatal error:` — build failure\r\n- `Successfully built` — success\r\n\r\n### Step 5: Verify the Build\r\n\r\nOnce the job completes, check for success:\r\n\r\n```bash\r\n# Check SLURM exit code\r\nsacct -j \u003Cjob_id> --format=JobID,State,ExitCode,Elapsed\r\n\r\n# Check the build log for errors\r\ntail -50 \u003Cscripts_dir>\u002Flog\u002Fcompile_\u003Cjob_id>.srun.log\r\n```\r\n\r\nA successful build ends with a message like `Successfully built tensorrt_llm` or completes without error.\r\n\r\n## Common Build Flags Reference\r\n\r\n| Flag | Description |\r\n|------|-------------|\r\n| `--trt_root \u002Fusr\u002Flocal\u002Ftensorrt` | TensorRT installation path (standard in NVIDIA containers) |\r\n| `--benchmarks` | Build the C++ benchmarks |\r\n| `-a \"100-real\"` | Target architecture — `100` for Blackwell, `90` for Hopper, etc. |\r\n| `--nvtx` | Enable NVTX markers for profiling |\r\n| `--no-venv` | Skip virtual environment creation |\r\n| `-ccache` | Use ccache to speed up recompilation |\r\n| `--skip_building_wheel` | Build in-place without creating a wheel file |\r\n| `-f` | Fast build — skip some kernels for faster dev compilation |\r\n| `-c` | Clean build — wipe build directory before building |\r\n\r\nCommon architecture values:\r\n- `\"100-real\"` — Blackwell (B200, GB200)\r\n- `\"90-real\"` — Hopper (H100, H200)\r\n- `\"89-real\"` — Ada Lovelace (L40S)\r\n- `\"80-real\"` — Ampere (A100)\r\n- `\"90;100-real\"` — Multiple architectures\r\n\r\n## Troubleshooting\r\n\r\n| Issue | Solution |\r\n|-------|----------|\r\n| `sbatch: error: invalid partition` | Verify partition name with `sinfo -s` |\r\n| `sbatch: error: invalid account` | Check available accounts with `sacctmgr show assoc user=$USER` |\r\n| Container image not found | Verify the `.sqsh` path exists and is readable |\r\n| Build fails with missing TensorRT | Ensure `--trt_root` points to the correct path inside the container |\r\n| Build OOM (out of memory) | Reduce parallelism with `-j \u003CN>` flag to `build_wheel.py` |\r\n| `srun: error: Unable to create step` | The node may lack enroot\u002Fpyxis — check with cluster admin |\r\n| Job stuck in `PD` state | Check `squeue -j \u003Cid> -o %R` for the reason (e.g., resource limits, priority) |\r\n| `enroot import` fails with auth error | Check `~\u002F.config\u002Fenroot\u002F.credentials` has the correct registry credentials |\r\n| `enroot import` produces empty\u002Fcorrupt `.sqsh` | Re-run with `--debug` and check the SLURM log; verify the image URL has no `https:\u002F\u002F` prefix |\r\n| Weird compile issues | Retry with a clean build (`-c` flag) |\r\n| `QOSGrpNodeLimit` shown in `NODELIST(REASON)` | Not a blocker, just wait for the job to get scheduled |\r\n\r\n## Example Interaction\r\n\r\n**User**: \"Compile TRT-LLM on the OCI cluster\"\r\n\r\n**Agent actions**:\r\n1. Ask for container image path, repo path, mount dir (if not known)\r\n2. Confirm partition\u002Faccount for OCI cluster\r\n3. Copy scripts to accessible location under mount_dir\r\n4. Submit with `sbatch`\r\n5. Report job ID\r\n6. Monitor with `squeue` until complete\r\n7. Check logs and report success\u002Ffailure\r\n","# Compile TensorRT-LLM on SLURM Cluster\r\n\r\nSubmit, monitor, and verify a TensorRT-LLM compilation job on a SLURM cluster using enroot containers.\r\n\r\n## When to Use\r\n\r\n| Scenario | Use This Skill? |\r\n|----------|----------------|\r\n| User wants to compile TRT-LLM on a SLURM cluster | Yes |\r\n| User is already on a compute node and wants to compile | No — use `exec-local-compile` skill instead |\r\n\r\n## Finding the Docker Image\r\n\r\nThe official Docker image tag for a given TensorRT-LLM version is recorded in the repo itself:\r\n\r\n```\r\n\u003Crepo_dir>\u002Fjenkins\u002Fcurrent_image_tags.properties\r\n```\r\n\r\nRead this file to find the current image URL (e.g., `urm.nvidia.com\u002Fsw-tensorrt-docker\u002Ftensorrt-llm:pytorch-25.12-py3-aarch64-ubuntu24.04-trt10.14.1.48-skip-tritondevel-202602011118-10901`).\r\n\r\n\r\n## Pre-dumping the Container Image (enroot import)\r\n\r\nSLURM clusters using enroot\u002Fpyxis require a `.sqsh` container image. To avoid download overhead at compile time, **pre-dump the image in advance** using the `enroot-import` companion script:\r\n\r\n```bash\r\n# Basic usage — submits a SLURM job on a CPU partition to import the image\r\nenroot-import --partition cpu_datamover --debug \u003Cdocker_image_url>\r\n```\r\n\r\nThe script submits an `sbatch` job that runs `enroot import docker:\u002F\u002F\u003Cimage_url>` and produces a `.sqsh` file in the current directory. The output on stdout is the SLURM job ID.\r\n\r\n### enroot-import flags\r\n\r\n| Flag | Description |\r\n|------|-------------|\r\n| `-p, --partition` | SLURM partition for the import job (use a CPU partition like `cpu_datamover`) |\r\n| `-d, --debug` | Enable debug output and preserve the SLURM log (recommended) |\r\n| `-o, --output` | Custom output path for the `.sqsh` file |\r\n| `-A, --account` | SLURM account (defaults to user's first account) |\r\n| `-t, --time` | Time limit for the import job (default: 1 hour) |\r\n| `-n, --just-print` | Print the sbatch command without executing |\r\n| `-J, --job-name` | Custom job name |\r\n\r\n### enroot-import workflow\r\n\r\n1. Read the image tag from `jenkins\u002Fcurrent_image_tags.properties` in the TRT-LLM repo.\r\n2. Run `enroot-import` to submit the import job:\r\n   ```bash\r\n   cd \u003Cdirectory_where_sqsh_should_be_stored>\r\n   \u003Cpath_to>\u002Fenroot-import --partition cpu_datamover --debug \u003Cimage_url>\r\n   ```\r\n   **IMPORTANT:** Convert `urm.nvidia.com\u002Fsw-tensorrt-docker\u002Ftensorrt-llm:xxx` to `urm.nvidia.com#sw-tensorrt-docker\u002Ftensorrt-llm:xxx` to avoid credential issues.\r\n3. Wait for the import job to complete (`squeue -j \u003Cjob_id>`).\r\n4. The resulting `.sqsh` file is the `container_image` used in the compile step.\r\n\r\n\r\n## Prerequisites\r\n\r\nThe user must provide (or you must ask for) these values:\r\n\r\n| Parameter | Description | Example |\r\n|-----------|-------------|---------|\r\n| `container_image` | Path to `.sqsh` container image (see enroot import above) | `\u002Fpath\u002Fto\u002Fpytorch.sqsh` |\r\n| `repo_dir` | Path to the TensorRT-LLM repository | `\u002Fpath\u002Fto\u002FTensorRT-LLM` |\r\n| `mount_dir` | Top-level directory to bind-mount into the container | `\u002Fshared\u002Fusers` |\r\n| `partition` | SLURM partition | `batch` |\r\n| `account` | SLURM account | `my_account` |\r\n\r\nOptional parameters:\r\n\r\n| Parameter | Description | Default |\r\n|-----------|-------------|---------|\r\n| `jobname` | SLURM job name | `trtllm-compile.\u003Cusername>` |\r\n| `gpu_count` | Number of GPUs to request | `4` |\r\n| `time_limit` | Job time limit | `02:00:00` |\r\n| `arch` | GPU architecture(s) for `-a` flag | `100-real` |\r\n| `extra_build_args` | Extra flags for `build_wheel.py` | (none) |\r\n\r\n## Companion Scripts\r\n\r\nThis skill includes three companion scripts in `scripts\u002F`:\r\n\r\n| Script | Purpose |\r\n|--------|---------|\r\n| `enroot-import` | Pre-dump a Docker image to `.sqsh` via a SLURM batch job |\r\n| `submit_compile.sh` | Template for submitting the SLURM job — copy and customize |\r\n| `compile.slurm` | SLURM batch script — launches the container and calls `compile.sh` |\r\n| `compile.sh` | Runs inside the container — executes `build_wheel.py` |\r\n\r\nScripts directory: `skills\u002Fexec-slurm-compile\u002Fscripts\u002F`\r\n\r\n## Instructions\r\n\r\nFollow these steps in order:\r\n\r\n### Step 0: Resolve the Container Image (if needed)\r\n\r\nIf the user does not already have a `.sqsh` container image:\r\n\r\n1. Read the Docker image tag from `\u003Crepo_dir>\u002Fjenkins\u002Fcurrent_image_tags.properties`.\r\n2. Use `enroot-import` to pre-dump it:\r\n   ```bash\r\n   cd \u003Cdirectory_for_sqsh_files>\r\n   \u003Cscripts_dir>\u002Fenroot-import --partition cpu_datamover --debug \u003Cimage_url>\r\n   ```\r\n3. Monitor the import job with `squeue -j \u003Cjob_id>`.\r\n4. Once complete, the `.sqsh` file path becomes the `container_image` parameter.\r\n\r\nIf the user already has a `.sqsh` file, skip this step.\r\n\r\n### Step 1: Gather Information\r\n\r\nAsk the user for any missing prerequisite values listed above. At minimum you need:\r\n- `container_image` (or the Docker image URL — then run Step 0 first)\r\n- `repo_dir`\r\n- `mount_dir`\r\n- `partition` and `account`\r\n\r\nIf the user has used this workflow before, check if previous values are stored in memory files.\r\n\r\n### Step 2: Prepare the Scripts Directory\r\n\r\nThe compile scripts must be accessible from inside the container (i.e., under `mount_dir`). Either:\r\n\r\n**Option A** — Copy companion scripts to a location under `mount_dir`:\r\n```bash\r\nscripts_dir=\u003Cmount_dir>\u002F\u003Cusername>\u002Fworkspace\u002Ftensorrt_llm_scripts\r\nmkdir -p ${scripts_dir}\u002Flog\r\ncp skills\u002Fexec-slurm-compile\u002Fscripts\u002Fcompile.sh ${scripts_dir}\u002F\r\ncp skills\u002Fexec-slurm-compile\u002Fscripts\u002Fcompile.slurm ${scripts_dir}\u002F\r\nchmod +x ${scripts_dir}\u002Fcompile.sh ${scripts_dir}\u002Fcompile.slurm\r\n```\r\n\r\n**Option B** — If the user already has scripts at a known location, use those directly.\r\n\r\n### Step 3: Submit the Job\r\n\r\nRun `sbatch` from the login node (or a node with SLURM client access):\r\n\r\n```bash\r\nsbatch \\\r\n    --nodes=1 --ntasks=1 --ntasks-per-node=1 \\\r\n    --gres=gpu:\u003Cgpu_count> \\\r\n    --partition=\u003Cpartition> \\\r\n    --account=\u003Caccount> \\\r\n    --job-name=\u003Cjobname> \\\r\n    --time=\u003Ctime_limit> \\\r\n    \u003Cscripts_dir>\u002Fcompile.slurm \\\r\n    \u003Ccontainer_image> \u003Cmount_dir> \u003Cscripts_dir> \u003Crepo_dir>\r\n```\r\n\r\nCapture and report the job ID from the `sbatch` output.\r\n\r\n### Step 4: Monitor the Job (Proactive — Do NOT Wait for User)\r\n\r\n**You MUST actively poll the job until it completes.** Do not submit and walk away.\r\n\r\n```bash\r\n# Check job status (repeat every 30-60 seconds)\r\nsqueue -j \u003Cjob_id> -o \"%.18i %.9P %.30j %.8u %.2t %.10M %.6D %R\"\r\n\r\n# Once running, periodically tail the log (do NOT use tail -f, use tail -30 instead)\r\ntail -30 \u003Cscripts_dir>\u002Flog\u002Fcompile_\u003Cjob_id>.srun.log\r\n```\r\n\r\n**Monitoring loop:**\r\n1. Poll `squeue -j \u003Cjob_id>` to check state\r\n2. If `PD` (pending) — report the reason, keep polling every 30-60s\r\n3. If `R` (running) — tail the build log every 30-60s; look for `[XX%] Building`, errors, or completion\r\n4. If the job disappears from `squeue`, it has finished — proceed to Step 5\r\n5. If `F` (failed) — immediately read the full log and report the error\r\n\r\n**Progress indicators to look for in the log:**\r\n- `[XX%] Building CXX object...` — compilation progress\r\n- `Linking CXX...` — link phase\r\n- `FAILED:`, `error:`, `fatal error:` — build failure\r\n- `Successfully built` — success\r\n\r\n### Step 5: Verify the Build\r\n\r\nOnce the job completes, check for success:\r\n\r\n```bash\r\n# Check SLURM exit code\r\nsacct -j \u003Cjob_id> --format=JobID,State,ExitCode,Elapsed\r\n\r\n# Check the build log for errors\r\ntail -50 \u003Cscripts_dir>\u002Flog\u002Fcompile_\u003Cjob_id>.srun.log\r\n```\r\n\r\nA successful build ends with a message like `Successfully built tensorrt_llm` or completes without error.\r\n\r\n## Common Build Flags Reference\r\n\r\n| Flag | Description |\r\n|------|-------------|\r\n| `--trt_root \u002Fusr\u002Flocal\u002Ftensorrt` | TensorRT installation path (standard in NVIDIA containers) |\r\n| `--benchmarks` | Build the C++ benchmarks |\r\n| `-a \"100-real\"` | Target architecture — `100` for Blackwell, `90` for Hopper, etc. |\r\n| `--nvtx` | Enable NVTX markers for profiling |\r\n| `--no-venv` | Skip virtual environment creation |\r\n| `-ccache` | Use ccache to speed up recompilation |\r\n| `--skip_building_wheel` | Build in-place without creating a wheel file |\r\n| `-f` | Fast build — skip some kernels for faster dev compilation |\r\n| `-c` | Clean build — wipe build directory before building |\r\n\r\nCommon architecture values:\r\n- `\"100-real\"` — Blackwell (B200, GB200)\r\n- `\"90-real\"` — Hopper (H100, H200)\r\n- `\"89-real\"` — Ada Lovelace (L40S)\r\n- `\"80-real\"` — Ampere (A100)\r\n- `\"90;100-real\"` — Multiple architectures\r\n\r\n## Troubleshooting\r\n\r\n| Issue | Solution |\r\n|-------|----------|\r\n| `sbatch: error: invalid partition` | Verify partition name with `sinfo -s` |\r\n| `sbatch: error: invalid account` | Check available accounts with `sacctmgr show assoc user=$USER` |\r\n| Container image not found | Verify the `.sqsh` path exists and is readable |\r\n| Build fails with missing TensorRT | Ensure `--trt_root` points to the correct path inside the container |\r\n| Build OOM (out of memory) | Reduce parallelism with `-j \u003CN>` flag to `build_wheel.py` |\r\n| `srun: error: Unable to create step` | The node may lack enroot\u002Fpyxis — check with cluster admin |\r\n| Job stuck in `PD` state | Check `squeue -j \u003Cid> -o %R` for the reason (e.g., resource limits, priority) |\r\n| `enroot import` fails with auth error | Check `~\u002F.config\u002Fenroot\u002F.credentials` has the correct registry credentials |\r\n| `enroot import` produces empty\u002Fcorrupt `.sqsh` | Re-run with `--debug` and check the SLURM log; verify the image URL has no `https:\u002F\u002F` prefix |\r\n| Weird compile issues | Retry with a clean build (`-c` flag) |\r\n| `QOSGrpNodeLimit` shown in `NODELIST(REASON)` | Not a blocker, just wait for the job to get scheduled |\r\n\r\n## Example Interaction\r\n\r\n**User**: \"Compile TRT-LLM on the OCI cluster\"\r\n\r\n**Agent actions**:\r\n1. Ask for container image path, repo path, mount dir (if not known)\r\n2. Confirm partition\u002Faccount for OCI cluster\r\n3. Copy scripts to accessible location under mount_dir\r\n4. Submit with `sbatch`\r\n5. Report job ID\r\n6. Monitor with `squeue` until complete\r\n7. Check logs and report success\u002Ffailure\r\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25},"NVIDIA Corporation","main","cd5116e81009ad620d09c7bc8664ce8c37f88a99","12 Blockchain\u002F01 Smart Contracts\u002Fexec-slurm-compile",0,"https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog","https:\u002F\u002Fgithub.com\u002Fvdcworkshop","https:\u002F\u002Fvdcworkshop.com","2026-06-28 03:22:57",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add vdcworkshop\u002FSkills-Catalog --skill exec-slurm-compile",{"tool":40,"command":41},"bunx","bunx skills add vdcworkshop\u002FSkills-Catalog --skill exec-slurm-compile",{"tool":43,"command":44},"pnpm","pnpm dlx skills add vdcworkshop\u002FSkills-Catalog --skill exec-slurm-compile","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F12 Blockchain\u002F01 Smart Contracts\u002Fexec-slurm-compile\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"README.md","REFERENCE","参考文档",884,"https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F12 Blockchain\u002F01 Smart Contracts\u002Fexec-slurm-compile\u002FREADME.md",[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M77XBV88FMNX83MKDZMXKQZ2","rhaios-staging","Interact with the Rhaios staging REST API for yield operations. Discover -> prepare -> setup-if-needed -> sign -> execute flow with pluggable signer backend. Triggers on requests involving DeFi yield, vault deposits, redeems, rebalancing, or Rhaios API.","MIT","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F12 Blockchain\u002F03 DeFi\u002Frhaios-staging\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M77X7AFQGDCFHC25GQ7V92GZ","git-commit-push","Commit and push repository changes safely. Use when user asks to commit, push, or verify and push current changes.","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F12 Blockchain\u002F01 Smart Contracts\u002Fgit-commit-push\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M77X4BQJ025SPPGRQ96X72QV","databases","Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F11 Databases\u002F03 NoSQL Databases\u002Fdatabases\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M77WZYZGCV9DK5HA0XCWSK97","toast","Toast — restaurant POS, orders, menus, employees, revenue centers, and reporting.","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F10 Lifestyle\u002F06 Culinary Arts\u002Ftoast\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":59,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M77WYYESVCXT81ERPHM77SA9","k-schoollunch-menu","Use when the user asks for Korean school meal menus (급식 식단) by natural-language education office and school name, via k-skill-proxy NEIS school-search and school-meal routes.","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F10 Lifestyle\u002F06 Culinary Arts\u002Fk-schoollunch-menu\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M77WY04ZKD4198EE489KQV2N","theme-factory","This skill provides a curated collection of professional font and color themes themes, each with carefully selected color palettes and font pairings. Once a theme is chosen, it can be applied to any artifact.","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F10 Lifestyle\u002F05 Arts & Crafts\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fvdcworkshop\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F10 Lifestyle\u002F05 Arts & Crafts\u002Ftheme-factory\u002FSKILL.md",[],[]]