Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4975 Discussions

Intel Advisor GPU profiling failed.

Lin_L_Intel
Employee
1,425 Views

Hi Guys,

I installed Intel Advior Beta through OneAPI base ToolKit successfully. Our system is Ubuntu with Linux version 4.15.0. Our GPU is Intel(R) Gen9 HD Graphics NEO. I am using lastest sycl compiler with opencl backend. I want to collect GPU Roofline but it fails.

Here is my command:

 

advixe-cl --collect=roofline --profile-gpu --project-dir=./advixe --search-dir src:r=. -- ./myexe

 

Roofline would run analysis twice, survey analaysis and tripcount analysis respectively.

In first analysis, it reports GTPIN warnings as below. What is this?

 

advixe: Starting command line: advixe-cl --collect survey --profile-gpu --project-dir ./advixe --search-dir src:r=. -- ./myexe
Intel(R) Advisor Command Line Tool
Copyright (C) 2009-2020 Intel Corporation. All rights reserved.
advixe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: advixe-cl -r advixe/e000/hs000 -command stop.
OCLC: Attempting to find device type gpu
OCLC: Successfully found OpenCL device
Device Name = Intel(R) Gen9 HD Graphics NEO
Build Options = -D data_t=float -cl-single-precision-constant
Build Options = -D data_t=double
Verification PASSED: 0 errors
advixe: Warning: [Instrumentation Engine]: GTPin: GTPin didn't find any kernels... Exiting without doing anything.
advixe: Collection stopped.

 

 In second analysis, it reports device not found as below but obviously it successfully found the GPU device in survey analysis. How could this happen?

 

advixe: Starting command line: advixe-cl --collect tripcounts --profile-gpu --project-dir ./advixe --search-dir src:r=. --flop --no-trip-counts -- ./myexe
Intel(R) Advisor Command Line Tool
Copyright (C) 2009-2020 Intel Corporation. All rights reserved.
advixe: Opening result 25 % done
advixe: Executing query 100 % done
advixe: Executing query 100 % done
advixe: Executing query 100 % done
advixe: Executing query 100 % done
advixe: Executing query  0 % done
advixe: Executing query 114 % done
advixe: Executing query  0 % done
advixe: Executing query 114 % done
advixe: Executing query 114 % done
advixe: Executing query 100 % done
advixe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: advixe-cl -r advixe/e000/trc000 -command stop.
OCLC: Attempting to find device type gpu
OCLC ERROR(72): Unable to find device type gpu
terminate called after throwing an instance of 'std::runtime_error'
  what():  OCLC ERROR(72): Unable to find device type gpu
advixe: Warning: The application returned a non-zero exit value.
advixe: Opening result 99 % done

 

Can anyone give me some help?

Labels (1)
0 Kudos
1 Solution
AntonT
Employee
1,392 Views

Hi Lin,

$ apt search ^intel-opencl$
Sorting... Done
Full Text Search... Done

I suggest you to install the compute-runtime packages from https://github.com/intel/compute-runtime/releases

BR,

Anton

View solution in original post

0 Kudos
3 Replies
AntonT
Employee
1,414 Views

Hi Lin,

Could you please run:

  • advixe-cl --version
  • dpcpp --version
  • apt search ^intel-opencl$

and copy the output here?

Also it would be helpful if you shared the OpenCL initialization part of your source code. You can contact me via corporate e-mail (Anton Timofeev) for it.

BR, Anton

0 Kudos
Lin_L_Intel
Employee
1,404 Views

Hi Anton,

I've sent you an email for detailed code. Here is the command output.

 

 

$ advixe-cl --version
Intel(R) Advisor 2021.1 beta07 (build 606302) Command Line Tool
Copyright (C) 2009-2020 Intel Corporation. All rights reserved.
$ dpcpp --version
Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.x.0.0728)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nfs/shm/proj/icl/cmplrarch/deploy_xmain/xmainefi2linux/20200728_000000/build/linux_prod/bin
$ apt search ^intel-opencl$
Sorting... Done
Full Text Search... Done

 

Actually I found that the second issue is because I cannot collect tripcounts analysis on GPU. I trigger the tripcounts individually, it still reports GPU device not found error. That's so weird.

Thanks,

Lin

0 Kudos
AntonT
Employee
1,393 Views

Hi Lin,

$ apt search ^intel-opencl$
Sorting... Done
Full Text Search... Done

I suggest you to install the compute-runtime packages from https://github.com/intel/compute-runtime/releases

BR,

Anton

0 Kudos
Reply