* Update add_partial_dynamic to ensure input dimensions are within range
* Replace Range with a simpler function to test runtime arrays
* Re-ran tests 4 times without failures (fingers crossed)
* Adds a `--working_dir` option to hatlib.benchmark_hat_package to bypass "path length exceeded" errors on Windows. Defaults to the current working directory.
* [Windows] Temporarily resolve the `printf` symbol for compiled hat packages that do not explicitly include stdio.h. This is temporary and should be declared in the hat package. For example, Accera's region profiling injects printf calls that need to be resolved at link time.
* Removed noisy/flaky test
* Fixes numerous issues for benchmarking
* Batch size was used in place of number of iterations per batch size when averaging batch size results.
* C++ benchmarking was developed on top of CallableFunc, which was designed for devices where multiple input sets were not needed. C++ benchmarking on the CPU, at least, needs these multiple input sets. This change fixes this issue.
* Number of iterations per batch was added as a command line argument
* CallableFunc instances for devices that need cache flushing will have extra data generated for them
* minimal special case for two_pass_alloc
* flag TODO
* minimal two-pass alloc support
* fix the stride computation, now that runtime arrays don't have it specified
* PR feedback
* WIP: workaround flaky tests
* add support for bool element type
* add a get_function(name) utility
* maybe fix crashing Range test
Co-authored-by: Lisa Ong <onglisa@microsoft.com>
* add array size as arguments
* fix ctypes conversion
* Support more integer types for dynamic dimension
* Update the way of checking integer type
* Support floating type args
* accera-gpu is needed for running the tests
Fixes dynamic shaped benchmark size usage
This change sets the symbolic dimension values using the shapes
provided by the dynamic shape callback function.
It also fixes incorrectly setting the strides in ArgInfo.
* parameter value incorrectly set for affine array
* handle shape=() ndarrays in args verification
* test fix: order is not guaranteed(?)
* actually drop hash suffix
* .
* flag possible bug
* add helper to lookup function by name
* undo
Co-authored-by: Lisa Ong <onglisa@microsoft.com>
* support partial dynamic sized runtime arrays
* marked TODO
* layout TODO
* fix
* expand arguments to include dimensions automatically
* remove accidental import
* working on correctness
* support calling dynamic sized functions
* return output arguments automatically
* add multi-output test
* nfc
* yapf
* allow output arrays to be passed as input args
* nfc
* support sharing of output dim args
* add check
* fix
* PR feedback
Co-authored-by: Lisa Ong <onglisa@microsoft.com>