Skip to content

Commit

Permalink
enable compilation with Intel and nvhpc(>23.7 required)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrows committed Nov 9, 2023
1 parent 50e883c commit 8c602b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/programs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ ecbuild_list_add_pattern( LIST driver_src
ectrans-benchmark-data_mod.F90
QUIET
)
set(CMAKE_Fortran_PREPROCESS_SOURCE
"gcc -cpp <DEFINES> <INCLUDES> -E <SOURCE> -o <PREPROCESSED_SOURCE>")
foreach( prec sp dp )
if( HAVE_${prec} )
if( ${prec} MATCHES "sp" )
Expand Down
3 changes: 3 additions & 0 deletions src/trans/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ if( NOT HAVE_FFTW )
ecbuild_list_exclude_pattern( LIST trans_src REGEX tpm_fftw.F90 )
endif()

set(CMAKE_Fortran_PREPROCESS_SOURCE
"gcc -cpp <DEFINES> <INCLUDES> -E <SOURCE> -o <PREPROCESSED_SOURCE>")

foreach( prec dp sp )
if( HAVE_${prec} )

Expand Down
4 changes: 4 additions & 0 deletions src/trans/include/ectrans/renames.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#define PASTE2(x,y) x/**/y
#define EVALUATOR(x,y) PASTE2(PASTE2(x,_),y)
#define SUFFIXIZE(fun) EVALUATOR(fun,SYMBOLSUFFIX)
!#define __ATLAS_IO_SPLICE(a, b) __ATLAS_IO_SPLICE_1(a, b)
!#define __ATLAS_IO_SPLICE_1(a, b) __ATLAS_IO_SPLICE_2(a, b)
!#define __ATLAS_IO_SPLICE_2(a, b) a##b
!#define SUFFIXIZE(fun) __ATLAS_IO_SPLICE(fun,SYMBOLSUFFIX)
#define ABORT_TRANS_MOD SUFFIXIZE(ABORT_TRANS_MOD)
#define ASRE1AD_MOD SUFFIXIZE(ASRE1AD_MOD)
#define ASRE1BAD_MOD SUFFIXIZE(ASRE1BAD_MOD)
Expand Down

0 comments on commit 8c602b2

Please sign in to comment.