diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-29 16:22:07 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-04-29 16:22:07 +0000 |
commit | 7866075b267b6c0bfd67cb3d33b2d6c8a9e0783a (patch) | |
tree | fd77cdccaeea43e1444020887bb8da0d54b8ee7e /runtime/tools | |
parent | 107fb0e39e13532d6a671d6d934646ab852622d3 (diff) |
This patch contains the new files for OMPT and the needed changes to the build infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@236117 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/tools')
-rwxr-xr-x | runtime/tools/build.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/tools/build.pl b/runtime/tools/build.pl index 541d671..d6bc5a9 100755 --- a/runtime/tools/build.pl +++ b/runtime/tools/build.pl @@ -65,12 +65,15 @@ my $opts = { "omp-version" => { targets => "rtl", base => 0, parms => { 40 => "*", 30 => "" }, suffix => sub { $_[ 0 ]; } }, "coverage" => { targets => "rtl", base => 0, parms => { off => "*", on => "" }, suffix => sub { $_[ 0 ] eq "on" ? "c1" : "c0"; } }, "stats" => { targets => "rtl", base => 0, parms => { off => "*", on => "" }, suffix => sub { $_[ 0 ] eq "on" ? "s1" : "s0"; } }, + "ompt-support" => { targets => "rtl", base => 0, parms => { off => "*", on => "" }, suffix => sub { $_[ 0 ] eq "on" ? "ompt" : "" } }, + "ompt-blame" => { targets => "rtl", base => 0, parms => { off => "", on => "*" }, suffix => sub { $_[ 0 ] eq "on" ? "" : "no-ompt-blame" } }, + "ompt-trace" => { targets => "rtl", base => 0, parms => { off => "", on => "*" }, suffix => sub { $_[ 0 ] eq "on" ? "" : "no-ompt-trace" } }, }; my $synonyms = { "debug" => [ qw{ dbg debg } ], }; # This array specifies order of options to process, so it cannot be initialized with keys( %$opts ). -my @all_opts = qw{ target version lib-type link-type mode omp-version coverage stats }; +my @all_opts = qw{ target version lib-type link-type mode omp-version coverage stats ompt-support ompt-blame ompt-trace }; # This is the list of base options. my @base_opts = grep( $opts->{ $_ }->{ base } == 1, @all_opts ); # This is the list of extra options. @@ -271,6 +274,9 @@ sub enqueue_jobs($$@) { "VERSION=" . $set->{ version }, "suffix=" . $suf, "stats=" . $set->{ stats }, + "OMPT_SUPPORT=" . $set->{ "ompt-support" }, + "OMPT_BLAME=" . $set->{ "ompt-blame" }, + "OMPT_TRACE=" . $set->{ "ompt-trace" }, @goals, ], build_dir => $build_dir |