mirror of https://gitlab.com/QEF/q-e.git
beef_acc - acc flag added to C compiler
This commit is contained in:
parent
670a308c25
commit
7e613b3e9a
|
@ -10,6 +10,10 @@ if(QE_ENABLE_OPENACC)
|
|||
set_target_properties(OpenACC::OpenACC_Fortran PROPERTIES
|
||||
INTERFACE_COMPILE_OPTIONS "-acc"
|
||||
INTERFACE_LINK_OPTIONS "-acc")
|
||||
add_library(OpenACC::OpenACC_C INTERFACE IMPORTED)
|
||||
set_target_properties(OpenACC::OpenACC_C PROPERTIES
|
||||
INTERFACE_COMPILE_OPTIONS "-acc"
|
||||
INTERFACE_LINK_OPTIONS "-acc")
|
||||
endif()
|
||||
|
||||
if(QE_ENABLE_CUDA)
|
||||
|
|
|
@ -4793,6 +4793,7 @@ $as_echo "$as_me: WARNING: Using legacy custom solver." >&2;}
|
|||
if test "$enable_openacc" == "yes"; then
|
||||
ldflags="$ldflags -acc"
|
||||
cuda_fflags="$cuda_fflags -acc"
|
||||
CUDA_CFLAGS="$CUDA_CFLAGS -acc"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
|
@ -209,6 +209,7 @@ EOF
|
|||
if test "$enable_openacc" == "yes"; then
|
||||
ldflags="$ldflags -acc"
|
||||
cuda_fflags="$cuda_fflags -acc"
|
||||
CUDA_CFLAGS="$CUDA_CFLAGS -acc"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
|
@ -101,6 +101,9 @@ CUDA_RUNTIME=@gpu_runtime@
|
|||
# CUDA F90 Flags
|
||||
CUDA_F90FLAGS=@cuda_fflags@ $(MOD_FLAG)$(TOPDIR)/external/devxlib/src
|
||||
|
||||
# CUDA C Flags
|
||||
CUDA_CFLAGS=@CUDA_CFLAGS@
|
||||
|
||||
# C preprocessor and preprocessing flags - for explicit preprocessing,
|
||||
# if needed (see the compilation rules above)
|
||||
# preprocessing flags must include DFLAGS and IFLAGS
|
||||
|
|
Loading…
Reference in New Issue