hcc icon indicating copy to clipboard operation
hcc copied to clipboard

Compile error on mcwamp_hsa

Open antifa-ev opened this issue 7 years ago • 4 comments

I was able to compile hcc git version on October 8 the last time. Kernel 4.19.8 with Radeon RX 460

Now it fails after reaching 100 %:

[100%] Building CXX object lib/hsa/CMakeFiles/mcwamp_hsa.dir/mcwamp_hsa.cpp.o
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5332:5: error: unknown type name 'hsa_pitched_ptr_t'
    hsa_pitched_ptr_t src, dst;
    ^
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5335:8: error: member reference base type 'void *' is not a structure or union
    dst.slice=0;
    ~~~^~~~~~
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5341:8: error: member reference base type 'void *' is not a structure or union
    dst.base = dstPtr;
    ~~~^~~~~
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5342:8: error: member reference base type 'void *' is not a structure or union
    dst.pitch=dstPitch;
    ~~~^~~~~~
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5346:94: error: use of undeclared identifier 'hsa_amd_copy_direction_t'
    status = hsa_amd_memory_async_copy_rect(&dst, &dstOff, &src, &srcOff, &range, copyAgent, hsa_amd_copy_direction_t(copyKind),depSignalCnt, depSignalCnt ? depSignals:NULL,completion_signal);
                                                                                             ^
5 errors generated.
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5332:5: error: unknown type name 'hsa_pitched_ptr_t'
    hsa_pitched_ptr_t src, dst;
    ^
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5335:8: error: member reference base type 'void *' is not a structure or union
    dst.slice=0;
    ~~~^~~~~~
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5341:8: error: member reference base type 'void *' is not a structure or union
    dst.base = dstPtr;
    ~~~^~~~~
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5342:8: error: member reference base type 'void *' is not a structure or union
    dst.pitch=dstPitch;
    ~~~^~~~~~
./ROCm/hcc/hcc/lib/hsa/mcwamp_hsa.cpp:5346:94: error: use of undeclared identifier 'hsa_amd_copy_direction_t'
    status = hsa_amd_memory_async_copy_rect(&dst, &dstOff, &src, &srcOff, &range, copyAgent, hsa_amd_copy_direction_t(copyKind),depSignalCnt, depSignalCnt ? depSignals:NULL,completion_signal);
                                                                                             ^
5 errors generated.
make[2]: *** [lib/hsa/CMakeFiles/mcwamp_hsa.dir/build.make:63: lib/hsa/CMakeFiles/mcwamp_hsa.dir/mcwamp_hsa.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:142088: lib/hsa/CMakeFiles/mcwamp_hsa.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

antifa-ev avatar Dec 10 '18 13:12 antifa-ev

I'm assuming that you are building from latest clang_tot_upgrade branch, you will need to update/refresh your AMD HSA runtime (hsa-rocr-dev).

david-salinas avatar Dec 10 '18 20:12 david-salinas

how to update/refresh my AMD HSA runtime (hsa-rocr-dev)?

asleepzzz avatar Dec 15 '18 06:12 asleepzzz

sorry for not getting back to you sooner. Just do an "apt-get update" and then "apt-get upgrade". Is this still an issue for you with latest HCC ?

david-salinas avatar May 01 '19 20:05 david-salinas

Hi @david-salinas , I am on clang_tot_upgrade branch as well and am facing this issue. I did a apt-get update and apt-get upgrade too. by latest HCC, do you mean the master branch?

prateeksahu avatar May 04 '19 18:05 prateeksahu