From d5b2e2e3e0183705fb0b9bdf3fe88c66f2ad9b3a Mon Sep 17 00:00:00 2001 From: 13611516375 Date: Thu, 30 Mar 2023 09:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtik2=E7=AE=97=E5=AD=90UT?= =?UTF-8?q?=E7=94=B1=E4=BA=8Etoolkit=E5=8D=87=E7=BA=A7=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=85=A8=E4=B8=BA0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- community/tests/abs/ut/tik2/abs_ut.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/community/tests/abs/ut/tik2/abs_ut.cc b/community/tests/abs/ut/tik2/abs_ut.cc index ba5bc768..eeefeb96 100644 --- a/community/tests/abs/ut/tik2/abs_ut.cc +++ b/community/tests/abs/ut/tik2/abs_ut.cc @@ -37,8 +37,8 @@ TEST_F(AbsTest, abs_test_case_1) { size_t inputByteSize = 16 * 32 * sizeof(uint16_t); size_t outputByteSize = 16 * 32 * sizeof(uint16_t); uint32_t blockDim = 1; - uint8_t* x = (uint8_t*)malloc(inputByteSize); - uint8_t* y = (uint8_t*)malloc(outputByteSize); + uint8_t* x = (uint8_t*)gm_alloc(inputByteSize); + uint8_t* y = (uint8_t*)gm_alloc(outputByteSize); ReadFile(ktestcaseFilePath + "abs/data/input_x.bin", inputByteSize, x, inputByteSize); ICPU_RUN_KF(abs_tik2, blockDim, x, y); // use this macro for cpu debug -- Gitee