Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120266673
for.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 3, 02:55
Size
266 B
Mime Type
text/x-c
Expires
Sat, Jul 5, 02:55 (2 d)
Engine
blob
Format
Raw Data
Handle
27164269
Attached To
R11821 phys-743-lecture
for.cc
View Options
#include <iostream>
#include <omp.h>
int main() {
#pragma omp parallel num_threads(2)
{
auto myrank = omp_get_thread_num();
#pragma omp for
for (int i = 0; i < 6; ++i) {
std::printf("Thread %i handling i=%i\n", myrank, i);
}
}
return 0;
}
Event Timeline
Log In to Comment