-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_phase5.sh
More file actions
88 lines (75 loc) · 2.46 KB
/
run_phase5.sh
File metadata and controls
88 lines (75 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
#SBATCH --job-name=pp_phase6
#SBATCH --partition=genoa
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=128
#SBATCH --time=08:00:00
#SBATCH --mem=0
#SBATCH --output=pp_phase6_%j.out
#SBATCH --error=pp_phase6_%j.err
# =============================================================================
# PP Hydra Effect - Phase 5: Directed Hunting 4D Sweep
# =============================================================================
#
# PURPOSE: Test if Hydra effect and SOC persist under directed hunting
#
# SUBMIT: sbatch run_phase6.sh
# MONITOR: squeue -u $USER
# CANCEL: scancel <job_id>
#
# =============================================================================
echo "========================================"
echo "PP Hydra Effect - Phase 6"
echo "========================================"
echo "Job ID: $SLURM_JOB_ID"
echo "Node: $(hostname)"
echo "CPUs: $SLURM_CPUS_PER_TASK"
echo "Start: $(date)"
echo "Working dir: $(pwd)"
echo "========================================"
# -----------------------------------------------------------------------------
# Environment Setup
# -----------------------------------------------------------------------------
source ~/snellius_venv/bin/activate
# Prevent numpy/scipy from spawning extra threads (joblib handles parallelism)
export OMP_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1
export MKL_NUM_THREADS=1
export NUMEXPR_NUM_THREADS=1
# -----------------------------------------------------------------------------
# Run Phase 6
# -----------------------------------------------------------------------------
OUTPUT_DIR="results/phase6_${SLURM_JOB_ID}"
mkdir -p $OUTPUT_DIR
echo ""
echo "Output directory: $OUTPUT_DIR"
echo ""
# Dry run first to verify setup
echo "Dry run check:"
python3 -u scripts/experiments.py \
--phase 6 \
--output $OUTPUT_DIR \
--cores $SLURM_CPUS_PER_TASK \
--dry-run
echo ""
echo "Starting Phase 6..."
echo ""
# Run phase 6
python3 -u scripts/experiments.py \
--phase 6 \
--output $OUTPUT_DIR \
--cores $SLURM_CPUS_PER_TASK
# -----------------------------------------------------------------------------
# Completion
# -----------------------------------------------------------------------------
echo ""
echo "========================================"
echo "Phase 6 Complete"
echo "========================================"
echo "End time: $(date)"
echo "Results in: $OUTPUT_DIR/"
echo ""
echo "Output files:"
ls -lh $OUTPUT_DIR/
echo ""