Reply to comment

clock() возвращает значение счетчика тактов того мультипроцессора, на котором работает поток.
А в примере из SDK разница между maxEnd и minStart дает время работы всего kernel-а в целом, т.е. после прохода по циклу for в строках 6-10 в minStart содержится значение такта, в котором начал работать первый по времени запуска блок, а в maxEnd - значение такта, в котором закончил работать последний повремени завершения блок.

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