AnsweredAssumed Answered

Runtime crash on APU when using HCC compiler

Question asked by vancenyriad on Nov 27, 2016
Latest reply on Dec 6, 2016 by dipak

Ubuntu VERSION="16.04.1 LTS (Xenial Xerus)"

AMD A10-7860K Radeon R7, 12 Compute Cores 4C+8G

Attempting to compile and run the saxpy code found at:https://gist.github.com/scchan/540d410456e3e2682dbf018d3c179008 saved in a file called hcctestfile.cpp

Compiling using : hcc hcc-config --cxxflags --ldflags hcctestfile.cpp -o test && ./test

compiles successfully but when run produces: HCC STATUS_CHECK Error: HSA_STATUS_ERROR_INCOMPATIBLE_ARGUMENTS (0x100d) at file:/home/scchan/code/github/radeonopencompute/hcc.1.3/hcc/lib/hsa/mcwamp_hsa.cpp line:2504 Aborted (core dumped)

I have tried adding: --amdgpu-target=AMD:AMDGPU:7:0:1 or --amdgpu-target=AMD:AMDGPU:8:0:1

Same error

The code compiles and runs correctly on a different pc with a discrete gpu: Fiji [Radeon R9 FURY / NANO Series]

Outcomes