Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

How to debug the work item which global id is not 0? Using the emulator.

How to debug the work item which global id is not 0? Using the emulator.

Using gdb to debug the host program and the kernels, I can break in the kernel code. But I can only debug the 0 work item. So I want to debug any work items not only the item whose global id is 0.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have solved my question.

    When breaking at the work-item 0, continue running and it will break at the work-item 1. Because the Emulator implement actual serial execution instead of parallel execution.