cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

kamokr
Journeyman III

FYI: calMemCopy, different size of source and destination mem

it IS possible

As we can read in "Stream Computing User Guide" for calMemCopy:

"Results: (...) Error if the source and destination memory have different sizes or formats"

However, It works for me when I copy first row of memory from local resource (CAL_FORMAT_UINT_1, width: 320, height: 960) to pinned remote resource (CAL_FORMAT_UINT_1, width: 320, height: 1).

The copied data is a result from some sort of reduction kernel (320x960 to 320x1). According to the user guide, destination memory for calMemCopy would have to be same size as output memory of my kernel, but then copying would be too slow.

 

 

 

0 Likes
0 Replies