Forum Discussion

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

Multiple Thread with Altera OpenCL

Altera SDK for OpenCL Programming Guide claims:

--- Quote Start ---

The Altera Software Development Kit (SDK) for OpenCL (AOCL) host library is not thread-safe.

--- Quote End ---

I have a simple question.

In this context, what "not thread-safe" means strictly?

  • Only main thread is allowed to call OpenCL API.

  • Only one thread is allowed to call OpenCL API.

  • Multiple thread can work only if there are appropriate exclusive lock not to call OpenCL API simultaneously.

Anybody knows ?

iitaku

1 Reply