aclrtSnapShotProcessLock
Note: This API is for trial use and may be changed in later versions. It is not available in commercial products.
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
X |
√ |
|
√ |
|
X |
|
X |
|
X |
Description
Locks the current process to prevent subsequent runtime API calls for purposes such as device setup/release, memory allocation/freeing/copying, creation and destruction of resources such as Context, Stream, Event, and Notify, as well as delivery of certain tasks.
Before calling this API, ensure that the current process is in the RUNNING state, which is the default state. After this API is called, the current process will transition to the LOCKED state.
Prototype
1 | aclError aclrtSnapShotProcessLock() |
Parameters
None
Returns
0 on success; otherwise, failure. For details, see aclError.