Commit b4a9e5d5 authored by rusty1s's avatar rusty1s
Browse files

compile version

parent 8a1f0741
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
PyMODINIT_FUNC PyInit__scatter(void) { return NULL; } PyMODINIT_FUNC PyInit__segment_coo(void) { return NULL; }
#endif #endif
std::tuple<torch::Tensor, torch::optional<torch::Tensor>> std::tuple<torch::Tensor, torch::optional<torch::Tensor>>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
PyMODINIT_FUNC PyInit__scatter(void) { return NULL; } PyMODINIT_FUNC PyInit__segment_csr(void) { return NULL; }
#endif #endif
std::tuple<torch::Tensor, torch::optional<torch::Tensor>> std::tuple<torch::Tensor, torch::optional<torch::Tensor>>
......
#include <Python.h>
#include <torch/script.h>
#ifdef WITH_CUDA
#include <cuda.h>
#endif
#ifdef _WIN32
PyMODINIT_FUNC PyInit__version(void) { return NULL; }
#endif
int64_t cuda_version() {
#ifdef WITH_CUDA
return CUDA_VERSION;
#else
return -1;
#endif
}
static auto registry =
torch::RegisterOperators().op("torch_scatter::cuda_version", &cuda_version);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment