I want to sort a vector using DPC++, but on an FPGA device in parallel. The merge sort example on reference designs for DPC++ FPGA is very complex and I can't seem to understand it. I would like to make my own merge sort, but I don't know how to merge the values in accessors for example and is it possible to use built-in functions like swap() and max() inside FPGA parallel_for?
Can refer to the below:
The sorting method should be found in the following files merge_sort/src/sorting_networks.hpp, method ‘BitonicSortNetwork’. (line 71-90)
For additional information related to oneAPI developer guide: