<p>I have recently begun working on a project to establish how best to leverage the processing power available in modern graphics cards for general programming. It seems that the field general purpose GPU programming (GPGPU) has a large bias towards scientific applications with a lot of heavy math as this fits well with the GPU computational model. This is all good and well, but most people don't spend all their time running simulation software and the like so we figured it might be possible to create a common foundation for easily building GPU-enabled software for the masses.</p>

<p>This leads to the question I would like to pose; What are the most common types of work performed by programs? It is not a requirement that the work translates extremely well to GPU programming as we are willing to accept modest performance improvements (Better little than nothing, right?).</p>

<p>There are a couple of subjects we have in mind already:</p>

<ul>
<li>Data management - Manipulation of large amounts of data from databases
and otherwise.  </li>
<li>Spreadsheet type programs (Is somewhat related to the above).</li>
<li>GUI programming (Though it might be impossible to get access to the
relevant code).</li>
<li>Common algorithms like sorting and searching.</li>
<li>Common collections (And integrating them with data manipulation
algorithms)</li>
</ul>

<p>Which other coding tasks are very common? I suspect a lot of the code being written is of the category of inventory management and otherwise tracking of real 'objects'.</p>

<p>As I have no industry experience I figured there might be a number of basic types of code which is done more often than I realize but which just doesn't materialize as external products.</p>

<p>Both high level programming tasks as well as specific low level operations will be appreciated.</p>

[{'answer_id': 44812, 'author': 'Jay Mooney', 'author_id': 733, 'author_profile': 'https://Stackoverflow.com/users/733', 'pm_score': 0, 'selected': False, 'text': '<p>I do a lot of simplifying of configuration.  That is I wrap the generation/management of configuration values inside a UI.  The primary benefit is I can control work flow and presentation to make it simpler for non-techie users to configure apps/sites/services.</p>\n'}, {'answer_id': 44820, 'author': 'Luke Halliwell', 'author_id': 3974, 'author_profile': 'https://Stackoverflow.com/users/3974', 'pm_score': 2, 'selected': False, 'text': "<p>General programming translates terribly to GPUs.  GPUs are dedicated to performing fairly simple tasks on streams of data at a massive rate, with massive parallelism.  They do not deal well with the rich data and control structures of general programming, and there's no point trying to shoehorn that into them.</p>\n"}, {'answer_id': 44838, 'author': 'Morten Christiansen', 'author_id': 4055, 'author_profile': 'https://Stackoverflow.com/users/4055', 'pm_score': 2, 'selected': False, 'text': "<blockquote>\n  <p>General programming translates terribly to GPUs. GPUs are dedicated to performing fairly simple tasks on streams of data at a massive rate, with massive parallelism. They do not deal well with the rich data and control structures of general programming, and there's no point trying to shoehorn that into them.</p>\n</blockquote>\n\n<p>This isn't too far away from my impression of the situation but at this point we are not concerning ourselves too much with that. We are starting out by getting a broad picture of which options we have to focus on. After that is done we will analyse them a bit deeper and find out which, if any, are plausible options. If we end up determining that it is impossible to do anything within the field, and we are only increasing everybody's electricity bill then that is a valid result as well.</p>\n"}, {'answer_id': 45246, 'author': 'David Singer', 'author_id': 4618, 'author_profile': 'https://Stackoverflow.com/users/4618', 'pm_score': 0, 'selected': False, 'text': '<p>You might want to take a look at the <a href="http://queue.acm.org/issuedetail.cfm?issue=1365490" rel="nofollow noreferrer">March/April issue</a> of ACM\'s <a href="http://www.acmqueue.org" rel="nofollow noreferrer"><em>Queue</em></a> magazine, which has several articles on GPUs and how best to use them (besides doing graphics, of course).</p>\n'}, {'answer_id': 45280, 'author': 'Apocalisp', 'author_id': 3434, 'author_profile': 'https://Stackoverflow.com/users/3434', 'pm_score': 2, 'selected': False, 'text': "<p>Things that modern computers do a lot of, where a little benefit could go a long way? Let's see...</p>\n\n<ul>\n<li>Data management: relational database management could benefit from faster relational joins (especially joins involving a large number of relations). Involves massive homogeneous data sets.</li>\n<li>Tokenising, lexing, parsing text.</li>\n<li>Compilation, code generation.</li>\n<li>Optimisation (of queries, graphs, etc).</li>\n<li>Encryption, decryption, key generation.</li>\n<li>Page layout, typesetting.</li>\n<li>Full text indexing.</li>\n<li>Garbage collection.</li>\n</ul>\n"}, {'answer_id': 46271, 'author': 'Matt Warren', 'author_id': 4500, 'author_profile': 'https://Stackoverflow.com/users/4500', 'pm_score': 0, 'selected': False, 'text': "<p>The other thing to consider when using a GPU is the bus speed, Most Graphics cards are designed to have a higher bandwidth when transferring data from the CPU out to the GPU as that's what they do most of the time. The bandwidth from the GPU back up to the CPU, which is needed to return results etc, isn't as fast. So they work best in a pipelined mode. </p>\n"}]
['https://Stackoverflow.com/questions/44789', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4055/']