Commands for offline installation Intel web link
-
Download and run the installation script:
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/3ffac886-6281-46d7-8704-7aab66705926/l_oneapi_vtune_p_2024.2.0.708_offline.sh sudo sh ./l_oneapi_vtune_p_2024.2.0.708_offline.sh
By default, the
<install-dir>
is:$HOME/intel/oneapi/
when installed with user permissions./opt/intel/oneapi/
when installed with root permissions.
-
Source the environment variables:
source <install-dir>/setvars.sh
-
Run the VTune GUI:
vtune-gui
-
Set the following
sysctl
key controls to enable performance events collection by the tool:echo -1 | sudo dd of=/proc/sys/kernel/perf_event_paranoid echo 0 | sudo dd of=/proc/sys/kernel/yama/ptrace_scope echo 0 | sudo dd of=/proc/sys/kernel/kptr_restrict echo 0 | sudo dd of=/proc/sys/kernel/nmi_watchdog
-
Update and upgrade your system:
sudo apt-get update sudo apt-get upgrade
-
Install perf tools:
sudo apt-get install linux-tools-common linux-tools-generic
-
Set
perf_event_paranoid
:echo -1 | sudo dd of=/proc/sys/kernel/perf_event_paranoid
-
Verify the installation:
perf -v
-
Download the tar.gz file link.
-
Extract the tool:
tar -xzf filename.tar.gz
-
Run commands for opcode mix:
bin64/drrun -c samples/bin64/libopcodes.so -- <exe application command>
-
Install Rust:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
-
Clone the Circom repository:
git clone https://github.com/iden3/circom.git
-
Build the project:
cargo build --release
-
Install Circom:
cargo install --path circom
-
Add the installation directory to your PATH by adding the following line in the
.bashrc
file:export PATH="$HOME/.cargo/bin:$PATH"
-
Get help with Circom commands:
circom --help
-
Update your system:
sudo apt update
-
Install Node.js:
sudo apt install nodejs
-
Install npm:
sudo apt install npm
-
Add npm to your PATH:
export PATH=$HOME/.npm-global/bin:$PATH
-
Install Snarkjs:
npm install -g snarkjs@latest
-
Get help with Snarkjs commands:
snarkjs --help
-
Update the paths as required.
-
Generate the required ZKP algorithm keys and powers of tau setup files using the steps in the Snarkjs Github.
-
Set CPU frequency using the following commands in admin mode:
echo 2000000 | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq echo 2000000 | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq cpupower frequency-set -g powersave
-
Copy Circom and
input.json
files to the folders/paths as required.
- Required tools: Linux commands
- Required tools: Perf
- Required tools:
- Loads and stores: Intel VTune Profiler
- LLC MPKI: Perf
- Memory bandwidth: Intel VTune Profiler
- Required tools:
- Function-level analysis: Intel VTune Profiler
- Instruction-level analysis: DynamoRIO
-
Required tools:
- Strong scaling: Linux commands
- Weak scaling: Linux commands
-
Hyperthreading: Use the below command to adjust status threading and online CPUs:
echo off | sudo tee /sys/devices/system/cpu/smt/control echo 0 | sudo tee /sys/devices/system/cpu/cpux/online