Skip to content

Instantly share code, notes, and snippets.

@h8rt3rmin8r
Created October 14, 2020 20:40
Show Gist options
  • Save h8rt3rmin8r/899c66261568ec0a8ddbe0a1558f6478 to your computer and use it in GitHub Desktop.
Save h8rt3rmin8r/899c66261568ec0a8ddbe0a1558f6478 to your computer and use it in GitHub Desktop.
Launch Nvidia Visual Profiler via Open JDK
#! /usr/bin/env bash
#
# [ nvidia-visual-profiler ]
#
# Launch Nvidia Visual Profiler via Open JDK
# Created on 20201014 by h8rt3rmin8r (161803398@email.tg)
#
# Reference:
#
# # Install CUDA on Ubuntu 20 (linuxconfig.org)
# https://linuxconfig.org/how-to-install-cuda-on-ubuntu-20-04-focal-fossa-linux
#
# # CUDA install unmet dependencies
# https://bit.ly/2SWO18e
#
# # Failed to load "canberra-gtk-module" (askubuntu.com)
# https://askubuntu.com/a/1253413
#
software_check=$(which nvvp &>/dev/null; echo $?)
if [[ "${software_check}" -ne 0 ]]; then
echo "ERROR: Missing required software: nvvp"
exit 1
fi
nvvp -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment