FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PerformanceAnalysis/test/mainAD.cpp at master · CODARcode/PerformanceAnalysis · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CODARcode
/
PerformanceAnalysis
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
2
Code
Issues
0
Pull requests
11
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PerformanceAnalysis
/
test
/
mainAD.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
34 lines (28 loc) · 849 Bytes
Breadcrumbs
PerformanceAnalysis
/
test
/
mainAD.cpp
Copy path
File metadata and controls
executable file
·
34 lines (28 loc) · 849 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
include
<
gtest/gtest.h
>
#
include
<
chimbuko_config.h
>
#
ifdef
USE_MPI
#
include
<
mpi.h
>
#
endif
int
main
(
int
argc,
char
** argv)
{
int
result =
0
;
::testing::InitGoogleTest
(&argc, argv);
//
for (int i = 1; i < argc; i++)
//
printf("arg %2d = %s\n", i, argv[i]);
int
world_rank=
0
, world_size=
1
;
#
ifdef
USE_MPI
MPI_Init
(&argc, &argv);
MPI_Comm_rank
(
MPI_COMM_WORLD
, &world_rank);
MPI_Comm_size
(
MPI_COMM_WORLD
, &world_size);
#
endif
::testing::TestEventListeners& listeners = ::
testing::UnitTest::GetInstance
()->
listeners
();
if
(world_rank !=
0
)
delete
listeners.
Release
(listeners.
default_result_printer
());
result =
RUN_ALL_TESTS
();
//
std::cout << world_rank << ": " << result << std::endl;
#
ifdef
USE_MPI
MPI_Barrier
(
MPI_COMM_WORLD
);
MPI_Finalize
();
#
endif
return
result;
}
Back
|
FazBrowse Home
|
New Git URL