OLD
OCL_CHECK(err, err = q.enqueueUnmapMemObject(buffer_a, ptr_a));
OCL_CHECK(err, err = q.enqueueUnmapMemObject(buffer_b, ptr_b));
OCL_CHECK(err, err = q.enqueueUnmapMemObject(buffer_result, ptr_result));
NEW
OCL_CHECK(err, err = q.enqueueUnmapMemObject(buffer_a, ptr_a));
OCL_CHECK(err, err = q.enqueueUnmapMemObject(buffer_b, ptr_b));
OCL_CHECK(err, err = q.enqueueUnmapMemObject(buffer_result, ptr_result));
q.enqueueUnmapMemObject(buffer_waveout , ptr_waveout);
Copyright © 2020–2023 Advanced Micro Devices, Inc