Deduplicate instances caching allocator, so that we only have one instance. (#16720)
authorEdward Yang <ezyang@fb.com>
Fri, 8 Feb 2019 17:29:59 +0000 (09:29 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 8 Feb 2019 17:33:56 +0000 (09:33 -0800)
commitb3fbd3eebf50e11f6c9af1f7d74bf295dcb2ffd5
tree2b270e8640106a2428dadb5ad60d62ca2e0941b8
parent5c982622b0c6711e02e4363dc56557c0fcc3517a
Deduplicate instances caching allocator, so that we only have one instance. (#16720)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16720

I'm taking the deduplication slowly because there is something here
that is causing problems, and I want to figure out what it is.

Reviewed By: dzhulgakov

Differential Revision: D13943194

fbshipit-source-id: cbc08fee5862fdcb393b9dd5b1d2ac7250f77c4b
c10/cuda/CUDACachingAllocator.cpp
c10/cuda/CUDACachingAllocator.h