| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package OpenMP::Simple; |
|
2
|
|
|
|
|
|
|
|
|
3
|
32
|
|
|
32
|
|
2760408
|
use strict; |
|
|
32
|
|
|
|
|
74
|
|
|
|
32
|
|
|
|
|
1286
|
|
|
4
|
32
|
|
|
32
|
|
315
|
use warnings; |
|
|
32
|
|
|
|
|
79
|
|
|
|
32
|
|
|
|
|
1707
|
|
|
5
|
32
|
|
|
32
|
|
16845
|
use Alien::OpenMP; |
|
|
32
|
|
|
|
|
2164487
|
|
|
|
32
|
|
|
|
|
411
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = q{0.2.6}; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This module is a wrapper around a ".h" file that is injected into Alien::OpenMP |
|
10
|
|
|
|
|
|
|
# via Inline:C's AUTO_INCLUDE feature. This header file constains C macros for reading |
|
11
|
|
|
|
|
|
|
# OpenMP relavent environmental variables via %ENV (set by OpenMP::Environment perhaps) |
|
12
|
|
|
|
|
|
|
# and using the standard OpenMP runtime functions to set them. |
|
13
|
|
|
|
|
|
|
|
|
14
|
32
|
|
|
32
|
|
906072
|
use File::ShareDir 'dist_dir'; |
|
|
32
|
|
|
|
|
998228
|
|
|
|
32
|
|
|
|
|
6696
|
|
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $share_dir = dist_dir('OpenMP-Simple'); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub Inline { |
|
19
|
31
|
|
|
31
|
0
|
9193981
|
my ($self, $lang) = @_; |
|
20
|
31
|
|
|
|
|
382
|
my $config = Alien::OpenMP->Inline($lang); |
|
21
|
31
|
|
|
|
|
8781
|
$config->{INC} = qq{-I$share_dir}; |
|
22
|
31
|
|
|
|
|
170
|
$config->{AUTO_INCLUDE} .= qq{\n#include "$share_dir/ppport.h"\n#include "$share_dir/openmp-simple.h"\n}; |
|
23
|
31
|
|
|
|
|
131
|
return $config; |
|
24
|
|
|
|
|
|
|
} |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |