Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TAPIOCA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Francois Tessier
TAPIOCA
Commits
da0a3ba7
Commit
da0a3ba7
authored
Mar 28, 2017
by
Francois Tessier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regression test on BG/Q. HACC-IO test cases fixed.
parent
b9d583d0
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
118 additions
and
21 deletions
+118
-21
Makefile
Makefile
+1
-1
examples/HACC-IO/Makefile
examples/HACC-IO/Makefile
+3
-3
examples/HACC-IO/Makefile.bgq
examples/HACC-IO/Makefile.bgq
+23
-0
examples/HACC-IO/Makefile.xc40
examples/HACC-IO/Makefile.xc40
+23
-0
examples/HACC-IO/miniHACC-AoS-MPIIO.cpp
examples/HACC-IO/miniHACC-AoS-MPIIO.cpp
+15
-3
examples/HACC-IO/miniHACC-AoS.cpp
examples/HACC-IO/miniHACC-AoS.cpp
+13
-3
examples/HACC-IO/miniHACC-SoA-MPIIO.cpp
examples/HACC-IO/miniHACC-SoA-MPIIO.cpp
+15
-3
examples/HACC-IO/miniHACC-SoA.cpp
examples/HACC-IO/miniHACC-SoA.cpp
+14
-3
examples/HACC-IO/run_check_bgq.sh
examples/HACC-IO/run_check_bgq.sh
+5
-5
topology/bgq_mira.hpp
topology/bgq_mira.hpp
+5
-0
topology/topology.hpp
topology/topology.hpp
+1
-0
No files found.
Makefile
View file @
da0a3ba7
include
make.inc/Makefile.
xc40
include
make.inc/Makefile.
bgq
all
:
libtapioca.a
...
...
examples/HACC-IO/Makefile
View file @
da0a3ba7
MPICXX
=
CC
MPICXX
=
mpicxx
MPI_CFLAGS
=
-g
-O3
-I
$(HOME)
/install
/include/
-DXC40
-DDEBUG
MPI_LDFLAGS
=
-L
$(HOME)
/install
/lib/
-ltapioca
-llustreapi
MPI_CFLAGS
=
-g
-O3
-I
$(HOME)
/install
_bgq/include/
-DBGQ
#
-DDEBUG
MPI_LDFLAGS
=
-L
$(HOME)
/install
_bgq/lib/
-ltapioca
all
:
miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO
...
...
examples/HACC-IO/Makefile.bgq
0 → 100644
View file @
da0a3ba7
MPICXX
=
mpicxx
MPI_CFLAGS
=
-g
-O3
-I
$(HOME)
/install_bgq/include/
-DBGQ
#-DDEBUG
MPI_LDFLAGS
=
-L
$(HOME)
/install_bgq/lib/
-ltapioca
all
:
miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO
miniHACC-AoS
:
miniHACC-AoS.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
miniHACC-SoA
:
miniHACC-SoA.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
### MPI I/O
miniHACC-AoS-MPIIO
:
miniHACC-AoS-MPIIO.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
miniHACC-SoA-MPIIO
:
miniHACC-SoA-MPIIO.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
clean
:
rm
miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO
*
.o HACC.dat
examples/HACC-IO/Makefile.xc40
0 → 100644
View file @
da0a3ba7
MPICXX
=
CC
MPI_CFLAGS
=
-g
-O3
-I
$(HOME)
/install/include/
-DXC40
-DDEBUG
MPI_LDFLAGS
=
-L
$(HOME)
/install/lib/
-ltapioca
-llustreapi
all
:
miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO
miniHACC-AoS
:
miniHACC-AoS.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
miniHACC-SoA
:
miniHACC-SoA.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
### MPI I/O
miniHACC-AoS-MPIIO
:
miniHACC-AoS-MPIIO.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
miniHACC-SoA-MPIIO
:
miniHACC-SoA-MPIIO.cpp
$(MPICXX)
$(MPI_CFLAGS)
$?
-o
$@
$(MPI_LDFLAGS)
clean
:
rm
miniHACC-AoS miniHACC-SoA miniHACC-AoS-MPIIO miniHACC-SoA-MPIIO
*
.o HACC.dat
examples/HACC-IO/miniHACC-AoS-MPIIO.cpp
View file @
da0a3ba7
...
...
@@ -3,7 +3,8 @@
#include <assert.h>
#include <stdint.h>
#include <mpi.h>
#include <mpix.h>
#include "tapioca.hpp"
#define RED "\x1b[31m"
#define GREEN "\x1b[32m"
...
...
@@ -12,7 +13,7 @@
int
main
(
int
argc
,
char
*
argv
[])
{
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
;
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
,
file_id
;
int64_t
num_particles
=
25000
;
int64_t
sub_particles
,
tot_particles
,
particle_size
,
file_size
,
tot_size
;
int64_t
scan_size
=
0
,
offset
;
...
...
@@ -34,7 +35,18 @@ int main (int argc, char * argv[])
MPI_Comm_size
(
sub_comm
,
&
sub_numtasks
);
MPI_Comm_rank
(
sub_comm
,
&
sub_myrank
);
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-AOS-%08d.dat"
,
mycolor
);
file_id
=
0
;
if
(
argv
[
1
]
!=
NULL
)
file_id
=
atoi
(
argv
[
1
]
);
#ifdef BGQ
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#elif XC40
snprintf
(
output
,
100
,
"/lus/theta-fs0/projects/Performance/ftessier/HACC/HACC-AOS-%08d-%d.dat"
,
mycolor
,
file_id
);
#else
snprintf
(
output
,
100
,
"./HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#endif
/*****************/
/* WRITE */
...
...
examples/HACC-IO/miniHACC-AoS.cpp
View file @
da0a3ba7
...
...
@@ -13,7 +13,7 @@
int
main
(
int
argc
,
char
*
argv
[])
{
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
,
i
;
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
,
i
,
file_id
;
int64_t
num_particles
=
25000
;
int64_t
sub_particles
,
tot_particles
,
particle_size
,
file_size
,
tot_size
;
int64_t
scan_size
=
0
,
offset
,
hdr
=
0
;
...
...
@@ -38,8 +38,18 @@ int main (int argc, char * argv[])
MPI_Comm_size
(
sub_comm
,
&
sub_numtasks
);
MPI_Comm_rank
(
sub_comm
,
&
sub_myrank
);
//snprintf (output, 100, "/projects/visualization/ftessier/debug/HACC-AOS-%08d-%d.dat", mycolor, atoi(argv[1]));
snprintf
(
output
,
100
,
"/lus/theta-fs0/projects/Performance/ftessier/HACC/HACC-AOS-%08d-%d.dat"
,
mycolor
,
atoi
(
argv
[
1
]));
file_id
=
0
;
if
(
argv
[
1
]
!=
NULL
)
file_id
=
atoi
(
argv
[
1
]
);
#ifdef BGQ
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#elif XC40
snprintf
(
output
,
100
,
"/lus/theta-fs0/projects/Performance/ftessier/HACC/HACC-AOS-%08d-%d.dat"
,
mycolor
,
file_id
);
#else
snprintf
(
output
,
100
,
"./HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#endif
/*****************/
/* WRITE */
...
...
examples/HACC-IO/miniHACC-SoA-MPIIO.cpp
View file @
da0a3ba7
...
...
@@ -3,7 +3,8 @@
#include <assert.h>
#include <stdint.h>
#include <mpi.h>
#include <mpix.h>
#include "tapioca.hpp"
#define RED "\x1b[31m"
#define GREEN "\x1b[32m"
...
...
@@ -12,7 +13,7 @@
int
main
(
int
argc
,
char
*
argv
[])
{
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
;
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
,
file_id
;
int64_t
num_particles
=
25000
;
int64_t
sub_particles
,
tot_particles
,
particle_size
,
file_size
,
tot_size
;
int64_t
scan_size
=
0
,
offset
;
...
...
@@ -34,7 +35,18 @@ int main (int argc, char * argv[])
MPI_Comm_size
(
sub_comm
,
&
sub_numtasks
);
MPI_Comm_rank
(
sub_comm
,
&
sub_myrank
);
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-AOS-%08d.dat"
,
mycolor
);
file_id
=
0
;
if
(
argv
[
1
]
!=
NULL
)
file_id
=
atoi
(
argv
[
1
]
);
#ifdef BGQ
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#elif XC40
snprintf
(
output
,
100
,
"/lus/theta-fs0/projects/Performance/ftessier/HACC/HACC-AOS-%08d-%d.dat"
,
mycolor
,
file_id
);
#else
snprintf
(
output
,
100
,
"./HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#endif
/*****************/
/* WRITE */
...
...
examples/HACC-IO/miniHACC-SoA.cpp
View file @
da0a3ba7
...
...
@@ -13,8 +13,8 @@
int
main
(
int
argc
,
char
*
argv
[])
{
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
,
i
;
int64_t
num_particles
=
atoi
(
argv
[
2
])
;
int
world_numtasks
,
world_myrank
,
mycolor
,
mykey
,
sub_numtasks
,
sub_myrank
,
i
,
file_id
;
int64_t
num_particles
=
25000
;
int64_t
sub_particles
,
tot_particles
,
particle_size
,
file_size
,
tot_size
;
int64_t
scan_size
=
0
,
offset
,
hdr
=
0
;
double
start_time
,
end_time
,
tot_time
,
max_time
;
...
...
@@ -39,7 +39,18 @@ int main (int argc, char * argv[])
MPI_Comm_size
(
sub_comm
,
&
sub_numtasks
);
MPI_Comm_rank
(
sub_comm
,
&
sub_myrank
);
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-SOA-%08d-%d.dat"
,
mycolor
,
atoi
(
argv
[
1
]));
file_id
=
0
;
if
(
argv
[
1
]
!=
NULL
)
file_id
=
atoi
(
argv
[
1
]
);
#ifdef BGQ
snprintf
(
output
,
100
,
"/projects/visualization/ftessier/debug/HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#elif XC40
snprintf
(
output
,
100
,
"/lus/theta-fs0/projects/Performance/ftessier/HACC/HACC-AOS-%08d-%d.dat"
,
mycolor
,
file_id
);
#else
snprintf
(
output
,
100
,
"./HACC-SOA-%08d-%d.dat"
,
mycolor
,
file_id
);
#endif
/*****************/
/* WRITE */
...
...
examples/HACC-IO/run_check_bgq.sh
View file @
da0a3ba7
#!/bin/bash
VARS
=
"PAMID_VERBOSE=1 BG_SHAREDMEMSIZE=64 PAMID_COLLECTIVES=1 BGLOCKLESSMPIO_F_TYPE=0x47504653 PAMID_COLLECTIVES_MEMORY_OPTIMIZED=1"
NODES
=
512
NODES
=
256
PPN
=
16
NPROCS
=
$((
NODES
*
PPN
))
TARGET
=
"/projects/visualization/ftessier/debug"
...
...
@@ -29,7 +29,7 @@ function updateSettings()
#########################
rm
$TARGET
/
*
updateSettings
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-AoS-MPIIO
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-AoS-MPIIO
42
sleep
4
let
j
=
0
for
i
in
$TARGET
/
*
...
...
@@ -41,7 +41,7 @@ done
rm
$TARGET
/
*
updateSettings
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-AoS
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-AoS
42
sleep
4
let
j
=
0
for
i
in
$TARGET
/
*
...
...
@@ -61,7 +61,7 @@ done
#########################
rm
$TARGET
/
*
updateSettings
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-SoA-MPIIO
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-SoA-MPIIO
42
sleep
4
let
j
=
0
for
i
in
$TARGET
/
*
...
...
@@ -73,7 +73,7 @@ done
rm
$TARGET
/
*
updateSettings
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-SoA
runjob
--block
$COBALT_PARTNAME
--envs
$VARS
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./miniHACC-SoA
42
sleep
4
let
j
=
0
for
i
in
$TARGET
/
*
...
...
topology/bgq_mira.hpp
View file @
da0a3ba7
...
...
@@ -51,6 +51,11 @@ public:
}
int
IONodesPerFile
(
char
*
filename
,
int
*
nodesList
)
{
return
1
;
}
int
IONodeId
()
{
return
MPIX_IO_node_id
();
}
...
...
topology/topology.hpp
View file @
da0a3ba7
...
...
@@ -9,6 +9,7 @@ class iTopology {
/**********************/
/* |-- Nodes */
/**********************/
virtual
int
IONodesPerFile
(
char
*
filename
,
int
*
nodesList
)
=
0
;
virtual
int
IONodeId
()
=
0
;
virtual
int
BridgeNodeId
()
=
0
;
//virtual int ComputeNodeId () = 0;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment