cuda_utils.cpp 250 B

123456789101112
  1. #include <torch/extension.h>
  2. int get_device_attribute(
  3. int attribute,
  4. int device_id);
  5. PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  6. m.def(
  7. "get_device_attribute",
  8. &get_device_attribute,
  9. "Gets the specified device attribute.");
  10. }