Skip to content

Commit

Permalink
[Fix](bangc-ops):fix core context code (#334)
Browse files Browse the repository at this point in the history
Co-authored-by: tudejiang <[email protected]>
  • Loading branch information
tudejiang79 and tudejiang authored Dec 15, 2022
1 parent feb826a commit d462968
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bangc-ops/core/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,15 @@ mluOpStatus_t mluOpUpdateContextInformation(mluOpHandle_t handle) {
}

mluOpStatus_t mluOpSetAtomicsMode(mluOpHandle_t handle,
mluOpAtomicsMode_t atomics_mode) {
PARAM_CHECK("[mluOpSetAtomicsMode]", handle != NULL);

handle->atomics_mode = atomics_mode;

return MLUOP_STATUS_SUCCESS;
}

mluOpStatus_t mluOpGetAtomicsMode(mluOpHandle_t handle,
mluOpAtomicsMode_t *atomics_mode) {
PARAM_CHECK("[mluOpGetAtomicsMode]", handle != NULL);
PARAM_CHECK("[mluOpGetAtomicsMode]", atomics_mode != NULL);
Expand Down

0 comments on commit d462968

Please sign in to comment.