35
edits
Changes
m
{ "configurations": [
"configurations": [ { "name": "Custom C/C++using OpenMP: g++ build and debug active file", "type": "cppdbg",// Create for a CPP Debugger "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension} ",// The program to be debugged. "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "externalConsole": falsetrue,// Run task in External Console "MIMode": "lldb", "preLaunchTask": "C/C++using OpenMP: g++ build active file"// Make sure to set this to our task label }, { "name": "Build and Debug WS2", "type": "cppdbg", "request": "launch", "program": "/Users/ibrahim/Desktop/Winter 2023/GPU621/ws2/ws2", "args": ["100000000"], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "externalConsole": false, "MIMode": "lldb", "preLaunchTask": "C/C++using TBB: g++ build WS2 and debug active file" }, { "name": "Build and Debug WS5", "type": "cppdbg",// Create for a CPP Debugger "request": "launch", "program": "${fileDirname}/Users${fileBasenameNoExtension}", /ibrahim/Desktop/Winter 2023/GPU621/ws5/w5",The program to be debugged. "args": ["100000000"], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "externalConsole": falsetrue,// Run task in External Console "MIMode": "lldb", "preLaunchTask": "C/C++using TBB: g++ build WS5 active file"// Make sure to set this to our task label }, { "name": "C/C++ using MPI Debug: mpic++ run active file",// Task name we'll use to identify the task "type": "cppdbg", "request": "launch", "program": "/usr/local/bin/mpirun",// MPI files uses mpirun "args": [ "-np",// Flag identifies the that we want to configure the number of processes we want to run "4",// Number of processes "${fileDirname}/${fileBasenameNoExtension}", "1000000"// Path to active file ], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true,// Use an external console "MIMode": "lldb", "setupCommandspreLaunchTask": [], "preLaunchTask"C/C++ using MPI: "mpic++ build mpi" } ], "version": "2.0.0active file"
]}
→Final launch.json: Change numbers
=== Final launch.json ===
{
}
=== Final c_cpp_properties.json ===
{