push magma init into lazyInitCUDA (#18527)
authorSoumith Chintala <soumith@gmail.com>
Wed, 3 Apr 2019 19:27:19 +0000 (12:27 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 3 Apr 2019 19:47:34 +0000 (12:47 -0700)
commitb5d8844bbee40410ea981464da7186ce31ad0311
tree9a41b8cf5e1b2ce59df905eb09158f2787f9ec3b
parented9724f3858e97f3baba5da640d0736c92c73270
push magma init into lazyInitCUDA (#18527)

Summary:
Tries to fix C++ API's usage of MAGMA-based functions.

Attempts to Fix https://github.com/pytorch/pytorch/issues/18074
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18527

Differential Revision: D14691694

Pulled By: soumith

fbshipit-source-id: dd04e74418e486d73ea4a92193ddf79352ed71ba
aten/src/ATen/cuda/detail/CUDAHooks.cpp
test/cpp/api/tensor_cuda.cpp
torch/csrc/cuda/Module.cpp