Skip to content

Instantly share code, notes, and snippets.

View vejvarm's full-sized avatar

Martin Vejvar vejvarm

  • Yokohama National University
  • Japan
  • 17:27 (UTC +09:00)
View GitHub Profile
@vejvarm
vejvarm / cuda_12.2_installation_on_Ubuntu_20.04
Last active April 11, 2024 18:45 — forked from MihailCosmin/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v12.2 and cuDNN 8.7 installation on Ubuntu 20.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
import pathlib
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def read_data(path_to_csv):
df = pd.read_csv(path_to_csv, skiprows=3)
unit = df.iloc[:, 1].name.split("(")[-1][:-1]