[gcc r14-9594] amdgcn: Ensure gfx11 is running in cumode
Andrew Stubbs
ams@gcc.gnu.org
Thu Mar 21 13:39:13 GMT 2024
https://gcc.gnu.org/g:69dc2dc7e0e853856b84b1bcc89d0241d8a570aa
commit r14-9594-g69dc2dc7e0e853856b84b1bcc89d0241d8a570aa
Author: Andrew Stubbs <ams@baylibre.com>
Date: Mon Mar 4 15:48:47 2024 +0000
amdgcn: Ensure gfx11 is running in cumode
CUmode "on" is the setting for compatibility with GCN and CDNA devices.
gcc/ChangeLog:
* config/gcn/gcn-hsa.h (ASM_SPEC): Pass -mattr=+cumode.
Diff:
---
gcc/config/gcn/gcn-hsa.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/config/gcn/gcn-hsa.h b/gcc/config/gcn/gcn-hsa.h
index 9cf181f52a4..c75256dbac3 100644
--- a/gcc/config/gcn/gcn-hsa.h
+++ b/gcc/config/gcn/gcn-hsa.h
@@ -107,6 +107,7 @@ extern unsigned int gcn_local_sym_hash (const char *name);
"%{" NO_XNACK XNACKOPT "} " \
"%{" NO_SRAM_ECC SRAMOPT "} " \
"%{march=gfx1030|march=gfx1100:-mattr=+wavefrontsize64} " \
+ "%{march=gfx1030|march=gfx1100:-mattr=+cumode} " \
"-filetype=obj"
#define LINK_SPEC "--pie --export-dynamic"
#define LIB_SPEC "-lc"
More information about the Gcc-cvs
mailing list