core/builtin_fns: Add stacksave/stackrestore on some linalg operations with ndstrides #556

Open
opened 2024-11-28 15:47:14 +08:00 by derppening · 0 comments
Collaborator

I notice that some linalg operations uses make_contiguous_array which may create temporary structs values with its data being weakly owned (i.e. either owned by another NDArray instance or only used for the during of the extern call).

We can stacksave before creating these temporary values, call the extern linalg functions, and stackpop to save some memory.

I notice that some linalg operations uses `make_contiguous_array` which may create temporary structs values with its data being weakly owned (i.e. either owned by another `NDArray` instance or only used for the during of the extern call). We can `stacksave` before creating these temporary values, call the extern linalg functions, and `stackpop` to save some memory.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#556
No description provided.