fix: nsys output to feature-cache PVC (RW, persistent)

This commit is contained in:
jgrusewski
2026-04-19 10:53:15 +02:00
parent 4b53b5b2f3
commit 43c6a3ad61

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="/workspace/output/nsys_$(date +%Y%m%d_%H%M%S)"
mkdir -p /workspace/output
NSYS_OUT="/feature-cache/nsys_$(date +%Y%m%d_%H%M%S)"
mkdir -p /feature-cache
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"