Skip to content

Commit c598282

Browse files
author
Alireza Khodamoradi
committed
correction for xfdst
1 parent 26b41e4 commit c598282

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

applicationCode/unitTests/testPython/testXfAbsdiff.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@
7575
stopSW=time.time()
7676
print("SW loop finished")
7777

78+
xFdst = mem_manager.cma_array((height,width),np.uint16) #allocated physically contiguous numpy array
79+
7880
print("Start HW loop")
7981
startPL=time.time()
8082
for i in range(numberOfIterations):
81-
xFdst = xv2.absdiff(src1=xFimgY1, src2=xFimgY2) #absdiff offloaded to PL, working on physically continuous numpy arrays
83+
xFdst = xv2.absdiff(src1=xFimgY1, src2=xFimgY2, dst=xFdst) #absdiff offloaded to PL, working on physically continuous numpy arrays
8284
stopPL=time.time()
8385
print("HW loop finished")
8486

applicationCode/unitTests/testPython/testXfAdd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@
7676
stopSW=time.time()
7777
print("SW loop finished")
7878

79+
xFdst = mem_manager.cma_array((height,width),np.uint16) #allocated physically contiguous numpy array
80+
7981
print("Start HW loop")
8082
startPL=time.time()
8183
for i in range(numberOfIterations):
82-
xFdst = xv2.add(xFimgY1, xFimgY2) #accumulateWeight offloaded to PL, working on physically continuous numpy arrays
84+
xFdst = xv2.add(src1=xFimgY1, src2=xFimgY2, dst=xFdst) #accumulateWeight offloaded to PL, working on physically continuous numpy arrays
8385
stopPL=time.time()
8486
print("HW loop finished")
8587

0 commit comments

Comments
 (0)