We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53dcb8b + 8acff55 commit 37bee35Copy full SHA for 37bee35
HeterogeneousCore/Common/python/PlatformStatus.py
@@ -7,3 +7,7 @@ class PlatformStatus(enum.IntEnum):
7
PlatformNotAvailable = 1 # the platform is not available for this architecture, OS or compiler
8
RuntimeNotAvailable = 2 # the runtime could not be initialised
9
DevicesNotAvailable = 3 # there are no visible, usable devices
10
+
11
+ @classmethod
12
+ def _missing_(cls, value):
13
+ return cls.PlatformNotAvailable
0 commit comments