"docs/vscode:/vscode.git/clone" did not exist on "39e1f7eaa4bf414f822ed13922a89df89aabe0bf"
Commit 5f93cd74 authored by rusty1s's avatar rusty1s
Browse files

add version

parent 61df8451
#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_cluster::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