chsasank / llama.lisp

Lisp dialect designed for HPC and AI
GNU Lesser General Public License v2.1
15 stars 6 forks source link

Kernels in C-lisp #70

Open BiradarSiddhant02 opened 4 months ago

BiradarSiddhant02 commented 4 months ago

Implements the runtime C file that has functions to :

  1. generate matrices
  2. multiply matrices for reference
  3. compare matrices
  4. print matrices

A .sexp file with the kernel implementation (incomplete)

A bash script to run the .sexp file

chsasank commented 4 months ago

Keep main function in your C code. Keep just the bare minimum matmul code in c-lisp.

chsasank commented 4 months ago

Can you write code in C to measure flops for our kernel as well?

BiradarSiddhant02 commented 4 months ago

I am facing difficulties with makefile (https://github.com/chsasank/llama.lisp/pull/70/commits/3e60c5b222e2d0bdf7c24360ee44906bff927be9) .

Finding it hard to understand documentation. Will come back to this later

chsasank commented 4 months ago

Do post benchmark graphs

chsasank commented 3 months ago

Macros look good but I would want a script that run tests for each of the macros and plot perf vs reference

BiradarSiddhant02 commented 3 months ago

Macros look good but I would want a script that run tests for each of the macros and plot perf vs reference

So a turnt.toml file?

chsasank commented 3 months ago

Better write python/bash/make

BiradarSiddhant02 commented 3 months ago

Should fix MMult_4x4_4 and MMult_4x4_5