- Install Cannon printer drivers
sudo apt update; sudo apt install software-properties-common cups-backend-bjnp
- Make sure user has password (add password using
sudo passwd $user
) - Follow instructions to install server https://pimylifeup.com/raspberry-pi-print-server/
- Chrome doesn't work to add a printer - worked on Safari
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import ceil | |
from typing import Optional, Tuple, Union | |
import torch | |
from torch import Tensor, nn | |
from torch.distributed._tensor import DTensor, Replicate, Shard, distribute_module, distribute_tensor | |
from torch.distributed._tensor.op_schema import OpSchema, OutputSharding | |
from torch.distributed._tensor.ops.embedding_ops import embedding_rules | |
from torch.distributed._tensor.ops.utils import register_prop_rule | |
from torch.distributed._tensor.placement_types import DTensorSpec, _Partial |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# peak_memory [command ...] | |
# Run the given command line in the background and kill if script exits | |
trap 'kill $(jobs -p) 2&> /dev/null' EXIT | |
"$@" & | |
pid=$! phys_peak=0 not_avail_peak=0 | |
# while command still running | |
while ps -p $pid &>/dev/null; do | |
sleep 1 | |
mem_total="$(cat /proc/meminfo | grep 'MemTotal:' | grep -oe '\([0-9.]*\)')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlsxwriter | |
def excel_formatter(writer, sheet, df, num_format = None, auto_filter = False, auto_fit = False): | |
workbook = writer.book | |
worksheet = writer.sheets[sheet] | |
cols = list(df.columns) | |
max_row, max_col = df.shape | |
num_format = num_format if num_format else {} | |
num_format_types = { |
Using https://github.com/NVIDIA/cuda-samples
You can also view the GPU topology using nvidia-smi topo -m
- Download repo
git clone https://github.com/NVIDIA/cuda-samples.git
- Checkout the tag that corresponds with the right CUDA version:
git checkout tags/v11.1
- You might need to install some additional packages
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libglfw3-dev libgles2-mesa-dev
- Either build everything by just execting
make
in root dir. Orcd Samples/p2pBandwidthLatencyTest; make
NewerOlder