15#if defined(__OFFLOAD_CUDA) || defined(__OFFLOAD_HIP)
21 "OpenMP is required. Please add the corresponding flag (eg. -fopenmp for GFortran) to your Fortran compiler flags."
25#if !defined(__SHORT_FILE__)
26#define __SHORT_FILE__ __FILE__
29#define __LOCATION__ cp__l(__SHORT_FILE__,__LINE__)
30#define CPWARN(msg) CALL cp__w(__SHORT_FILE__,__LINE__,msg)
31#define CPABORT(msg) CALL cp__b(__SHORT_FILE__,__LINE__,msg)
33#define CPHINT(msg) CALL cp__h(__SHORT_FILE__,__LINE__,msg)
35# define CPASSERT(cond) IF(.NOT.(cond))CALL cp__a(__SHORT_FILE__,__LINE__)
42#define MARK_USED(foo) IF(.FALSE.)THEN; DO ; IF(SIZE(SHAPE(foo))==-1) EXIT ; END DO ; ENDIF
47#define CPVERSION2(MAJOR, MINOR) ((MAJOR) * 10000 + (MINOR) * 100)
48#define CPVERSION3(MAJOR, MINOR, UPDATE) (CPVERSION2(MAJOR, MINOR) + (UPDATE))
49#define CPVERSION CPVERSION2
54#if __GNUC__ < 8 || (__GNUC__ == 8 && (__GNUC_MINOR__ < 3))
55#define OMP_DEFAULT_NONE_WITH_OOP SHARED
57#define OMP_DEFAULT_NONE_WITH_OOP NONE
Central dispatch for basic hooks.
subroutine, public cp_abort(location, message)
Terminate the program.
subroutine, public cp__w(filename, linenr, message)
CPWARN handler.
subroutine, public timeset(routinen, handle)
Start timer.
subroutine, public cp__a(filename, linenr)
CPASSERT handler.
character(len=default_string_length) function, public cp__l(filename, linenr)
Helper routine to assemble LOCATION
subroutine, public cp_hint(location, message)
Issue a hint.
subroutine, public timestop(handle)
Stop timer.
subroutine, public cp__h(filename, linenr, message)
CPHINT handler.
subroutine, public cp_warn(location, message)
Issue a warning.
subroutine, public cp__b(filename, linenr, message)
CPABORT handler.