@@ -106,7 +106,7 @@ class Device {
106106 int id () const { return id_; }
107107
108108 virtual void * UpdateGpuPtr (const Block* block_ptr) = 0;
109- virtual void AppendStruct (DeviceOptInfoToAppend dev_opt_info) = 0;
109+ virtual void Append (DeviceOptInfoToAppend dev_opt_info) = 0;
110110 private:
111111 Device () {};
112112
@@ -153,7 +153,7 @@ class CppCPU : public Device {
153153
154154 std::shared_ptr<Device> host () const override { return defaultDevice;}
155155 void SetRandSeed (unsigned seed) override ;
156- void AppendStruct (DeviceOptInfoToAppend dev_opt_info) override {}
156+ void Append (DeviceOptInfoToAppend dev_opt_info) override {}
157157
158158 protected:
159159 void DoExec (function<void (Context*)>&& fn, int executor) override ;
@@ -188,7 +188,7 @@ class CudaGPU : public Device {
188188
189189 void SetRandSeed (unsigned seed) override ;
190190 size_t GetAllocatedMem () override ;
191- void AppendStruct (DeviceOptInfoToAppend dev_opt_info) override {}
191+ void Append (DeviceOptInfoToAppend dev_opt_info) override {}
192192
193193
194194 protected:
@@ -286,7 +286,7 @@ class SwapGPU : public Device {
286286 void SetRandSeed (unsigned seed) override ;
287287 size_t GetAllocatedMem () override ;
288288 // Append at every index: free, read, mutable
289- void AppendStruct (DeviceOptInfoToAppend dev_opt_info) override ;
289+ void Append (DeviceOptInfoToAppend dev_opt_info) override ;
290290
291291 protected:
292292 void DoExec (function<void (Context*)>&& fn, int executor) override ;
@@ -408,7 +408,7 @@ class OpenclDevice : public singa::Device {
408408 virtual void CopyDataToFrom (Block* dst, Block* src, size_t nBytes,
409409 CopyDirection direction, int dst_offset = 0 ,
410410 int src_offset = 0 ) override ;
411- void AppendStruct (DeviceOptInfoToAppend dev_opt_info) override {}
411+ void Append (DeviceOptInfoToAppend dev_opt_info) override {}
412412protected:
413413 // / The OpenCL device that this object represents.
414414 // / Each OpenclDevice contains exactly one cl::Device for the lifetime of the
0 commit comments