mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Revert D31984694: [pytorch][PR] make TORCH_(CUDABLAS|CUSOLVER)_CHECK
usable in custom extensions
Test Plan: revert-hammer
Differential Revision:
D31984694 (d4493b27ee
)
Original commit changeset: 0035ecd13980
fbshipit-source-id: c85689007719c9e4a930b0a8a32d481a501d3c14
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4a2bbc619d
commit
aa16de517d
@ -1,17 +0,0 @@
|
||||
#include <torch/extension.h>
|
||||
#include <ATen/cuda/CUDAContext.h>
|
||||
|
||||
#include <cusolverDn.h>
|
||||
|
||||
|
||||
torch::Tensor noop_cusolver_function(torch::Tensor x) {
|
||||
cusolverDnHandle_t handle;
|
||||
TORCH_CUSOLVER_CHECK(cusolverDnCreate(&handle));
|
||||
TORCH_CUSOLVER_CHECK(cusolverDnDestroy(handle));
|
||||
return x;
|
||||
}
|
||||
|
||||
|
||||
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
||||
m.def("noop_cusolver_function", &noop_cusolver_function, "a cusolver function");
|
||||
}
|
Reference in New Issue
Block a user