Files
pytorch/torch/csrc/cuda/device_set.h
PyTorch MergeBot a9d9077f12 Revert "Increased compile time max GPUs to 512. Switched to int16_t DeviceIndex. (#119639)"
This reverts commit 7c556428c74a79c6d9c272826344a0828d3f66f5.

Reverted https://github.com/pytorch/pytorch/pull/119639 on behalf of https://github.com/kit1980 due to breaking internal builds, see D54286923 ([comment](https://github.com/pytorch/pytorch/pull/119639#issuecomment-1969634480))
2024-02-28 18:57:09 +00:00

12 lines
185 B
C++

#pragma once
#include <c10/cuda/CUDAMacros.h>
#include <bitset>
#include <cstddef>
namespace torch {
using device_set = std::bitset<C10_COMPILE_TIME_MAX_GPUS>;
} // namespace torch