We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not generating proper behavior
// Copyright (c) 2018 Tianyi Zhang // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <iostream> #include <omp.h> int thread_num, val; #pragma omp threadprivate(thread_num,val) int main() { #pragma omp parallel { thread_num = omp_get_thread_num(); } #pragma omp parallel { if(omp_get_thread_num() != thread_num) throw "not correct !"; } return 0; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not generating proper behavior
The text was updated successfully, but these errors were encountered: