Program Listing for File cuda.h#
↰ Return to documentation for file (torch/csrc/api/include/torch/cuda.h)
#pragma once
#include <c10/core/Device.h>
#include <c10/macros/Export.h>
#include <cstdint>
namespace torch::cuda {
c10::DeviceIndex TORCH_API device_count();
bool TORCH_API is_available();
bool TORCH_API cudnn_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 = -1);
} // namespace torch::cuda