Changes

Jump to: navigation, search

GPU621/Group 5

3,556 bytes added, 14:53, 9 April 2023
TBB: Added Most information
== TBB ==
At this point you’ll notice how easy it is to use VSCode for C++, we’re able to configure our build times and runtimes by often changing the same key elements.  === Tasks.json === { "tasks": [ ... { "type": "cppbuild", "label": "C/C++ using TBB: g++ build active file", // **Task label we'll reference in launch** "command": "/usr/bin/g++", "args": [ "-fdiagnostics-color=always", "-I/opt/intel/oneapi/tbb/2021.8.0/include", // tbb include directory path "-L/opt/intel/oneapi/tbb/2021.8.0/lib", // tbb library directory path "-Wl,-rpath,/opt/intel/oneapi/tbb/2021.8.0/lib", // Dynamically Link the .../lib directory to the executable "-ltbb", // Preprocessor is set to use tbb "-std=c++11", // C++ language standard to follow "-g", // Enables debugging information "${file}", // Active file being compiled "-o", // Output file "${fileDirname}/${fileBasenameNoExtension}" // Output file path ], "options": { "cwd": "${fileDirname}" }, "problemMatcher": [ "$gcc" ], "group": "build", "detail": "Task generated by User" } ] } ===Launch.Json=== { "version": "0.2.0", "configurations": [ ... { "name": "C/C++ using TBB: 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": true, // Run task in External Console "MIMode": "lldb", "preLaunchTask": "C/C++ using TBB: g++ build active file" // Make sure to set this to our task label }, ... ] } === c_cpp_properties.json === We only need to add to the **includePath** array, not to the **configurations array** { "configurations": [ { "name": "Mac", "includePath": [ "${workspaceFolder}/**", // Adds all files within our Current workspace to the Included files "/usr/local/Cellar/libomp/15.0.7/include", // Adds all files within the libomp workspace to the Included files "/opt/intel/oneapi/tbb/2021.8.0/include", // Adds all files within the tbb workspace to the Included files ], "defines": [], "macFrameworkPath": [ "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks" ], "compilerPath": "/usr/bin/g++", "cStandard": "c11", // Standard we're using "intelliSenseMode": "macos-clang-x64" } ], "version": 4 } 
== MPI ==
MPI

Navigation menu