hcc icon indicating copy to clipboard operation
hcc copied to clipboard

Test suite does not pass on custom-packaged distro

Open ubombi opened this issue 6 years ago • 0 comments

I'm trying to use Tensorflow (successfully built), Blender, DavinciResolve, etc... But everything seems broken.

I tried to run hcc tests and got some failures (hcc:clang_tot_upgrade (7c6c3a8 ) | rocr-runtime:2.2.0 | roct-thunk-interface:2.2.0)

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 739.75s
********************
Failing Tests (5):
    HCC :: Unit/AmpMath/amp_math_acosh_precise_math.cpp
    HCC :: Unit/AmpMath/amp_math_asin.cpp
    HCC :: Unit/HC/amdgcn_ds_bpermute.cpp
    HCC :: Unit/HC/early_finalize_1.cpp
    HCC :: Unit/Overload/Negative/linking_error.cpp

  Expected Passes    : 683
  Expected Failures  : 39
  Unexpected Failures: 5

for failed tests command output (stderr):

clang-8: error: ROCm agent detector could not identify any valid targets; please specify the target explicitly by passing a valid value to -amdgpu-target
clang-8: warning: -amdgpu-target argument 'gfx000' is not recognized; using gfx803 instead [-Winvalid-command-line-argument]

So i specified HSA_AMDGPU_GPU_TARGET:STRING=gfx900 and rebuild hcc. That fixed some tests. I got 2 last failed again!

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 764.53s
********************
Failing Tests (2):
    HCC :: Unit/HC/early_finalize_1.cpp
    HCC :: Unit/Overload/Negative/linking_error.cpp

  Expected Passes    : 686
  Expected Failures  : 39
  Unexpected Failures: 2

Command Output (stderr): I replaced long path with PATH

/usr/bin/ld: PATH/build/tests/Unit/HC/Output/early_finalize_1.obj1.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: PATH/build/tests/Unit/HC/Output/early_finalize_1.obj2.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: PATH/build/tests/Unit/HC/Output/early_finalize_1.obj3.o: relocation R_X86_64_32S against symbol `_ZTVSt23_Sp_counted_ptr_inplaceIN6Kalmar7rw_infoESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

ubombi avatar Apr 05 '19 19:04 ubombi