Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1641 Discussions

Please install missing libraries for vtune

Jin__Zheming
Beginner
2,402 Views

Can you please install the missing libraries for vtune on a gpu node ?   Thanks

 

        libnss3.so => not found
        libnssutil3.so => not found
        libsmime3.so => not found
        libnspr4.so => not found
 

0 Kudos
13 Replies
STyur
New Contributor I
2,402 Views

You can install these libs locally by my script (file attached) by command:

~/src$ ./lib_inst_devcloud.sh <deb lib name>

for example:

~/src$ ./lib_inst_devcloud.sh libnss3

 

#!/bin/bash

# =====================================================
function die()
{
  echo
  echo ">>>>>>>>>>>>>=============<<<<<<<<<<<<<"
  echo  "Installation filed"
  echo ">>>>>>>>>>>>>=============<<<<<<<<<<<<<"
  echo
  exit 1
}
# =====================================================
function install_local_lib(){
echo "Download $1"
apt download $1 || die
LIB_UNPACK_DEB=`ls | grep "$1"|grep '.deb'`
echo "Unpack $1"
dpkg -x $LIB_UNPACK_DEB $1 || die
echo "Copy $1"
cp -rf $1/usr/lib/x86_64-linux-gnu/* $HOME/.local/lib/ || die
echo "Clearing"
rm -rf $LIB_UNPACK_DEB $1
}
# =====================================================

# ##################################################################
if [[ -z `cat $HOME/.bash_profile|grep 'var_add_path()'` ]]; then
cat << 'EOF' >> $HOME/.bash_profile
# =====================================================
function var_add_path(){
# Use var_add_path "VAR" "/path/to/smth" "s|e"
# s - at the beginning; e - at the end
# echo "Adding $2 to $1 at the <start|end> $3"
  tmp_var=$1
  if [ -d "$2" ]; then
    if [[ ":${!tmp_var}:" != *":$2:"* ]]; then
      # For non-empty, only add if not already there
      if [[ "$3" == "s" ]]; then
    [[ -z "${!tmp_var}" ]] && export $1=$2 || export $1=$2:${!tmp_var}
      else
    [[ -z "${!tmp_var}" ]] && export $1=$2 || export $1=${!tmp_var}:$2
      fi
    fi
  fi
}
# =====================================================
var_add_path "PATH" "$HOME/.local/bin" "s"
var_add_path "PATH" "$HOME/bin" "s"
var_add_path "PATH" "/bin" "e"
var_add_path "LD_LIBRARY_PATH" "$HOME/.local/lib" "e"

EOF
fi


[[ ! -d $HOME/src ]] && mkdir $HOME/src
cd $HOME/src

install_local_lib $1 

 

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

Thanks for reaching out to us.

You can find the above mentioned missing libraries in the below path:

/opt/intel/inteloneapi/advisor/2021.1-beta05/lib64

 

Could you please check and let us know if you have any further issues.

 

Thanks

0 Kudos
Jin__Zheming
Beginner
2,402 Views

Yes. Some libraries are still not found.  I hope that a user doesn't need to install them locally.

         libsmime3.so => not found
        libplc4.so => not found
        libplds4.so => not found
        libplc4.so => not found
        libplds4.so => not found
 

Thanks

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

Could you please provide the following details

1. Which analysis you are trying?

2. Did you get any errors while running the analysis because of the missing files? If so, in which step you got the error?

 

Thanks

0 Kudos
Jin__Zheming
Beginner
2,402 Views

Could you give a try yourself ? 

People couldn't launch GUI Vtune for analyzing applications on a GPU.  If you don't want people to use Vtune GUI, please let users know.   

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

All vtune analysis could also be run using command line. We have tried out vtune using commandline options on devcloud and could observe this works without any issues. You can run the required analysis and export the result directory to your local machine for visualizing it. Below is a general syntax to run vtune via command line

vtune-collect <analysis_type> [-target-system=<system>] [-knob <knobName=knobValue>] [--] <target>
  • <analysis_type> is the type of analysis to run. To see the list of available analysis types, enter:
      vtune -help collect
  • -target-system is an option targeted for remote analysis and specifies a remote Linux* system or a Android* device
  • -knob is a configuration option that modifies the analysis
  • [knobName=knobValue] is the name of the specified knob and its value
  • <target> is the path and name of the application to analyze. If you need to analyze a process, use the -target-process or -target-pid option to specify the process name or ID. For a system-wide analysis, no target specification is required.

You could visit the following link for more details

https://software.intel.com/en-us/vtune-help-command-line-interface

Hope this helps.

Thanks

 

 

 

0 Kudos
Jin__Zheming
Beginner
2,402 Views

When a user tries to collect data using the full-compute mode on a gpu, multiple run is required. But enabling multiple run causes the following error: 

vtune: Error: Driverless collection cannot be performed in multiple runs. Please either disable multiple runs or install VTune Profiler sampling drivers and run collection without stacks. See "Sampling and Power Drivers" help topic for further details.
 

Thanks for your solution. 

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

We understand your concern. We have informed the concerned team regarding this issue and get back to you soon.

 

Thanks

0 Kudos
Dan_P_Intel
Employee
2,402 Views

Jin, Zheming wrote:

People couldn't launch GUI Vtune for analyzing applications on a GPU.

The Intel(R) DevCloud is a cluster with no windows subsystem. By design GUI applications won't work.
This is typical for how clusters operate and it is unlikely to change in the future.

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

Could you please confirm whether your query is been answered?

Regarding vtune drivers, the team is working on it.

Thanks

0 Kudos
Jin__Zheming
Beginner
2,402 Views

Sorry, it doesn't make sense that people couldn't use the GUI interface on a cluster. I hope that a solution can be provided to solve the limitation. What about the workbench, which has a GUI inference, in OpenVINO ?   

Yes, the query has been answered. Thanks again. 

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

 You could use VTune as a web server in addition to the classic desktop usage model. 

Please find the below link for more information.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/launch/web-server-ui.html#web-server-ui

Hope this helps.

 

Thanks

0 Kudos
AthiraM_Intel
Moderator
2,402 Views

Hi,

Since your query has been answered, we are closing this case. Please feel free to raise a new thread if you have any further queries.

 

Thanks

0 Kudos
Reply