Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kim, Jungwon
papyrus
Commits
5e36fa6b
Commit
5e36fa6b
authored
May 11, 2018
by
Kim, Jungwon
Browse files
fortran in grand tave
parent
2a469598
Changes
4
Hide whitespace changes
Inline
Side-by-side
build.sh
View file @
5e36fa6b
...
...
@@ -2,6 +2,6 @@
rm
-rf
build
install
mkdir
build
cd
build
cmake ..
-DCMAKE_INSTALL_PREFIX
=
../install
-DMPIEXEC
=
"/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin/mpirun"
-DMPIEXEC_NUMPROC_FLAG
=
"-n"
-DPAPYRUS_USE_FORTRAN
=
ON
# Stampede2
#
cmake .. -DCMAKE_INSTALL_PREFIX=../install -DMPIEXEC="/opt/slurm/default/bin/srun" -DMPIEXEC_NUMPROC_FLAG="-n" -DPAPYRUS_USE_FORTRAN=ON #Grand Tave
#
cmake .. -DCMAKE_INSTALL_PREFIX=../install -DMPIEXEC="/opt/intel/compilers_and_libraries_2017.4.196/linux/mpi/intel64/bin/mpirun" -DMPIEXEC_NUMPROC_FLAG="-n" -DPAPYRUS_USE_FORTRAN=ON # Stampede2
cmake ..
-DCMAKE_INSTALL_PREFIX
=
../install
-DMPIEXEC
=
"/opt/slurm/default/bin/srun"
-DMPIEXEC_NUMPROC_FLAG
=
"-n"
-DPAPYRUS_USE_FORTRAN
=
ON
#Grand Tave
make
-j
install
kv/src/CMakeLists.txt
View file @
5e36fa6b
...
...
@@ -33,5 +33,5 @@ add_library(papyruskv ${PAPYRUSKV_SOURCES})
install
(
TARGETS papyruskv DESTINATION lib
)
if
(
PAPYRUS_USE_FORTRAN
)
install
(
FILES papyrus.mod DESTINATION include
)
install
(
FILES
${
PROJECT_BINARY_DIR
}
/kv/src/
papyrus.mod DESTINATION include
)
endif
()
kv/tests/14_fortran/test14_fortran.f90
View file @
5e36fa6b
...
...
@@ -11,7 +11,7 @@ PROGRAM TEST14_FORTRAN
INTEGER
(
KIND
=
8
)
::
KEYLEN
,
VALLEN
CALL
MPI_INIT_THREAD
(
MPI_THREAD_MULTIPLE
,
PROVIDED
,
IERROR
)
CALL
MPI_BARRIER
(
MPI_COMM_WORLD
,
IERROR
)
PRINT
*
,
'THIS IS A HACK CODE FOR PORTABILITY'
CALL
PAPYRUSKV_INIT
(
'./pkv_repo'
,
IERROR
)
IF
(
IERROR
/
=
PAPYRUSKV_OK
)
THEN
PRINT
*
,
'FAILED'
...
...
kv/tests/CMakeLists.txt
View file @
5e36fa6b
...
...
@@ -8,7 +8,7 @@ macro(papyruskv_test arg)
endmacro
(
papyruskv_test
)
macro
(
papyruskv_test_fortran arg
)
include_directories
(
${
PROJECT_
SOURCE
_DIR
}
/kv/src
)
include_directories
(
${
PROJECT_
BINARY
_DIR
}
/kv/src
)
add_executable
(
kv.
${
arg
}
${
arg
}
.f90
)
target_link_libraries
(
kv.
${
arg
}
papyruskv pthread stdc++
)
add_test
(
kv.
${
arg
}
${
MPIEXEC
}
${
MPIEXEC_NUMPROC_FLAG
}
4 ./kv.
${
arg
}
)
...
...
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