Closed Bengt closed 5 years ago
I am running into an error, when trying to compile this under Ubuntu 18.04.1:
$ export CMAKE_PREFIX_PATH=/opt/rocm/hsa/include/:/opt/rocm/hsa/lib/libhsa-runtime64.so.1 $ cmake -DCMAKE_PREFIX_PATH=/opt/rocm/lib:/opt/rocm/include/hsa -DCMAKE_INSTALL_PREFIX=/opt/rocm .. -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done ----------------NBit: 64 ----------Build-Type: release ------------Compiler: /usr/bin/c++ ----Compiler-Version: 7.3.0 -----HSA-Runtime-Inc: /opt/rocm/hsa/include/hsa -----HSA-Runtime-Lib: /opt/rocm/lib -----------CXX-Flags: -std=c++11 -Wall -Werror -Werror=return-type -fexceptions -fvisibility=hidden -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -fmerge-all-constants -Werror=unused-result -fPIC -m64 -msse -msse2 ---CMAKE_PREFIX_PATH: /opt/rocm/lib:/opt/rocm/include/hsa ---------Install-Dir: /opt/rocm -- LIB-VERSION: 1.0.0 + cp /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/simple_convolution/gfx8_SimpleConvolution.hsaco /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/simple_convolution/gfx9_SimpleConvolution.hsaco /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build + cp /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/run.sh /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build + cp /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/tool/gfx_metrics.xml /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/tool/input.xml /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/tool/input1.xml /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/test/tool/metrics.xml /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build + mkdir -p /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build/RESULTS -- Configuring done -- Generating done -- Build files have been written to: /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build bengt@Bengt-TR4:~/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build$ make /usr/bin/cmake -H/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler -B/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build/CMakeFiles /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build' make -f CMakeFiles/rocprofiler64.dir/build.make CMakeFiles/rocprofiler64.dir/depend make[2]: Entering directory '/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build' cd /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build/CMakeFiles/rocprofiler64.dir/DependInfo.cmake --color= Scanning dependencies of target rocprofiler64 make[2]: Leaving directory '/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build' make -f CMakeFiles/rocprofiler64.dir/build.make CMakeFiles/rocprofiler64.dir/build make[2]: Entering directory '/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build' [ 5%] Building CXX object CMakeFiles/rocprofiler64.dir/src/core/rocprofiler.cpp.o /usr/bin/c++ -DAMD_INTERNAL_BUILD -DAQLPROF_NEW_API=1 -DHSA_DEPRECATED="" -DHSA_LARGE_MODEL="" -DLINUX -DLITTLEENDIAN_CPU=1 -DUNIX_OS -D__AMD64__ -D__linux__ -D__x86_64__ -Drocprofiler64_EXPORTS -I/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/src -I/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler -I/opt/rocm/hsa/include/hsa -std=c++11 -Wall -Werror -Werror=return-type -fexceptions -fvisibility=hidden -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -fmerge-all-constants -Werror=unused-result -fPIC -m64 -msse -msse2 -O3 -DNDEBUG -fPIC -o CMakeFiles/rocprofiler64.dir/src/core/rocprofiler.cpp.o -c /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/src/core/rocprofiler.cpp In file included from /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/src/core/context.h:39:0, from /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/src/core/rocprofiler.cpp:30: /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/src/core/profile.h: In member function ‘hsa_status_t rocprofiler::Profile::Finalize(rocprofiler::pkt_vector_t&, rocprofiler::pkt_vector_t&, rocprofiler::pkt_vector_t&)’: /home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/src/core/profile.h:144:37: error: ‘const pfn_t {aka const struct hsa_ven_amd_aqlprofile_1_00_pfn_s}’ has no member named ‘hsa_ven_amd_aqlprofile_read’; did you mean ‘hsa_ven_amd_aqlprofile_start’? hsa_status_t rd_status = api->hsa_ven_amd_aqlprofile_read(&profile_, &read); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ hsa_ven_amd_aqlprofile_start CMakeFiles/rocprofiler64.dir/build.make:65: recipe for target 'CMakeFiles/rocprofiler64.dir/src/core/rocprofiler.cpp.o' failed make[2]: *** [CMakeFiles/rocprofiler64.dir/src/core/rocprofiler.cpp.o] Error 1 make[2]: Leaving directory '/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build' CMakeFiles/Makefile2:70: recipe for target 'CMakeFiles/rocprofiler64.dir/all' failed make[1]: *** [CMakeFiles/rocprofiler64.dir/all] Error 2 make[1]: Leaving directory '/home/bengt/Projekte/github.com/ROCmSoftwarePlatform/rocprofiler/build' Makefile:154: recipe for target 'all' failed make: *** [all] Error 2
Seeing the same issue.
I don't see the issue on the anymore. Just tested today on Ubuntu 18.04.1. Could you try again and report back?
I am running into an error, when trying to compile this under Ubuntu 18.04.1: