This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenACC middle end changes


Hi!

On Thu, 18 Dec 2014 14:16:52 +0100, I wrote:
> --- /dev/null
> +++ gcc/config/i386/intelmic-offload.h

> +#define ACCEL_COMPILER_acc_device GOMP_DEVICE_INTEL_MIC

This one I got right...

> --- /dev/null
> +++ gcc/config/nvptx/offload.h
> @@ -0,0 +1,35 @@

> +#define ACCEL_COMPILER_acc_device GOMP_TARGET_NVIDIA_PTX

..., but not this one.  Committed to trunk in r220686:

commit 8fbeb4361af9e77c57d3b15c7be11759a4f608c0
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Feb 13 16:20:01 2015 +0000

    GOMP_TARGET_* have been renamed to GOMP_DEVICE_* some time ago.
    
    	gcc/
    	* config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
    	GOMP_DEVICE_NVIDIA_PTX.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220686 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog              |    5 +++++
 gcc/config/nvptx/offload.h |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git gcc/ChangeLog gcc/ChangeLog
index e06f69a..d9c58b9 100644
--- gcc/ChangeLog
+++ gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
+	GOMP_DEVICE_NVIDIA_PTX.
+
 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
 
 	PR ipa/65034
diff --git gcc/config/nvptx/offload.h gcc/config/nvptx/offload.h
index 02c5e8b..9a749a2 100644
--- gcc/config/nvptx/offload.h
+++ gcc/config/nvptx/offload.h
@@ -30,6 +30,6 @@
 
 #include "gomp-constants.h"
 
-#define ACCEL_COMPILER_acc_device GOMP_TARGET_NVIDIA_PTX
+#define ACCEL_COMPILER_acc_device GOMP_DEVICE_NVIDIA_PTX
 
 #endif


GrÃÃe,
 Thomas

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]