test_hybrid_run.in 1.13 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#! @PERL@

use strict;
use warnings;
use lib '@abs_top_srcdir@/tests';
require "test_base.pl";

$ENV{SCT_OUT}="stdout";

# test with 2 MPI tasks

12
$ENV{SCT_CALLSTATS}=0;
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$ENV{SCT_PROC_CHOICE}="SCT_SELECT_ALL";
$ENV{OMP_NUM_THREADS}=2;
#parse(run_prg("@abs_top_builddir@/tests/test_hybrid")) && check_reports();
run_prg("@abs_top_builddir@/tests/test_hybrid");

$ENV{SCT_CALLSTATS}=0;
$ENV{SCT_PROC_CHOICE}="SCT_SELECT_ALL";
#parse(run_prg("@abs_top_builddir@/tests/test_hybrid")) && check_reports();

$ENV{SCT_PROC_CHOICE}="SCT_SELECT_ALL";
$ENV{SCT_THREAD_CHOICE}="SCT_REDUCE_ALL";
#parse(run_prg("@abs_top_builddir@/tests/test_hybrid")) && check_reports();

$ENV{SCT_PROC_CHOICE}="SCT_REDUCE_ALL";
$ENV{SCT_THREAD_CHOICE}="SCT_SELECT_ALL";
#parse(run_prg("@abs_top_builddir@/tests/test_hybrid")) && check_reports();

# test with 1 MPI tasks

$ENV{SCT_PROC_CHOICE}="SCT_SELECT_ALL";
$ENV{SCT_THREAD_CHOICE}="SCT_SELECT_ALL";
#parse(run_prg("@abs_top_builddir@/tests/test_hybrid")) && check_reports();

$ENV{SCT_PROC_CHOICE}="SCT_REDUCE_ALL";
$ENV{SCT_THREAD_CHOICE}="SCT_REDUCE_ALL";
#parse(run_prg("@abs_top_builddir@/tests/test_hybrid")) && check_reports();