OpenCL read variable size result buffer from the GPU

后端 未结 4 686
感情败类
感情败类 2021-01-28 09:03

I have one searching OpenCL 1.1 algorithm which works well with small amount of data:

1.) build the inputData array and pass it to the GPU

2.) c

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-28 09:22

    I had a similiar problem regarding variable problem sizes. One way could be to simply implement a divide-and-conquer approach and to split up your data on the host. You could process your data blocks one after the other on the device.

    BTW: you are sure about the comparison

    while (lastPosition **>** RESULT_BUFFER_SIZE)

提交回复
热议问题