-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
37 lines (31 loc) · 821 Bytes
/
Copy pathbuild.sh
File metadata and controls
37 lines (31 loc) · 821 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
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Build script for Distributed Computing Framework
echo "Building Distributed Computing Framework..."
# Create build directory
mkdir -p build
cd build
# Configure with CMake
echo "Configuring with CMake..."
cmake .. -DCMAKE_BUILD_TYPE=Release
# Build
echo "Compiling..."
make -j$(nproc)
# Check if build was successful
if [ $? -eq 0 ]; then
echo ""
echo "Build successful!"
echo ""
echo "Executables created:"
echo " - distributed_framework_main"
echo " - matrix_multiply"
echo " - monte_carlo_pi"
echo " - distributed_sort"
echo ""
echo "To run examples:"
echo " mpirun -np 4 ./distributed_framework_main"
echo " mpirun -np 4 ./matrix_multiply 1000"
echo " mpirun -np 8 ./monte_carlo_pi 1000000000"
else
echo "Build failed!"
exit 1
fi