Skip to content

Instantly share code, notes, and snippets.

View jurgonaut's full-sized avatar

Jurij Srebrnič jurgonaut

  • Nova Gorica, Slovenija
View GitHub Profile
@jurgonaut
jurgonaut / amd-rocm-torch-ubuntu.md
Last active November 12, 2024 07:10
Install AMD GPU ROCm and PyTorch on Ubuntu

This is a short guide on how to setup ROCm on Ubuntu. The most important step is that when we install PyTorch we get the latest available ROCm version for it.

Prerequisites

  • Python 3.10 or newer
  • Ubuntu
  • Make sure you have the appropriate kernel version, see prerequesites.

Amdgpu

Select the desired amdgpu version and download the correct Ubuntu version, replace <version> and <codename>. Check the available versions first https://repo.radeon.com/amdgpu-install/.

@jurgonaut
jurgonaut / pid_wrapper_docker.sh
Last active May 21, 2018 12:33 — forked from the-frey/pid_wrapper_docker.sh
PID Wrapper for Docker and Monit
#!/bin/bash
# First, create a folder: /var/run/monit
# Then, make sure your user or group owns it: chown user:user /var/run/monit
# USAGE:
# use option one to start or stop
# use option two as the docker name
# use option three as the docker run command it follows '-d' f you are starting a container
#