]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: Ensure gfx11 is running in cumode
authorAndrew Stubbs <ams@baylibre.com>
Mon, 4 Mar 2024 15:48:47 +0000 (15:48 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Thu, 21 Mar 2024 13:23:44 +0000 (13:23 +0000)
CUmode "on" is the setting for compatibility with GCN and CDNA devices.

gcc/ChangeLog:

* config/gcn/gcn-hsa.h (ASM_SPEC): Pass -mattr=+cumode.

gcc/config/gcn/gcn-hsa.h

index 9cf181f52a40de50979fb11fd314340bf479dce1..c75256dbac37199d764282b3447703b828a4340e 100644 (file)
@@ -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"