beef_acc - acc flag added to C compiler

This commit is contained in:
fabrizio22 2021-11-08 11:20:35 +01:00
parent 670a308c25
commit 7e613b3e9a
4 changed files with 9 additions and 0 deletions

View File

@ -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)

1
install/configure vendored
View File

@ -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

View File

@ -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

View File

@ -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