public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] amdgcn: disallow USM on gfx908
@ 2022-10-24 16:19 Andrew Stubbs
  0 siblings, 0 replies; only message in thread
From: Andrew Stubbs @ 2022-10-24 16:19 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0889dd6912c8550e113d8b5417fd65291316209c

commit 0889dd6912c8550e113d8b5417fd65291316209c
Author: Andrew Stubbs <ams@codesourcery.com>
Date:   Tue Oct 18 16:22:53 2022 +0100

    amdgcn: disallow USM on gfx908
    
    It does work, but not well and only with the amdgpu.noreply=0 kernel boot
    option.
    
    gcc/ChangeLog:
    
            * config/gcn/gcn.cc (gcn_init_cumulative_args): Disallow gfx908.

Diff:
---
 gcc/ChangeLog.omp     | 4 ++++
 gcc/config/gcn/gcn.cc | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index 1e05594a4c6..d7b693ac830 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,3 +1,7 @@
+2022-10-24  Andrew Stubbs  <ams@codesourcery.com>
+
+	* config/gcn/gcn.cc (gcn_init_cumulative_args): Disallow gfx908.
+
 2022-10-24  Andrew Stubbs  <ams@codesourcery.com>
 
 	* plugin/plugin-gcn.c (HSA_AMD_SYSTEM_INFO_SVM_SUPPORTED): New.
diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index 9c2fd4c5b8a..720c0a08a13 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -2905,6 +2905,7 @@ gcn_init_cumulative_args (CUMULATIVE_ARGS *cum /* Argument info to init */ ,
 	case PROCESSOR_FIJI:
 	case PROCESSOR_VEGA10:
 	case PROCESSOR_VEGA20:
+	case PROCESSOR_GFX908:
 	  error ("GPU architecture does not support Unified Shared Memory");
 	default:
 	  ;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-24 16:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24 16:19 [gcc/devel/omp/gcc-12] amdgcn: disallow USM on gfx908 Andrew Stubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).