-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
32 lines (26 loc) · 721 Bytes
/
Copy pathbuild.bat
File metadata and controls
32 lines (26 loc) · 721 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
@echo off
REM Build script for Windows
echo Building Distributed Computing Framework...
REM Create build directory
if not exist build mkdir build
cd build
REM Configure with CMake
echo Configuring with CMake...
cmake .. -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release
REM Build
echo Compiling...
cmake --build . --config Release
if %ERRORLEVEL% EQU 0 (
echo.
echo Build successful!
echo.
echo Executables created in build\Release\
echo To run examples:
echo mpiexec -n 4 Release\distributed_framework_main.exe
echo mpiexec -n 4 Release\matrix_multiply.exe 1000
echo mpiexec -n 8 Release\monte_carlo_pi.exe 1000000000
) else (
echo Build failed!
exit /b 1
)
cd ..