-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem running simplest program #50
Comments
I have reproduced this issue and opened a internal ticket on HCC development to track it. |
@emerth Could you try adding --amdgpu-target=AMD:AMDGPU:7:0:0 to your link step? |
I had the same problem on rocm 1.2, and haven't check the rocm 1.3 yet. I could avoid this issue for adding the following option into the linking --amdgpu-target= In my case, it is Best, On 17 Nov 2016 00:03, "James Edwards" notifications@github.com wrote:
|
By default, hcc generates ISA code that is compatible to Fiji, Polaris... If you need to target a different architecture then you'll have to specify the architecture |
Adding "--amdgpu-target=AMD:AMDGPU:7:0:0", to the link commandline solved my problem. I had tried this option but in the compile stage, to no effect. I did not realize it was a link option. Thanks to all of you for helping! I think this issue should be closed now, as hcc-config has no way of knowing what the user's target will be. |
I have a test program that worked with ROCm 1.2 and which now fail with ROCm 1.3.
I upgraded to ROCm 1.3 using the instructions at https://github.com/RadeonOpenCompute/ROCm, being careful to uninstall previous version - even rebooted after each kernel change.
Just for the heck of it I also installed hcc_hsail. The problem is identical whether symlink /opt/rocm/hcc points to /opt/rocm/hcc-lc or to /opt/rocm/hcc-hsail.
It'd be great to have v1.3 work as I have been waiting to try out an RX470 that's still sitting in it's retail box...
Basically it looks like something fails in the program setup phase before main() is executed.
Minimal code that demonstrates problem:
System/environment is:
Ubuntu 16.04, AMD A8-7600 APU, no AIB video card.
$uname -a
Linux quad 4.6.0-kfd-compute-rocm-rel-1.3-63 #1 SMP Fri Oct 28 13:14:45 CDT 2016 x86_64 x86_64 x86_64 GNU/Linux
$ echo $PATH
/opt/rocm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
$ echo $LD_LIBRARY_PATH
/opt/rocm/lib
$ head /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 21
model : 48
model name : AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G
stepping : 1
microcode : 0x6003104
cpu MHz : 1400.000
cache size : 2048 KB
physical id : 0
The text was updated successfully, but these errors were encountered: