-
Implements Arena Allocator: A better alternative for dynamic memory allocation as compared to
malloc/freefor this usecase. -
Implements a Psuedo Random Number Generator (PRNG) to be used in ML calculatons.
[18 Jan 2025]
3. make the repository compiler ready: declare include guards in the header files
the code can be compiled using:
clang -fsanitize=address -g -o main.out main.c arena.c matrix.c random.c OS_MEMORY.c
./main.out[21 Jan 2025] 4. Matix multiplication on CPU with loop optimizations
- for training model: Mnist dataset (handwritten digits)
- Python was used to extract the Mnist dataset from the tensorflow_datasets.
- the processed data files (.mat) is stored in /datasets/output/*
- to generate the test and training data files do the following:
cd dataset
source .venv/bin/activate
python main.py