ROCm / hcc

HCC is an Open Source, Optimizing C++ Compiler for Heterogeneous Compute currently for the ROCm GPU Computing Platform
https://github.com/RadeonOpenCompute/hcc/wiki
Other
429 stars 107 forks source link

Compile error on mcwamp_hsa #960

Open antifa-ev opened 5 years ago

antifa-ev commented 5 years ago

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
david-salinas commented 5 years ago

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).

asleepzzz commented 5 years ago

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

david-salinas commented 5 years ago

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 ?

prateeksahu commented 5 years ago

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?