-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_simple.bat
More file actions
43 lines (40 loc) · 997 Bytes
/
Copy pathbuild_simple.bat
File metadata and controls
43 lines (40 loc) · 997 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
38
39
40
41
42
43
@echo off
echo Building Simple Demo (No MPI Required)...
echo.
REM Check for g++
where g++ >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo ERROR: g++ compiler not found!
echo Please install MinGW or use Visual Studio.
echo.
echo Download MinGW from: https://www.mingw-w64.org/
pause
exit /b 1
)
echo Compiling simple_demo.cpp...
g++ -std=c++17 -O2 -pthread simple_demo.cpp -o simple_demo.exe
if %ERRORLEVEL% EQU 0 (
echo.
echo ============================================
echo Build Successful!
echo ============================================
echo.
echo To run the demo:
echo simple_demo.exe
echo.
echo This demo simulates distributed computing
echo using C++ threads (no MPI needed).
echo.
pause
echo.
echo Running demo now...
echo.
simple_demo.exe
) else (
echo.
echo Build failed!
echo.
echo If you don't have g++, install MinGW-w64:
echo https://www.mingw-w64.org/downloads/
pause
)