Skip to content

Commit

Permalink
Merge pull request #150 from sbastrakov/doc-clarifyThreadUnsafety
Browse files Browse the repository at this point in the history
Extend the docs with thread unsafety
  • Loading branch information
psychocoderHPC authored Feb 6, 2020
2 parents 91d78da + caf4fdd commit 974afe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/PortingGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ in kernels:
Restrictions
============

Cupla host-side API is not thread-safe.
Thus, it is not allowed to use cupla API from multiple host-side threads simultaneously.
In such scenarios, some synchronization between the host-side threads is required to ensure safe usage of cupla.

Events with timing information synchronize the stream where they were recorded.
Disable the timing information of the event by setting the flag
`cudaEventDisableTiming` or `cuplaEventDisableTiming` during the event
Expand Down

0 comments on commit 974afe8

Please sign in to comment.