Reply to comment

Ну подождите, вы же можете сделать проверку тоже таблицей, у которой в нужном индексе - единица, в остальных - нули и инкрементить результат на каждой букве:
result+= table[state];
В result у вас будет число достижений состояний в процессе обработки.

Я задачу представляю очень примерно, наверное там еще какие-то проблемы будут. Например, слова разной длины, ну так выгоднее заранее их разбить так, чтобы один thread block работал со словами одинаковой длины.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <i> <table> <td> <tr> <th>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Images can be added to this post.

More information about formatting options

Copyright © 2008-2011 Alex Tutubalin