-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulticoreAna.sh
More file actions
executable file
·28 lines (20 loc) · 884 Bytes
/
multicoreAna.sh
File metadata and controls
executable file
·28 lines (20 loc) · 884 Bytes
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
#!/bin/bash
# Script to run the MPI compression analysis with varying core counts
# Usage: ./multicoreAna.sh
# Ensure the script runs from its directory
cd "$(dirname "$0")"
# Activate virtual environment (if applicable)
# source /path/to/your/venv/bin/activate
# Define the core counts to test
CORE_COUNTS=(1 2 4 8)
for cores in "${CORE_COUNTS[@]}"; do
echo "=========================================="
echo "Running analysis with $cores core(s)"
echo "=========================================="
# Run with mpirun and the specified number of processes
# Pass the number of cores and output directory as arguments
mpirun -np $cores python3 ./CompressingInsightsParalleld.py "$output_dir"
echo "Analysis with $cores core(s) completed"
echo ""
done
echo "All analyses completed. Check the enhanced_compression_analysis for results."