/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
HeterogeneousCore/Common/python/PlatformStatus.py
13 строк
506 B
Jonas Hahnfeld
Map unknown exit codes to PlatformStatus.PlatformNotAvailable
03 апр 2025, 17:17
03 апр 2025, 17:17
8acff55
Код
Авторство
О чём код?
import enum # Please note: these values must be kept in sync with HeterogeneousCore/Common/interface/PlatformStatus.h class PlatformStatus(enum.IntEnum): Success = 0 PlatformNotAvailable = 1 # the platform is not available for this architecture, OS or compiler RuntimeNotAvailable = 2 # the runtime could not be initialised DevicesNotAvailable = 3 # there are no visible, usable devices @classmethod def _missing_(cls, value): return cls.PlatformNotAvailable