PARALLEL COMPUTING LAB SETUP | JUST IN 10 mins | VERY EASY | 7th SEM | VTU DEVELOPER
Автор: VTU Developer
Загружено: 2025-08-13
Просмотров: 1392
Описание:
Hello Everyone! In this video i have shared very easy parallel computing lab setup just in 10 mins.
commands to check :
. Install Compiler for Windows (MinGW-w64)
MinGW-w64 is a development toolchain that provides a version of the GCC compiler for Windows. This is necessary because Windows does not come with a built-in C/C++ compiler that supports OpenMP, so we install this to get the required tools.
1. Download and run the MSYS2 installer from msys2.org.
2. Open the MSYS2 terminal and run `pacman -Syu`.
3. Install the toolchain with: `pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain`.
4. Add the compiler to your Windows Path. This is typically `C:\msys64\ucrt64\bin`.
6. Create a `tasks.json` file in your `.vscode` folder to tell VS Code how to compile your program with the `-fopenmp` flag.
{
"version": "2.0.0",
"tasks": [
{
"label": "C/C++: Build with OpenMP",
"type": "shell",
"command": "gcc",
"args": [ "-g", "-fopenmp", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}" ],
"group": { "kind": "build", "isDefault": true }
}
]
}
Compile & Run
Compile the Code
The easiest method is to use the build task. With your `.c` file open, press `Ctrl+Shift+B`. Alternatively, you can compile manually from the terminal. For a file named `my_program.c`, the command is:
gcc -fopenmp my_program.c -o my_program
Run the Executable
After a successful compilation, an executable file is created. Run it from the terminal:
On Windows
./my_program.exe
#on mac
./myprogram
Join whatsapp :- https://whatsapp.com/channel/0029Vb5l...
Visit website :- https://vtudeveloper.in
#computerengineering
#vtu2022scheme
#vtuengineering
#engineering
#education
#viral
#parallelcomputing
#7sem
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: