Skip to content

Commit fba4e10

Browse files
committed
[Misc] Apply clang-format to asu_transport_impl.cpp and sqe_request.cpp
1 parent 839d5a1 commit fba4e10

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

ucm/transport/kv/asu/trans/src/asu_transport_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Status CopyDeviceToHost(const ScatterGatherEntry& sge, void* host, std::size_t s
5555
const auto ret = aclrtMemcpy(host, size, reinterpret_cast<void*>(sge.device_addr), size,
5656
ACL_MEMCPY_DEVICE_TO_HOST);
5757
if (ret != ACL_SUCCESS) {
58-
return Status::Error(StatusCode::INTERNAL_ERROR,
59-
std::string(name) + ": copy device memory to host failed ret=" +
60-
std::to_string(ret));
58+
return Status::Error(
59+
StatusCode::INTERNAL_ERROR,
60+
std::string(name) + ": copy device memory to host failed ret=" + std::to_string(ret));
6161
}
6262
return Status::OK();
6363
}

ucm/transport/kv/asu/trans/src/sqe_request.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
* */
24-
#include <algorithm>
2524
#include <acl/acl.h>
25+
#include <algorithm>
2626
#include <cctype>
2727
#include <cstdint>
2828
#include <memory>
@@ -157,13 +157,13 @@ Status PackSubBatchRequest(ProtocolManager& protocolManager, BufferManager& send
157157
std::vector<std::uint8_t> staging(packedSize, 0);
158158
status = protocolManager.PackRequest(staging.data(), opcode, request);
159159
if (status.ok()) {
160-
const auto ret = aclrtMemcpy(reinterpret_cast<void*>(subBatchContext.sendSge.device_addr),
161-
packedSize, staging.data(), packedSize,
162-
ACL_MEMCPY_HOST_TO_DEVICE);
160+
const auto ret =
161+
aclrtMemcpy(reinterpret_cast<void*>(subBatchContext.sendSge.device_addr),
162+
packedSize, staging.data(), packedSize, ACL_MEMCPY_HOST_TO_DEVICE);
163163
if (ret != ACL_SUCCESS) {
164-
status = Status::Error(StatusCode::INTERNAL_ERROR,
165-
"copy packed SQE to device memory failed ret=" +
166-
std::to_string(ret));
164+
status = Status::Error(
165+
StatusCode::INTERNAL_ERROR,
166+
"copy packed SQE to device memory failed ret=" + std::to_string(ret));
167167
}
168168
}
169169
}

0 commit comments

Comments
 (0)