Unnecessarily static.
Thread local callback and state for THError. Copied from github:koraykv/torch
standalone cmake
Add custom allocator support to torch TH

Summary:
I'm planning to use this for two things:

1. memory sharing between serialized and unserialized tensors

2. aligned allocations (on a 64-byte boundary, for cache efficiency)
revamp allocator + better map storage
Merge branch 'master' of github.com:torch/TH
windows mmap allocator
disable useless compiler warnings under Windows