Commit a3586eeb by Tobias Burnus

AMDGCN offloading – use amdgcn-amdhsa

	gcc/
	* doc/install.texi (amdgcn-*-amdhsa): Renamed
	from amdgcn-unknown-amdhsa; change
	amdgcn-unknown-amdhsa to amdgcn-amdhsa.

	gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_offload_gcn):
	Check for -foffload=amdgcn-amdhsa not ...=amdgcn-unknown-amdhsa.
parent 26b3e568
2020-03-23 Tobias Burnus <tobias@codesourcery.com>
* doc/install.texi (amdgcn-*-amdhsa): Renamed
from amdgcn-unknown-amdhsa; change
amdgcn-unknown-amdhsa to amdgcn-amdhsa.
2020-03-23 Richard Biener <rguenther@suse.de> 2020-03-23 Richard Biener <rguenther@suse.de>
PR ipa/94245 PR ipa/94245
......
...@@ -3572,22 +3572,22 @@ This is a synonym for @samp{x86_64-*-solaris2*}. ...@@ -3572,22 +3572,22 @@ This is a synonym for @samp{x86_64-*-solaris2*}.
@html @html
<hr /> <hr />
@end html @end html
@anchor{amdgcn-unknown-amdhsa} @anchor{amdgcn-x-amdhsa}
@heading amdgcn-unknown-amdhsa @heading amdgcn-*-amdhsa
AMD GCN GPU target. AMD GCN GPU target.
Instead of GNU Binutils, you will need to install LLVM 6, or later, and copy Instead of GNU Binutils, you will need to install LLVM 6, or later, and copy
@file{bin/llvm-mc} to @file{amdgcn-unknown-amdhsa/bin/as}, @file{bin/llvm-mc} to @file{amdgcn-amdhsa/bin/as},
@file{bin/lld} to @file{amdgcn-unknown-amdhsa/bin/ld}, @file{bin/lld} to @file{amdgcn-amdhsa/bin/ld},
@file{bin/llvm-nm} to @file{amdgcn-unknown-amdhsa/bin/nm}, and @file{bin/llvm-nm} to @file{amdgcn-amdhsa/bin/nm}, and
@file{bin/llvm-ar} to both @file{bin/amdgcn-unknown-amdhsa-ar} and @file{bin/llvm-ar} to both @file{bin/amdgcn-amdhsa-ar} and
@file{bin/amdgcn-unknown-amdhsa-ranlib}. @file{bin/amdgcn-amdhsa-ranlib}.
Use Newlib (2019-01-16, or newer). Use Newlib (2019-01-16, or newer).
To run the binaries, install the HSA Runtime from the To run the binaries, install the HSA Runtime from the
@uref{https://rocm.github.io,,ROCm Platform}, and use @uref{https://rocm.github.io,,ROCm Platform}, and use
@file{libexec/gcc/amdhsa-unknown-amdhsa/@var{version}/gcn-run} to launch them @file{libexec/gcc/amdhsa-amdhsa/@var{version}/gcn-run} to launch them
on the GPU. on the GPU.
@html @html
......
2020-03-23 Tobias Burnus <tobias@codesourcery.com>
* lib/target-supports.exp (check_effective_target_offload_gcn):
Check for -foffload=amdgcn-amdhsa not ...=amdgcn-unknown-amdhsa.
2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org> 2020-03-22 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/93038 PR d/93038
......
...@@ -9562,7 +9562,7 @@ proc check_effective_target_offload_hsa { } { ...@@ -9562,7 +9562,7 @@ proc check_effective_target_offload_hsa { } {
proc check_effective_target_offload_gcn { } { proc check_effective_target_offload_gcn { } {
return [check_no_compiler_messages offload_gcn assembly { return [check_no_compiler_messages offload_gcn assembly {
int main () {return 0;} int main () {return 0;}
} "-foffload=amdgcn-unknown-amdhsa" ] } "-foffload=amdgcn-amdhsa" ]
} }
# Return 1 if the target support -fprofile-update=atomic # Return 1 if the target support -fprofile-update=atomic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment