intel / pti-gpu

Profiling Tools Interfaces for GPU (PTI for GPU) is a set of Getting Started Documentation and Tools Library to start performance analysis on Intel(R) Processor Graphics easily
MIT License
202 stars 57 forks source link

Can't build gpuinfo #27

Open JBBIntel opened 1 year ago

JBBIntel commented 1 year ago

I am trying to build the gpuinfo tool on an ORTCE machine. I am using these modules; Currently Loaded Modulefiles: 1) intel/oneapi/2022.0.1 2) intel-comp-rt/agama-ci-prerelease/475(default) 3) intel/pti-gpu-nda/2021-12-03

I get this compile error; In file included from /nfs/site/home/jbberry/pti-gpu/tools/gpuinfo/main.cc:12: /nfs/site/home/jbberry/pti-gpu/tools/gpuinfo/../../utils/metric_device.h: In static member function ‘static uint32_t MetricDevice::GetDeviceCount()’: /nfs/site/home/jbberry/pti-gpu/tools/gpuinfo/../../utils/metric_device.h:32:51: error: invalid conversion from ‘MetricsDiscovery::IAdapterGroup_1_9’ to ‘MetricsDiscovery::IAdapterGroupLatest’ {aka ‘MetricsDiscovery::IAdapterGroup_1_13**’} [-fpermissive] 32 md::TCompletionCode status = OpenAdapterGroup(&adapter_group); ^~~~~~
MetricsDiscovery::IAdapterGroup_1_9**
dmichaelo1 commented 1 year ago

You seem to be missing a header file for the metrics discovery library, metrics_discovery_api.h. If you were using ubuntu, it would have come in the "lib-metrics-discovery-dev" debian package for the metrics discovery library.

YMont commented 1 year ago

I have same problem. I'm sure I finish installation.
reference1: https://github.com/intel/metrics-discovery reference2: https://github.com/intel/metrics-library

Could you tell me how to install "lib-metrics-dicovery-dev" in Ubuntu? What is "lib-metrics-dicovery-dev" package name?

Thanks. @dmichaelo1