Skip to content

Instantly share code, notes, and snippets.

@rsarrazin2
Created August 27, 2025 07:33
Show Gist options
  • Save rsarrazin2/bc0dea0ed9b3a251ba3ee81162fb1029 to your computer and use it in GitHub Desktop.
Save rsarrazin2/bc0dea0ed9b3a251ba3ee81162fb1029 to your computer and use it in GitHub Desktop.
Enable Intel VTune on WSL
// ...
"runArgs": [
"--network=host",
"--privileged",
"--cap-add",
"CAP_SYS_ADMIN",
"--cap-add",
"CAP_SYS_PTRACE",
"--publish",
"7788:7788"
],
// ...
# ...
RUN cd /tmp && wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
&& rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && add-apt-repository "deb https://apt.repos.intel.com/oneapi all main" \
&& apt update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends libgtk-3-0 intel-oneapi-vtune
# in container
source /opt/intel/oneapi/setvars.sh
vtune-backend --allow-remote-access --web-port=7788 --enable-server-profiling
@rsarrazin2
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment