Skip to content

Instantly share code, notes, and snippets.

@jbohnslav
jbohnslav / cuda_reinstall.txt
Created November 22, 2022 02:57
Reinstall Nvidia drivers and CUDA on Ubuntu
# Uninstall all nvidia packages, old drivers, etc.
# list all the packages with nvidia in the name
dpkg -l | grep -i nvidia
sudo apt-get remove --purge nvidia*
sudo apt-get remove --purge cuda*
sudo apt-get remove --purge libnccl*
@jbohnslav
jbohnslav / print_hdf5.py
Created November 2, 2020 20:29
Simple function to print out the data contained in an HDF5 file
def print_hdf5(h5py_obj, level=-1, print_full_name: bool = False, print_attrs: bool = True) -> None:
""" Prints the name and shape of datasets in a H5py HDF5 file.
Parameters
----------
h5py_obj: [h5py.File, h5py.Group]
the h5py.File or h5py.Group object
level: int
What level of the file tree you are in
print_full_name
@jbohnslav
jbohnslav / build.log
Created March 11, 2019 17:57
build.log
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works