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
# Simple test to check if pytorch is installed and can create matrices | |
import torch | |
x = torch.rand(5, 3) | |
print(x) | |
print("\n") | |
if torch.cuda.is_available(): | |
print("Is PyTorch CUDA installed: " + str(torch.cuda.is_available())) | |
print("Number of Cuda Devices: " + str(torch.cuda.device_count())) |
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
# Makefile template to compile SLD2 sources on Apple m1 with compile and installed libraries | |
all: | |
arch -arm64 cc -c src/filehandler.c -I include | |
arch -arm64 cc -c src/main.c -I include -I /usr/local/include/SDL2 | |
arch -arm64 cc -o hl1038 main.o filehandler.o -L /usr/local/lib -lsdl2 -lsdl2_image -lsdl2_ttf | |
clean: | |
rm filehandler.o | |
rm main.o |
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
" turn on syntax highlighting | |
syntax on | |
" turn on line numbers | |
set nu | |
set tabstop=4 "Tab space is 4 | |
set shiftwidth=4 | |
set softtabstop=0 | |
set noexpandtab |
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
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* |