[PATCH] AMD GCN Port

Andrew Stubbs ams@codesourcery.com
Thu Jan 10 12:35:00 GMT 2019


Hi all,

The GCC port to the AMD GCN architecture (used in GPUs) will be 
committed soon (I hope), so here is the Newlib port to go with it.

The patch includes enough to run most of the GCC testsuite, and 
therefore most of what users will need for OpenACC/OpenMP offloading. 
I've omitted the config.sub and the generated files from the patch, but 
I would add those before committing.

Because GCN is a GPU architecture there is no real support for I/O. The 
"gcn-run" stand-alone launcher program, and libgomp offload launcher 
(both included with GCC), feature a shared-memory interface to implement 
input arguments, return code, and stdout, but that's all.

On the other hand, because it's a GPU architecture, we absolutely need 
to handle re-entrancy -- there can be hundreds of hardware threads 
running at once -- so the port uses __DYNAMIC_REENT__ and malloc locks.

The port still needs a lot more stub functions for system calls, if it 
is to support Fortran write, for example, but those can wait for another 
time.

OK to commit once GCC is done? (I will also retest at that time.)

-- 
Andrew Stubbs
Mentor Graphics / CodeSourcery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 190110-newlib-gcn-port.patch
Type: text/x-patch
Size: 23351 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190110/d4bbb09d/attachment.bin>


More information about the Newlib mailing list