-
Notifications
You must be signed in to change notification settings - Fork 1
Parameter support #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Transurgeon
wants to merge
25
commits into
main
Choose a base branch
from
parameter-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2913dee
Add parameter support to C diff engine
Transurgeon fea0708
Remove redundant n_params from problem struct
Transurgeon 36ec239
Remove redundant A_m, A_n params from new_left_param_matmul
Transurgeon 4f93f7c
Add total_parameter_size field to problem struct
Transurgeon cf695a2
Inline get_scalar helper in const_scalar_mult.c
Transurgeon bd4f3b0
Inline get_vector helper in const_vector_mult.c
Transurgeon 27acb7d
Simplify refresh_param_values: fill one block, memcpy the rest
Transurgeon 00f7732
Skip AT recomputation in param refresh; param matmul is always affine
Transurgeon dc56c90
Run clang-format on parameter support files
Transurgeon 978f319
Add problem-level tests for parameter support
Transurgeon 01c6f82
Clean up comments in bivariate.h and subexpr.h
Transurgeon b8cf436
Fix memory leak in new_param_scalar_mult
Transurgeon 9c23b40
Merge origin/main into parameter-support
Transurgeon bf8a55c
Run clang-format on merge-resolved files
Transurgeon 9700344
Unify Constant and Parameter into single parameter type
Transurgeon 939a910
Remove redundant NULL-after-free, rename const_ files, fix stale comm…
Transurgeon 71dddf1
Run clang-format on cleanup changes
Transurgeon 36864d4
Simplify new_left_matmul: accept CSR directly, remove sparse/dense br…
Transurgeon 978aa03
Store param values in CSR data order, simplify refresh to memcpy
Transurgeon b3e2304
small edits
dance858 0edf928
fix AT workspace in left_matmul and add has_been_refreshed
dance858 b985028
add parameter support for right matmul
dance858 4e25da7
clean up
dance858 4b58b1c
add back setting ptrs to null after freeingmake
dance858 1c3ebee
added free and null macro
dance858 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #ifndef MEMORY_WRAPPERS_H | ||
| #define MEMORY_WRAPPERS_H | ||
|
|
||
| #include <stdlib.h> | ||
|
|
||
| #define FREE_AND_NULL(p) \ | ||
| do \ | ||
| { \ | ||
| free(p); \ | ||
| (p) = NULL; \ | ||
| } while (0) | ||
|
|
||
| #endif /* MEMORY_WRAPPERS_H */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.