// !!! This is a file automatically generated by hipify!!! #include #ifdef WITH_PYTHON #include #endif #include #include "scatter.h" #include "macros.h" #ifdef WITH_CUDA #ifdef USE_ROCM #include #else #include #endif #endif #ifdef _WIN32 #ifdef WITH_PYTHON #ifdef WITH_CUDA PyMODINIT_FUNC PyInit__version_cuda(void) { return NULL; } #else PyMODINIT_FUNC PyInit__version_cpu(void) { return NULL; } #endif #endif #endif namespace scatter { SCATTER_API int64_t cuda_version() noexcept { #ifdef WITH_CUDA #ifdef USE_ROCM return HIP_VERSION; #else return DTK_VERSION; #endif #else return -1; #endif } } // namespace scatter static auto registry = torch::RegisterOperators().op( "torch_scatter::cuda_version", [] { return scatter::cuda_version(); });