:github_url: https://github.com/pytorch/pytorch .. _program_listing_file_torch_csrc_api_include_torch_xpu.h: Program Listing for File xpu.h ============================== |exhale_lsh| :ref:`Return to documentation for file ` (``torch/csrc/api/include/torch/xpu.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include namespace torch::xpu { size_t TORCH_API device_count(); bool TORCH_API is_available(); void TORCH_API manual_seed(uint64_t seed); void TORCH_API manual_seed_all(uint64_t seed); void TORCH_API synchronize(int64_t device_index); } // namespace torch::xpu