Skip to content
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

Added 1 in 1 out support for new simplified testbench and updated additional designs #2065

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jackl-xilinx
Copy link
Collaborator

No description provided.

Comment on lines +41 to +42
int verify_passthrough_kernel(DATATYPE_IN1 *bufIn1,
DATATYPE_OUT *bufOut, int SIZE, int verbosity) {
Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
int verify_passthrough_kernel(DATATYPE_IN1 *bufIn1,
DATATYPE_OUT *bufOut, int SIZE, int verbosity) {
int verify_passthrough_kernel(DATATYPE_IN1 *bufIn1, DATATYPE_OUT *bufOut,
int SIZE, int verbosity) {

Comment on lines +71 to +72
int res = xrt_test_run<DATATYPE_IN1, DATATYPE_OUT,
initialize_bufIn1,
Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
int res = xrt_test_run<DATATYPE_IN1, DATATYPE_OUT,
initialize_bufIn1,
int res = xrt_test_run<DATATYPE_IN1, DATATYPE_OUT, initialize_bufIn1,

@@ -44,6 +44,12 @@ struct args parse_args(int argc, const char *argv[]) {
return myargs;
}


Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change

Comment on lines +219 to +220
int xrt_test_run(int IN1_VOLUME, int OUT_VOLUME,
struct args myargs) {
Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
int xrt_test_run(int IN1_VOLUME, int OUT_VOLUME,
struct args myargs) {
int xrt_test_run(int IN1_VOLUME, int OUT_VOLUME, struct args myargs) {

T3 *bufOut = bo_out.map<T3 *>();

init_bufIn1(bufIn1, IN1_VOLUME);
init_bufOut(bufOut, OUT_VOLUME); // <<< what size do I pass it? reset with trace?
Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
init_bufOut(bufOut, OUT_VOLUME); // <<< what size do I pass it? reset with trace?
init_bufOut(bufOut,
OUT_VOLUME); // <<< what size do I pass it? reset with trace?

Comment on lines +302 to +303
errors +=
verify_results(bufIn1, bufOut, IN1_VOLUME, myargs.verbosity);
Copy link
Contributor

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
errors +=
verify_results(bufIn1, bufOut, IN1_VOLUME, myargs.verbosity);
errors += verify_results(bufIn1, bufOut, IN1_VOLUME, myargs.verbosity);

@@ -83,20 +83,24 @@ def sequence(inTensor, outTensor, notUsed):


try:
if (len(sys.argv) < 4):
Copy link
Contributor

Choose a reason for hiding this comment

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

[black] reported by reviewdog 🐶

Suggested change
if (len(sys.argv) < 4):
if len(sys.argv) < 4:

print("Vector size must be a multiple of 64 and greater than or equal to 512")
in1_size = int(sys.argv[2])
if in1_size % 64 != 0 or in1_size < 512:
print("In1 buffer size must be a multiple of 64 and greater than or equal to 512")
Copy link
Contributor

Choose a reason for hiding this comment

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

[black] reported by reviewdog 🐶

Suggested change
print("In1 buffer size must be a multiple of 64 and greater than or equal to 512")
print(
"In1 buffer size must be a multiple of 64 and greater than or equal to 512"
)

Copy link
Contributor

Coverage Report

Created: 2025-02-22 06:40

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
Totals- - - -
Generated by llvm-cov -- llvm version 18.1.3

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.

1 participant