- Ubuntu (native/WSL2)
- install CUDA Toolkit
conda install nvidia/label/cuda-12.6.3::cuda-toolkit
- install nvTIFF per https://developer.nvidia.com/nvtiff-downloads (optional)
- for CuPy (per https://docs.cupy.dev/en/stable/install.html#installing-cupy ), install
- cuTENSOR per https://developer.nvidia.com/cutensor-downloads
This file contains hidden or 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
https://<username>:<token>@github.com |
This file contains hidden or 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
# Ignore Zone-Identifier | |
*.Identifier |
This file contains hidden or 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
#/bin/sh | |
# create citations, create .bbl, actually print bibliography... | |
pdflatex ${1};bibtex ${1};pdflatex ${1} |
This file contains hidden or 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
#include <nanobind/nanobind.h> | |
#include <cstdio> | |
namespace nb = nanobind; | |
using namespace nb::literals; | |
unsigned char *some1(unsigned char *buf, int len) { | |
printf("buf: "); |
This file contains hidden or 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 urllib.request import urlopen | |
def read_from_url_utf8(url): | |
return urlopen(url).read().decode('utf-8') | |
my_url = "https://raw.githubusercontent.com/bfut/unvivtool/main/scripts/unvivtool_script.py" | |
data = read_from_url_utf8(my_url) | |
This file contains hidden or 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
*.ipynb filter=strip-notebook-output |