Skip to content

Commit

Permalink
Merge pull request #8 from Katetc/master
Browse files Browse the repository at this point in the history
Changes to CMakeLists for NAG compiler and shortening a line
  • Loading branch information
jedwards4b committed Sep 9, 2015
2 parents 05160cd + 1e21cfd commit f5f047b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
3 changes: 1 addition & 2 deletions doc/source/Decomp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ only one IO task. Since this technique does not guarantee that data
on the IO node represents a contiguous block of data on the file it
may require multiple calls to the underlying (NetCDF) IO library.

As an example suppose we have a global two dimensional grid of size 4x5 decomposed over 5 tasks. We represent the
two dimensional grid in terms of offset from the initial element ie
As an example suppose we have a global two dimensional grid of size 4x5 decomposed over 5 tasks. We represent the two dimensional grid in terms of offset from the initial element ie
<pre>
0 1 2 3
4 5 6 7
Expand Down
4 changes: 2 additions & 2 deletions doc/source/Installing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Once the tests have been built, you may run tests with:
> ctest


_If you have not run `make tests` before you run `ctest`, then you will see
_Note: If you have not run `make tests` before you run `ctest`, then you will see
all of the tests fail._

Alternatively, you may build the test executables and then run tests
Expand All @@ -124,7 +124,7 @@ immediately with:

(similar to the typical `make check` Autotools target).

*NOTE:* These tests are designed to run in parallel.
*ANOTHER NOTE:* These tests are designed to run in parallel.
If you are on one of the supported supercomputing platforms (i.e., NERSC, NWSC, ALCF,
etc.), then the `ctest` command will assume that the tests will be run in an appropriately configured and scheduled parallel job. This can be done by requesting an interactive session from the login nodes and then running `ctest` from within the interactive terminal. Alternatively, this can be done by running the `ctest` command from a job submission script. It is important to understand, however, that `ctest` itself will preface all of the test executable commands with the appropriate `mpirun`/`mpiexec`/`runjob`/etc. Hence, you should not further preface the `ctest` command with these MPI launchers.

Expand Down
5 changes: 4 additions & 1 deletion src/flib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ target_compile_definitions (piof
if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
target_compile_options (piof
PRIVATE -ffree-line-length-none)
elseif (CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_compile_options (piof
PUBLIC -mismatch_all)
endif()

# Look for c_sizeof capability
Expand Down Expand Up @@ -263,4 +266,4 @@ endif ()
if (NOT PnetCDF_Fortran_FOUND AND NOT NetCDF_Fortran_FOUND)
message (FATAL_ERROR "Must have PnetCDF and/or NetCDF Fortran libraries")
endif ()


5 changes: 5 additions & 0 deletions src/gptl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ endif ()
target_compile_definitions (gptl
PUBLIC ${CMAKE_Fortran_COMPILER_DIRECTIVE})

if (CMAKE_Fortran_COMPILER_ID MATCHES "NAG")
target_compile_options (gptl
PUBLIC -mismatch_all)
endif ()

#==============================================================================
# DEFINE THE INSTALL
#==============================================================================
Expand Down
3 changes: 2 additions & 1 deletion tests/performance/pioperformance.F90
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, rearrangers, n
#ifdef VARDOUBLE
nvarmult = nvarmult+2
#endif
print *, 'write ',rearr_name(rearr), varsize, ntasks, nvars, nvarmult*nvars*nframes*gmaplen*4.0/(1048576.0*wall(2))
print *, 'write ',rearr_name(rearr), varsize, ntasks, nvars, &
nvarmult*nvars*nframes*gmaplen*4.0/(1048576.0*wall(2))
#ifdef BGQTRY
call print_memusage()
#endif
Expand Down

0 comments on commit f5f047b

Please sign in to comment.