Open main menu

CDOT Wiki β

Changes

GPU621/OpenMP Debugging

9 bytes added, 04:28, 9 December 2021
Case B - Using the Parallel Stacks and the Parallel Watch Window
==Case B - Using the Parallel Stacks and the Parallel Watch Window==
{
#include <iostream>
#include <thread>
#include <vector>
#include<omp.h>
#include <chrono>
#include <string>
#include <iostream> #include <thread> #include <vector> #include<omp.h> #include <chrono> #include <string>  using namespace std; void print(int n, const std::string& str) {
std::string msg = std::to_string(n) + " : " + str;
std::cout << msg << std::endl;
}
int main() {
std::vector<std::string> s = {
"Hello World",
}
return 0;
}}
The main program calls the print function for the size of the string vector.
49
edits