chsasank / llama.lisp

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

Add support for contiguous memory allocation and pointers #15

Closed GlowingScrewdriver closed 5 months ago

GlowingScrewdriver commented 5 months ago

The goal is to have support for multi-dimensional arrays and pointers.

The following tests are ported and passing from BRIL:

The following tests will not be ported:

GlowingScrewdriver commented 5 months ago

Ik I forgot to apply Black :grimacing: Will do for the next commit

GlowingScrewdriver commented 5 months ago

Added test: mem_id Also implemented the id instruction (which is actually a core BRIL instruction)

chsasank commented 5 months ago

Do run black

GlowingScrewdriver commented 5 months ago

Included two new tests that aren't from BRIL: arr_sum and transpose. These are two programs that actually make use of the arrays to solve problems.

chsasank commented 5 months ago

This is a great PR. Clean code, lot of tests! Great job!