Forum Discussion

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

Emulator: Emulators max number of simultaneous kernelthreads (4096) exceeded!

Hello, just started with AOCL, got this issue in emulation.

While running a kernel, this error is returned using "checkError" function in the AOCLUtils.

context callback: emulator: emulators max number of simultaneous kernelthreads (4096) exceeded!

This continues for a couple iterations, and the program fails with

host: acl_emulator.c:159: __acl_emulator_next_workspace_id: assertion `start!=__acl_emulator_workspace_enumerator && "emulator: to many workspaces active at the same time"' failed.

I tried googling and searching on these forums to no avail, can anyone give me an idea of what issue this might be and how I could solve it? If anyone needs more information I will try my best to provide them.

Thanks.

3 Replies

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

    I changed the kernel from enqueueNDRange to enqueueTask and it seems to be working on emulation.

    I would still like to know why the initial run fails if anyone has an idea. Thanks.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    800 at its largest IIRC, in that case, it was the same as the global ID.