You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by GitBox <gi...@apache.org> on 2019/01/15 05:50:48 UTC
[arrow] Diff for: [GitHub] wesm closed pull request #3398: ARROW-4246:
[Plasma][Python] PlasmaClient.list returns wrong information with CUDA
enabled Plasma
diff --git a/cpp/src/plasma/common.h b/cpp/src/plasma/common.h
index 17155b2dff..8e90fb301c 100644
--- a/cpp/src/plasma/common.h
+++ b/cpp/src/plasma/common.h
@@ -93,10 +93,6 @@ struct ObjectTableEntry {
int64_t data_size;
/// Size of the object metadata in bytes.
int64_t metadata_size;
-#ifdef PLASMA_CUDA
- /// IPC GPU handle to share with clients.
- std::shared_ptr<::arrow::cuda::CudaIpcMemHandle> ipc_handle;
-#endif
/// Number of clients currently using this object.
int ref_count;
/// Unix epoch of when this object was created.
@@ -108,6 +104,13 @@ struct ObjectTableEntry {
ObjectState state;
/// The digest of the object. Used to see if two objects are the same.
unsigned char digest[kDigestSize];
+
+#ifdef PLASMA_CUDA
+ /// Put CUDA related members at the last to create Python bindings easily.
+
+ /// IPC GPU handle to share with clients.
+ std::shared_ptr<::arrow::cuda::CudaIpcMemHandle> ipc_handle;
+#endif
};
/// Mapping from ObjectIDs to information about the object.
With regards,
Apache Git Services