automatic DPDK test reports
 help / color / mirror / Atom feed
From: dpdklab@iol.unh.edu
To: test-report@dpdk.org
Cc: dpdk-test-reports@iol.unh.edu
Subject: |WARNING| pw132260 [PATCH] [v1, 1/1] app/mldev: enable support for pre-quantized I/O
Date: Mon, 02 Oct 2023 04:46:52 -0700 (PDT)	[thread overview]
Message-ID: <651aadac.170a0220.460d5.7664SMTPIN_ADDED_MISSING@mx.google.com> (raw)

Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/132260

_apply patch failure_

Submitter: Srikanth Yalavarthi <syalavarthi@marvell.com>
Date: Monday, October 02 2023 10:02:17 
Applied on: CommitID:6e999364a6afb9189029154b1ac55b4ad5fb9b3f
Apply patch set 132260 failed:

Checking patch app/test-mldev/ml_options.c...
Hunk #2 succeeded at 283 (offset 13 lines).
Hunk #3 succeeded at 333 (offset 15 lines).
Hunk #4 succeeded at 382 (offset 15 lines).
Checking patch app/test-mldev/ml_options.h...
error: while searching for:
#define ML_TEST_MAX_MODELS   8

/* Options names */
#define ML_TEST	       ("test")
#define ML_DEVICE_ID   ("dev_id")
#define ML_SOCKET_ID   ("socket_id")
#define ML_MODELS      ("models")
#define ML_FILELIST    ("filelist")
#define ML_REPETITIONS ("repetitions")
#define ML_BURST_SIZE  ("burst_size")
#define ML_QUEUE_PAIRS ("queue_pairs")
#define ML_QUEUE_SIZE  ("queue_size")
#define ML_TOLERANCE   ("tolerance")
#define ML_STATS       ("stats")
#define ML_DEBUG       ("debug")
#define ML_HELP	       ("help")

struct ml_filelist {
	char model[PATH_MAX];

error: patch failed: app/test-mldev/ml_options.h:12
Hunk #2 succeeded at 48 (offset 1 line).
Checking patch app/test-mldev/test_inference_common.c...
error: while searching for:
	}

	t->model[fid].inp_dsize = 0;
	for (i = 0; i < t->model[fid].info.nb_inputs; i++)
		t->model[fid].inp_dsize +=
			t->model[fid].info.input_info[i].nb_elements * sizeof(float);

	t->model[fid].out_dsize = 0;
	for (i = 0; i < t->model[fid].info.nb_outputs; i++)
		t->model[fid].out_dsize +=
			t->model[fid].info.output_info[i].nb_elements * sizeof(float);

	/* allocate buffer for user data */
	mz_size = t->model[fid].inp_dsize + t->model[fid].out_dsize;

error: patch failed: app/test-mldev/test_inference_common.c:777
Checking patch doc/guides/tools/testmldev.rst...
Applied patch app/test-mldev/ml_options.c cleanly.
Applying patch app/test-mldev/ml_options.h with 1 reject...
Rejected hunk #1.
Hunk #2 applied cleanly.
Applying patch app/test-mldev/test_inference_common.c with 1 reject...
Rejected hunk #1.
Applied patch doc/guides/tools/testmldev.rst cleanly.
hint: Use 'git am --show-current-patch' to see the failed patch
diff a/app/test-mldev/ml_options.h b/app/test-mldev/ml_options.h	(rejected hunks)
@@ -12,19 +12,20 @@
 #define ML_TEST_MAX_MODELS   8
 
 /* Options names */
-#define ML_TEST	       ("test")
-#define ML_DEVICE_ID   ("dev_id")
-#define ML_SOCKET_ID   ("socket_id")
-#define ML_MODELS      ("models")
-#define ML_FILELIST    ("filelist")
-#define ML_REPETITIONS ("repetitions")
-#define ML_BURST_SIZE  ("burst_size")
-#define ML_QUEUE_PAIRS ("queue_pairs")
-#define ML_QUEUE_SIZE  ("queue_size")
-#define ML_TOLERANCE   ("tolerance")
-#define ML_STATS       ("stats")
-#define ML_DEBUG       ("debug")
-#define ML_HELP	       ("help")
+#define ML_TEST		("test")
+#define ML_DEVICE_ID	("dev_id")
+#define ML_SOCKET_ID	("socket_id")
+#define ML_MODELS	("models")
+#define ML_FILELIST	("filelist")
+#define ML_QUANTIZED_IO ("quantized_io")
+#define ML_REPETITIONS	("repetitions")
+#define ML_BURST_SIZE	("burst_size")
+#define ML_QUEUE_PAIRS	("queue_pairs")
+#define ML_QUEUE_SIZE	("queue_size")
+#define ML_TOLERANCE	("tolerance")
+#define ML_STATS	("stats")
+#define ML_DEBUG	("debug")
+#define ML_HELP		("help")
 
 struct ml_filelist {
 	char model[PATH_MAX];
diff a/app/test-mldev/test_inference_common.c b/app/test-mldev/test_inference_common.c	(rejected hunks)
@@ -777,14 +777,22 @@ ml_inference_iomem_setup(struct ml_test *test, struct ml_options *opt, uint16_t
 	}
 
 	t->model[fid].inp_dsize = 0;
-	for (i = 0; i < t->model[fid].info.nb_inputs; i++)
-		t->model[fid].inp_dsize +=
-			t->model[fid].info.input_info[i].nb_elements * sizeof(float);
+	for (i = 0; i < t->model[fid].info.nb_inputs; i++) {
+		if (opt->quantized_io)
+			t->model[fid].inp_dsize += t->model[fid].info.input_info[i].size;
+		else
+			t->model[fid].inp_dsize +=
+				t->model[fid].info.input_info[i].nb_elements * sizeof(float);
+	}
 
 	t->model[fid].out_dsize = 0;
-	for (i = 0; i < t->model[fid].info.nb_outputs; i++)
-		t->model[fid].out_dsize +=
-			t->model[fid].info.output_info[i].nb_elements * sizeof(float);
+	for (i = 0; i < t->model[fid].info.nb_outputs; i++) {
+		if (opt->quantized_io)
+			t->model[fid].out_dsize += t->model[fid].info.output_info[i].size;
+		else
+			t->model[fid].out_dsize +=
+				t->model[fid].info.output_info[i].nb_elements * sizeof(float);
+	}
 
 	/* allocate buffer for user data */
 	mz_size = t->model[fid].inp_dsize + t->model[fid].out_dsize;

https://lab.dpdk.org/results/dashboard/patchsets/27801/

UNH-IOL DPDK Community Lab

             reply	other threads:[~2023-10-02 11:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02 11:46 dpdklab [this message]
     [not found] <20231002100217.12456-1-syalavarthi@marvell.com>
2023-10-02  9:46 ` |WARNING| pw132260 [PATCH v1 " qemudev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=651aadac.170a0220.460d5.7664SMTPIN_ADDED_MISSING@mx.google.com \
    --to=dpdklab@iol.unh.edu \
    --cc=dpdk-test-reports@iol.unh.edu \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).