@@ -116,7 +116,7 @@ class DeviceResDistTest : public ::testing::Test {
116
116
void DefineWorkers (int num_workers, int num_devices,
117
117
const string& device_type, bool nccl) {
118
118
for (int w = 0 ; w < num_workers; ++w) {
119
- string name = strings ::StrCat (" /job:worker/replica:0/task:" , w);
119
+ string name = absl ::StrCat (" /job:worker/replica:0/task:" , w);
120
120
DefineWorker (name, device_type, num_devices, nccl);
121
121
}
122
122
}
@@ -164,7 +164,7 @@ class DeviceResDistTest : public ::testing::Test {
164
164
CollectiveType coll_type = REDUCTION_COLLECTIVE,
165
165
int source_rank = 0 ) {
166
166
for (int wi = 0 ; wi < num_workers; ++wi) {
167
- string task_name = strings ::StrCat (" /job:worker/replica:0/task:" , wi);
167
+ string task_name = absl ::StrCat (" /job:worker/replica:0/task:" , wi);
168
168
for (int di = 0 ; di < num_devices; ++di) {
169
169
int idx = wi * num_devices + di;
170
170
string device_name =
@@ -203,9 +203,9 @@ class DeviceResDistTest : public ::testing::Test {
203
203
}
204
204
int group_size = num_workers * num_devices;
205
205
for (int wi = 0 ; wi < num_workers; ++wi) {
206
- string task_name = strings ::StrCat (" /job:worker/replica:0/task:" , wi);
206
+ string task_name = absl ::StrCat (" /job:worker/replica:0/task:" , wi);
207
207
for (int di = 0 ; di < num_devices; ++di) {
208
- string device_name = strings ::StrCat (task_name, " /device:CPU:" , di);
208
+ string device_name = absl ::StrCat (task_name, " /device:CPU:" , di);
209
209
IssueRequest (task_name, device_name, group_size);
210
210
}
211
211
}
@@ -245,9 +245,9 @@ class DeviceResDistTest : public ::testing::Test {
245
245
const int dev_count = num_workers * num_devices;
246
246
string dev0 = " /job:worker/replica:0/task:0/device:CPU:0" ;
247
247
for (int wi = 0 ; wi < num_workers; ++wi) {
248
- string task_name = strings ::StrCat (" /job:worker/replica:0/task:" , wi);
248
+ string task_name = absl ::StrCat (" /job:worker/replica:0/task:" , wi);
249
249
for (int di = 0 ; di < num_devices; ++di) {
250
- string device_name = strings ::StrCat (task_name, " /device:CPU:" , di);
250
+ string device_name = absl ::StrCat (task_name, " /device:CPU:" , di);
251
251
int idx = wi * num_devices + di;
252
252
TF_ASSERT_OK (status_[device_name]);
253
253
EXPECT_EQ (cp_[device_name]->default_rank , idx);
@@ -283,7 +283,7 @@ class DeviceResDistTest : public ::testing::Test {
283
283
CollectiveType coll_type = REDUCTION_COLLECTIVE,
284
284
bool is_source = false ) {
285
285
string worker_name =
286
- strings ::StrCat (" /job:worker/replica:0/task:" , worker_idx);
286
+ absl ::StrCat (" /job:worker/replica:0/task:" , worker_idx);
287
287
DefineWorker (worker_name, device_type, num_devices, nccl);
288
288
for (int i = 0 ; i < num_devices; ++i) {
289
289
string device_name =
0 commit comments