Commit 5e36fa6b authored by Kim, Jungwon's avatar Kim, Jungwon

fortran in grand tave

parent 2a469598
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
rm -rf build install rm -rf build install
mkdir build mkdir build
cd 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/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/slurm/default/bin/srun" -DMPIEXEC_NUMPROC_FLAG="-n" -DPAPYRUS_USE_FORTRAN=ON #Grand Tave
make -j install make -j install
...@@ -33,5 +33,5 @@ add_library(papyruskv ${PAPYRUSKV_SOURCES}) ...@@ -33,5 +33,5 @@ add_library(papyruskv ${PAPYRUSKV_SOURCES})
install(TARGETS papyruskv DESTINATION lib) install(TARGETS papyruskv DESTINATION lib)
if(PAPYRUS_USE_FORTRAN) if(PAPYRUS_USE_FORTRAN)
install(FILES papyrus.mod DESTINATION include) install(FILES ${PROJECT_BINARY_DIR}/kv/src/papyrus.mod DESTINATION include)
endif() endif()
...@@ -11,7 +11,7 @@ PROGRAM TEST14_FORTRAN ...@@ -11,7 +11,7 @@ PROGRAM TEST14_FORTRAN
INTEGER(KIND=8) :: KEYLEN, VALLEN INTEGER(KIND=8) :: KEYLEN, VALLEN
CALL MPI_INIT_THREAD(MPI_THREAD_MULTIPLE, PROVIDED, IERROR) 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) CALL PAPYRUSKV_INIT('./pkv_repo', IERROR)
IF (IERROR /= PAPYRUSKV_OK) THEN IF (IERROR /= PAPYRUSKV_OK) THEN
PRINT*, 'FAILED' PRINT*, 'FAILED'
......
...@@ -8,7 +8,7 @@ macro(papyruskv_test arg) ...@@ -8,7 +8,7 @@ macro(papyruskv_test arg)
endmacro(papyruskv_test) endmacro(papyruskv_test)
macro(papyruskv_test_fortran arg) 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) add_executable(kv.${arg} ${arg}.f90)
target_link_libraries(kv.${arg} papyruskv pthread stdc++) target_link_libraries(kv.${arg} papyruskv pthread stdc++)
add_test(kv.${arg} ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./kv.${arg}) add_test(kv.${arg} ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ./kv.${arg})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment