From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 88AD2426A1 for ; Mon, 2 Oct 2023 13:46:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 849D44003C; Mon, 2 Oct 2023 13:46:53 +0200 (CEST) Received: from mail-pf1-f226.google.com (mail-pf1-f226.google.com [209.85.210.226]) by mails.dpdk.org (Postfix) with ESMTP id DA30A4003C for ; Mon, 2 Oct 2023 13:46:52 +0200 (CEST) Received: by mail-pf1-f226.google.com with SMTP id d2e1a72fcca58-690f7d73a3aso14745674b3a.0 for ; Mon, 02 Oct 2023 04:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1696247212; x=1696852012; darn=dpdk.org; h=cc:to:from:subject:message-id:date:from:to:cc:subject:date :message-id:reply-to; bh=oosDFVq2mN58kaNpqMv0ESBfCmc/jjH6CTt8vVloCeI=; b=I4oq5YJq8RoIoOZk7la8oZhBbrDmWSmGHw5JSbC5RY0vx74tKmPKKnCkTSxRIvtt4Q FdSQMnQhnio59jRTVwQjQHEBum6Ex6g14CnEAi9pJI9uq4mzsVmrE6JqYizI/sa0Loeg BKMKvV7Sx7sa72XD+tTacXqV3Wldwe95raCj8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696247212; x=1696852012; h=cc:to:from:subject:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oosDFVq2mN58kaNpqMv0ESBfCmc/jjH6CTt8vVloCeI=; b=MpWQOKJe633XI+Y7BToY19JtZuQcYj7ZAFrao4r33sRSUdutc+Fa5gL1W+aDD+lNP+ LXFCT7u8C/IeGhK+dmTypyjQS6OykhjQKVVjCoxCYaVBI+s3vq4hADKK9hrd49JFlVX5 z9eTp/IHrVvbUzgXcp+llQnMQSggZlBR1YOqXTRQ2IQuDveN2Iw7VCSllJDPV8pAKfSh Lo0H6yX7E97v2ZxfGB7BsTZCVJY/J7skmr3lDhqP925CbVteL0kxJHJ1EXX0DMWVjr62 h2sV9HsFcXFQGMRTpNOGwebk6UU+xsEUkVrvnw6kXDnNRy+qhjgql3bZwXCF8yRMuH3M 8FSQ== X-Gm-Message-State: AOJu0YwT6ZzC4NWTBFt8gaHq9cYvh7KUJkup9oOBS/uB96DD/8QSpu6a k42sKgXISMHv1UZkB8Og1HKqglABsEXdH5Z5FqMbJfg19tkF8Vxdoq2zz1sVBeAX/zbLzVNSXw= = X-Google-Smtp-Source: AGHT+IGqdoQpjXHvBtgValNYpoDaDrBj6e7VpfKOLojT4RDdvLmH/lzjtRqX6oLSj1cy0niTM7MBU+xZGAUc X-Received: by 2002:a05:6a21:32a1:b0:13a:6bca:7a84 with SMTP id yt33-20020a056a2132a100b0013a6bca7a84mr14124341pzb.44.1696247212102; Mon, 02 Oct 2023 04:46:52 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id jw10-20020a170903278a00b001c74ae514b6sm121860plb.117.2023.10.02.04.46.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Oct 2023 04:46:52 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Date: Mon, 02 Oct 2023 04:46:52 -0700 (PDT) Message-ID: <651aadac.170a0220.460d5.7664SMTPIN_ADDED_MISSING@mx.google.com> Received: from [172.21.0.2] (unknown [172.18.0.240]) by postal.iol.unh.edu (Postfix) with ESMTP id 30F0D6052514; Mon, 2 Oct 2023 07:46:51 -0400 (EDT) Subject: |WARNING| pw132260 [PATCH] [v1, 1/1] app/mldev: enable support for pre-quantized I/O From: dpdklab@iol.unh.edu To: test-report@dpdk.org Cc: dpdk-test-reports@iol.unh.edu Content-Type: text/plain X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: iol-testing Test-Status: WARNING http://dpdk.org/patch/132260 _apply patch failure_ Submitter: Srikanth Yalavarthi 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