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
007a94c7
Commit
007a94c7
authored
Jun 27, 2017
by
Francois Tessier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple write in Fortran to develop a first version of F90 bindings
parent
0d88635f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
0 deletions
+79
-0
examples/Fortran/Makefile
examples/Fortran/Makefile
+12
-0
examples/Fortran/Makefile.bgq
examples/Fortran/Makefile.bgq
+12
-0
examples/Fortran/run_bgq.sh
examples/Fortran/run_bgq.sh
+23
-0
examples/Fortran/simple_array.f90
examples/Fortran/simple_array.f90
+32
-0
No files found.
examples/Fortran/Makefile
0 → 100644
View file @
007a94c7
MPIF90
=
mpixlf90
FLAGS
=
-g
LDFLAGS
=
all
:
simple_array
simple_array
:
simple_array.f90
$(MPIF90)
$(FLAGS)
$?
-o
$@
$(LDFLAGS)
clean
:
rm
simple_array
examples/Fortran/Makefile.bgq
0 → 100644
View file @
007a94c7
MPIF90
=
mpixlf90
FLAGS
=
-g
LDFLAGS
=
all
:
simple_array
simple_array
:
simple_array.f90
$(MPIF90)
$(FLAGS)
$?
-o
$@
$(LDFLAGS)
clean
:
rm
simple_array
examples/Fortran/run_bgq.sh
0 → 100755
View file @
007a94c7
#!/bin/bash
NODES
=
2
PPN
=
16
NPROCS
=
$((
NODES
*
PPN
))
TARGET
=
"/projects/visualization/ftessier/debug"
cd
$HOME
/TAPIOCA/examples/Fortran
function
updateSettings
()
{
SETTINGS
=
"PAMID_VERBOSE=1"
SETTINGS
=
"
$SETTINGS
PAMID_COLLECTIVES_MEMORY_OPTIMIZED=1"
SETTINGS
=
"
$SETTINGS
PAMID_COLLECTIVES=1"
SETTINGS
=
"
$SETTINGS
BG_SHAREDMEMSIZE=64"
SETTINGS
=
"
$SETTINGS
BGLOCKLESSMPIO_F_TYPE=0x47504653"
SETTINGS
=
"
$SETTINGS
GPFSMPIO_BALANCECONTIG=1"
SETTINGS
=
"
$SETTINGS
GPFSMPIO_P2PCONTIG=1"
}
rm
$TARGET
/
*
updateSettings
runjob
--block
$COBALT_PARTNAME
--envs
$SETTINGS
-p
$PPN
--np
$NPROCS
: ./simple_array
examples/Fortran/simple_array.f90
0 → 100644
View file @
007a94c7
! http://www.mcs.anl.gov/research/projects/mpi/usingmpi2/examples/starting/io3f_f90.htm
PROGRAM
main
use
mpi
integer
ierr
,
i
,
myrank
,
BUFSIZE
,
filehandle
character
(
*
),
parameter
::
filepath
=
"/projects/visualization/ftessier/debug/"
parameter
(
BUFSIZE
=
100
)
integer
buf
(
BUFSIZE
)
integer
(
kind
=
MPI_OFFSET_KIND
)
disp
call
MPI_INIT
(
ierr
)
call
MPI_COMM_RANK
(
MPI_COMM_WORLD
,
myrank
,
ierr
)
do
i
=
0
,
BUFSIZE
buf
(
i
)
=
myrank
*
BUFSIZE
+
i
enddo
! filepath//"f90_HACC.dat"
call
MPI_FILE_OPEN
(
MPI_COMM_WORLD
,
"f90HACC"
,
&
MPI_MODE_WRONLY
+
MPI_MODE_CREATE
,
&
MPI_INFO_NULL
,
filehandle
,
ierr
)
disp
=
myrank
*
BUFSIZE
*
4
call
MPI_FILE_WRITE_AT
(
filehandle
,
disp
,
buf
,
BUFSIZE
,
MPI_INTEGER
,
&
MPI_STATUS_IGNORE
,
ierr
)
call
MPI_BARRIER
(
MPI_COMM_WORLD
,
ierr
)
call
MPI_FILE_CLOSE
(
filehandle
,
ierr
)
call
MPI_FINALIZE
(
ierr
)
END
PROGRAM
main
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