Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTune + Caliper problem with "vtune -start-paused ..." #3298

Open
nrnhines opened this issue Dec 28, 2024 · 0 comments
Open

VTune + Caliper problem with "vtune -start-paused ..." #3298

nrnhines opened this issue Dec 28, 2024 · 0 comments

Comments

@nrnhines
Copy link
Member

I have Ubuntu 24.04, Lenovo thinkStation P5, Intel Xeon w3-2435 x 16
I followed, as far as I understood, the info at https://nrn.readthedocs.io/en/latest/install/debug.html#profiling-with-intel-vtune
Some further details in regard to setting things up are:

Install Intel oneAPI Base Toolkit (intel compilers and includes VTune). I used
https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html?operatingsystem=linux

I select the intel compilers with:

source /opt/intel/oneapi/2025.0/oneapi-vars.sh

export CC=icx
export CXX=icpx

Install Caliper

~/soft/Caliper/build$ git diff
diff --git a/cmake/FindITTAPI.cmake b/cmake/FindITTAPI.cmake
index bfd53b29..bce0d04a 100644
--- a/cmake/FindITTAPI.cmake
+++ b/cmake/FindITTAPI.cmake
@@ -6,11 +6,11 @@ find_path(ITT_INCLUDE_DIR
 
 find_library(ITT_LIBRARY
   NAMES ittnotify
-  HINTS ${ITT_PREFIX}/lib)
+  HINTS ${ITT_PREFIX}/lib ${ITT_PREFIX}/lib64)

and

cmake .. -DCMAKE_INSTALL_PREFIX=install -DWITH_VTUNE=ON -DITT_PREFIX=/opt/intel/oneapi/vtune/2025.0/sdk

near the end of the cmake output, we see

-- VTune support             : Yes, using /opt/intel/oneapi/vtune/2025.0/sdk/lib64/libittnotify.a

Build NEURON

cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=install -DNRN_ENABLE_PROFILING=ON -DNRN_PROFILER=caliper -DCMAKE_PREFIX_PATH=$HOME/soft/Caliper/build/install -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer" -DNRN_ENABLE_RX3D=OFF

In preparation for performance measurement
In Settings Power, select Power Mode "Performance"
also:

export CALI_SERVICES_ENABLE=vtune
sudo sysctl kernel.perf_event_paranoid=0

To do a performance measurement (eg. a modeldb model)

vtune -start-paused -collect uarch-exploration --no-summary -result-dir nrn_vtune_result nrniv mosinit.hoc
vtune-gui nrn_vtune_result &

My problem is that some of the vtune - start-paused output is

vtune: Warning: Pause command is not supported for managed code profiling. Runtime overhead is still possible. Data size limit may be exceeded.
vtune: Collection paused.

and vtune-gui shows no result data
image

I suppose this is not a complete blocker since, without the -start-paused I end up with a vtune-gui
image

I do note that from https://www.intel.com/content/www/us/en/docs/vtune-profiler/installation-guide/2025-0/regular-install.html#ENV, running /opt/intel/oneapi/vtune/latest/bin64$ vtune-self-checker.sh
ends with

The system is ready for the following analyses:
* Performance Snapshot
* Hotspots with HW event-based sampling, HPC Performance Characterization, etc.
* Microarchitecture Exploration
* Memory Access
* Hotspots with HW event-based sampling and call stacks
* Threading with HW event-based sampling

The following analyses have failed on the system:
* Hotspots and Threading with user-mode sampling
* GPU Compute/Media Hotspots (characterization mode)
* GPU Compute/Media Hotspots (source analysis mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant