HigherOrderCO / HVM

A massively parallel, optimal functional runtime in Rust
https://higherorderco.com
Apache License 2.0
10.52k stars 400 forks source link

Split up Runtime Files and expose simpler FFI headers #424

Open enricozb opened 2 months ago

enricozb commented 2 months ago

The C and CUDA runtime files are monoliths right now which make them a bit difficult to navigate. Additionally the FFI header file must be manually kept in sync. We should have smaller files, and and aim for an FFI header file that simply imports the headers we want to expose. Something like ffi.c:

#include <runtime.h>
#include <io/result.h>
#include <io/readback.h>