aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@baylibre.com>2024-03-04 15:48:47 +0000
committerAndrew Stubbs <ams@baylibre.com>2024-03-21 13:23:44 +0000
commit69dc2dc7e0e853856b84b1bcc89d0241d8a570aa (patch)
tree6acde1cb13f96ae4bb2f89bdf25b8fb42e338f74
parentc3fb8a4d150586459a9fa177cb2aeeac5e4c0464 (diff)
downloadgcc-69dc2dc7e0e853856b84b1bcc89d0241d8a570aa.zip
gcc-69dc2dc7e0e853856b84b1bcc89d0241d8a570aa.tar.gz
gcc-69dc2dc7e0e853856b84b1bcc89d0241d8a570aa.tar.bz2
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.
-rw-r--r--gcc/config/gcn/gcn-hsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/gcn/gcn-hsa.h b/gcc/config/gcn/gcn-hsa.h
index 9cf181f..c75256d 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"