Skip to content

Commit

Permalink
SCR: remove test.conf from C++ and F77 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaas80 committed May 20, 2020
1 parent 31c66e2 commit b8068ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/test_ckpt.C
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ int main()
{
MPI_Init(NULL, NULL);

// provide some configuration otions
SCR_Config("STORE=/tmp GROUP=NODE COUNT=1");
SCR_Config("SCR_COPY_TYPE=FILE");
SCR_Config("CKPT=0 INTERVAL=1 GROUP=NODE STORE=/tmp TYPE=XOR SET_SIZE=16");
SCR_Config("SCR_DEBUG=1");

// initialize the SCR library
SCR_Init();

Expand Down
6 changes: 6 additions & 0 deletions examples/test_ckpt.F
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ program test_ckpt_F

character*1024 :: basefname = "rank_"
character*1024 :: fname, file_suffix
character*1024 :: val
character(len=SCR_MAX_FILENAME) :: fname_scr
character(len=SCR_MAX_FILENAME) :: ckptname
integer(kind=4) :: flag;
Expand All @@ -33,6 +34,11 @@ program test_ckpt_F
call MPI_COMM_SIZE(MPI_COMM_WORLD, nprocs, ierr)
call MPI_COMM_RANK(MPI_COMM_WORLD, mynod, ierr)

call SCR_Config("STORE=/tmp GROUP=NODE COUNT=1", val, ierr);
call SCR_Config("SCR_COPY_TYPE=FILE", val, ierr);
call SCR_Config("CKPT=0 INTERVAL=1 GROUP=NODE STORE=/tmp
&TYPE=XOR SET_SIZE=16", val, ierr);
call SCR_Config("SCR_DEBUG=1", val, ierr);
call SCR_INIT(ierr)

nodeoff=2**21
Expand Down

0 comments on commit b8068ad

Please sign in to comment.