Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63512916
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
Mon, May 20, 16:06
Size
266 B
Mime Type
text/x-c
Expires
Wed, May 22, 16:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17782096
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