Reply to comment

А, да, и в последнем случае вы передали значение, а не указатель. - я невнимательно посмотрел, пардон А если вам нужно передать указатель на кусочек константного массива.... я бы не мучался (и не думал) и передал бы просто индекс в нем, ведь сам массив - глобален и из всех __device__ функций виден.

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