Skip to content

Commit 4e680e4

Browse files
committed
fix: correct naming typo in unused file
1 parent 740ac12 commit 4e680e4

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

fserver/csrc/public.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void init() {
180180

181181
worker_mask_ = (1 << num_worker_) - 1;
182182
q_.resize(num_worker_);
183-
q_signal_.store(0);;
183+
q_signal_.store(0);
184184
ps::StartPS(0, role_, group_size_ * node_rank_ + gpu_ + offset, true);
185185
if (role_ == Node::WORKER) {
186186
fworker_ = new AFTensorWorker(instance_id_ );

include/ps/internal/assign_op.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ template <typename T>
2727
inline void AssignFunc(const T& lhs, AssignOp op, T* rhs) {
2828
switch (op) {
2929
case ASSIGN:
30-
*right = left;
30+
*rhs = lhs;
3131
break;
3232
case PLUS:
33-
*right += left;
33+
*rhs += lhs;
3434
break;
3535
case MINUS:
36-
*right -= left;
36+
*rhs -= lhs;
3737
break;
3838
case TIMES:
39-
*right *= left;
39+
*rhs *= lhs;
4040
break;
4141
case DIVIDE:
42-
*right /= left;
42+
*rhs /= lhs;
4343
break;
4444
default:
45-
LOG(FATAL) << "use AssignOpInt..";
45+
PS_LOG(FATAL) << "use AssignOpInt..";
4646
}
4747
}
4848

@@ -54,28 +54,28 @@ template <typename T>
5454
inline void AssignFuncInt(const T& lhs, AssignOp op, T* rhs) {
5555
switch (op) {
5656
case ASSIGN:
57-
*right = left;
57+
*rhs = lhs;
5858
break;
5959
case PLUS:
60-
*right += left;
60+
*rhs += lhs;
6161
break;
6262
case MINUS:
63-
*right -= left;
63+
*rhs -= lhs;
6464
break;
6565
case TIMES:
66-
*right *= left;
66+
*rhs *= lhs;
6767
break;
6868
case DIVIDE:
69-
*right /= left;
69+
*rhs /= lhs;
7070
break;
7171
case AND:
72-
*right &= left;
72+
*rhs &= lhs;
7373
break;
7474
case OR:
75-
*right |= left;
75+
*rhs |= lhs;
7676
break;
7777
case XOR:
78-
*right ^= left;
78+
*rhs ^= lhs;
7979
break;
8080
}
8181
}

include/ps/internal/postoffice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Postoffice {
155155

156156
/**
157157
* \brief convert a server group's rank into a instance id with the
158-
* provded instance offset from that group
158+
* provided instance offset from that group
159159
* \param rank the server group rank
160160
* \param instance_idx the offset of the instance in the group
161161
*/

0 commit comments

Comments
 (0)