Skip to content

Revamp MLX C API#38

Merged
andresy merged 75 commits intomainfrom
revamp-struct
Nov 18, 2024
Merged

Revamp MLX C API#38
andresy merged 75 commits intomainfrom
revamp-struct

Conversation

@andresy
Copy link
Member

@andresy andresy commented Oct 9, 2024

This introduces the new API of MLX C

  • Less overheads on objects (no vtable, no refcount)
  • Return values are handled via (pointer) arguments
  • Better error management: C++ exceptions are now mostly captured, status is returned as an int value for most ops
  • Feels more like C: a number of C++ object wrapper disappeared (tuples, variants...)

Copy link
Collaborator

@davidkoski davidkoski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. swift side is working

davidkoski added a commit to davidkoski/mlx-swift that referenced this pull request Nov 18, 2024
davidkoski added a commit to davidkoski/mlx-swift that referenced this pull request Nov 18, 2024
@andresy andresy merged commit a867ddc into main Nov 18, 2024
@andresy andresy deleted the revamp-struct branch November 18, 2024 21:19
@andresy andresy mentioned this pull request Nov 18, 2024
davidkoski added a commit to davidkoski/mlx-swift that referenced this pull request Nov 20, 2024
davidkoski added a commit to davidkoski/mlx-swift that referenced this pull request Dec 3, 2024
davidkoski added a commit to ml-explore/mlx-swift that referenced this pull request Dec 4, 2024
- adopt new mlx-c api - ml-explore/mlx-c#38
- mlx v0.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants