fix mac build of sendrecvop_utils (#12272)

distributed_test
Qiao Longfei 7 years ago committed by GitHub
parent 2b2406e58b
commit 95a2b5f56a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,10 +28,12 @@ namespace distributed {
using VarMsg = sendrecv::VariableMessage;
#ifdef PADDLE_WITH_CUDA
void* GetVarPayLoad(const std::string varname, int64_t size) {
platform::CUDAPinnedPlace cuda_pinned;
return memory::Alloc(cuda_pinned, size);
}
#endif
void GetTensorPayload(framework::Variable* var,
const platform::DeviceContext& ctx, VarMsg* request,

Loading…
Cancel
Save