This patch fixes the program size setting for the negative case.
To check `num_segments == 0`, the input program size should be not zero.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
*/
TEST (ne_core_npu_test, run_inference_triv2_n)
{
- const size_t size = 4096;
+ const size_t size = 8192;
std::unique_ptr<DriverAPI> api;
model_config_t model;
input_config_t input;
model.version = 3;
model.dbuf_fd = model_dmabuf;
model.program_offset_addr = 0;
- model.program_size = 0;
+ model.program_size = 4096;
EXPECT_EQ (api->registerModel (&model, TEST_NPU_VERSION), 0);