h8rt3rmin8r

nvidia-visual-profiler.sh

Oct 14th, 2020
168
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /usr/bin/env bash
  2. #
  3. # [ nvidia-visual-profiler ]
  4. #
  5. #    Launch Nvidia Visual Profiler via Open JDK
  6. #    Created on 20201014 by h8rt3rmin8r (161803398@email.tg)
  7. #
  8. # Reference:
  9. #
  10. #    # Install CUDA on Ubuntu 20 (linuxconfig.org)
  11. #    https://linuxconfig.org/how-to-install-cuda-on-ubuntu-20-04-focal-fossa-linux
  12. #
  13. #    # CUDA install unmet dependencies
  14. #    https://bit.ly/2SWO18e
  15. #
  16. #    # Failed to load "canberra-gtk-module" (askubuntu.com)
  17. #    https://askubuntu.com/a/1253413
  18. #
  19.  
  20. software_check=$(which nvvp &>/dev/null; echo $?)
  21.  
  22. if [[ "${software_check}" -ne 0 ]]; then
  23.     echo "ERROR: Missing required software: nvvp"
  24.     exit 1
  25. fi
  26.  
  27. nvvp -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
  28.  
RAW Paste Data