Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2016-10-25 17:21:54 +0300
committersoumith <soumith@fb.com>2016-10-25 17:21:54 +0300
commit69c9454c07a6da74ab469bb9866c17656fbed8a2 (patch)
tree68df56e2fa2bb38d60bfaefda562699dcf96fc9e /FFI.lua
parente56feb8f9859990fda4c53fb59c69f08b77e85bf (diff)
Store the device in THCStorage
Diffstat (limited to 'FFI.lua')
-rw-r--r--FFI.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/FFI.lua b/FFI.lua
index f347a89..b2777a2 100644
--- a/FFI.lua
+++ b/FFI.lua
@@ -63,6 +63,7 @@ typedef struct THCStorage
THAllocator *allocator;
void *allocatorContext;
struct THCStorage *view;
+ int device;
} THCStorage;
typedef struct THCTensor