-
Notifications
You must be signed in to change notification settings - Fork 108
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
HCC STATUS_CHECK Error: HSA_STATUS_ERROR_INCOMPATIBLE_ARGUMENTS #197
Comments
Could you let me know your hardware configuration? By default HCC produces GCN ISA for Fiji ASIC with
|
That's probably it, when I build it hcc/etc from source I use "AMD:AMDGPU:7:0:1" and it was fine with 1.3.1, haven't been able to finish building 1.4 from source due to #196 |
Linking with "--amdgpu-target=AMD:AMDGPU:7:0:1" has resolved this. |
I'm running into the same issues while trying to use a machine with a Fiji and a Hawaii GPU. I tried to compile passing either or both --amdgpu-target=AMD:AMDGPU:7:0:1 --amdgpu-target=AMD:AMDGPU:8:0:3, but I still get the HSA_STATUS_ERROR_INCOMPATIBLE_ARGUMENTS error. |
@pszi1ard may I understand the output of In case you are not afraid of building the compiler from source, you can find a useful script at: |
Indeed, it's based on clang 3.5. $ /opt/rocm/hcc/bin/hcc --version | head -n1 However I still can't run any hcc program, even if I specify only one of the target. Is that because the binary ends up with code for only one target arch, but by default the code will execute on both detected devices? How can I restrict which devices can the runtime access? Does GPU_DEVICE_ORDINAL work? |
@pszi1ard Given your system configuration ( Fiji + Hawaii ), I would recommend you to try build HIP & HCC from source, before we officially publish Clang 4.0 (or 5.0)-based HCC in the next ROCm release. could you open up a new ticket and post relevant information there? we can continue the discussion over there. |
I have a source build here change line 67 to target different GPU by default. Personally I'd never mix GPUs in a system. didn't even know it was possible. |
I'm not sure I'll have the time, but I will report back if I do. Not sure what to open a ticket for, but here's an RFE for selecting devices using and env var: #249)/
Thanks, I might try that!
Why? I have dev boxes with different gen devices exactly in order to facilitate testing. Not supporting such a setup is just counter-intuitive. |
@pszi1ard You could also get a newer hcc installer package from the preview HIP release so you won't have to build hcc from source |
Saxpy example fails with message
The text was updated successfully, but these errors were encountered: