3. Bond the buffer with new arguments of the kernel - 2024.1 English

Vitis Tutorials: Vitis Platform Creation

Document ID
XD101
Release Date
2024-05-30
Version
2024.1 English

OLD

OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, buffer_a));
OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, buffer_b));
OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, buffer_result));
OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, DATA_SIZE));

NEW

OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, buffer_a));
OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, buffer_b));
OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, buffer_result));
OCL_CHECK(err, err = krnl_vector_add.setArg(narg++, DATA_SIZE));

krnl_vector_add.setArg(narg++,buffer_waveout);