Open main menu

CDOT Wiki β

Changes

WhySoSerial?

836 bytes added, 16:49, 8 April 2017
no edit summary
- [https://github.com/Pooch11/DPS915 GitHub Link]
 
 
== WordTranslator - Parallel Approach ==
 
Issues arose when attempting to change data within a kernel on device memory
Learning outcomes:
 
1. Kernels do not accept complex objects from the host ( Maps, vectors, strings)
2. Kernels load and execute on sequential memory. Device Pointers
3. Replacing the data using a character pointer (char*) proved exceedingly difficult.
 
Thus the solution had to be modified in order to accommodate these issues. A couple of options were available to overcome this.
 
1. We will match a pattern found by the kernel
2. We will record where the result was found and the position that we found this match. This would allow another more sophisticated device function to make these translations. This function on a CPU would be at most O(n^2)
3. Instead, introduce a structure to manage our complex data.
76
edits