fix: nsys output to /workspace/output (data PVC is read-only)

This commit is contained in:
jgrusewski
2026-04-19 10:47:11 +02:00
parent 276492be84
commit 4b53b5b2f3

View File

@@ -548,8 +548,8 @@ spec:
if [ "$SANITIZER" = "nsys" ]; then
NSYS_BIN=$(which nsys 2>/dev/null || echo "/usr/local/cuda/bin/nsys")
if [ -x "$NSYS_BIN" ]; then
NSYS_OUT="/data/nsys/nsys_$(date +%Y%m%d_%H%M%S)"
mkdir -p /data/nsys
NSYS_OUT="/workspace/output/nsys_$(date +%Y%m%d_%H%M%S)"
mkdir -p /workspace/output
SANITIZER_PREFIX="$NSYS_BIN profile -o $NSYS_OUT --gpu-metrics-device=all --cuda-graph-trace=node --cudabacktrace=kernel --stats=true --show-output=true -f true --capture-range=cudaProfilerApi --capture-range-end=stop-shutdown"
echo " nsys profiling enabled — output: ${NSYS_OUT}.nsys-rep (persistent PVC)"
echo " --cuda-graph-trace=node: per-kernel timing inside parent graph"