Architecture#
Example:
>>> hpk.Architecture.avx2 == hpk.Architecture.avx512
False
>>> hpk.Architecture.avx2 in hpk.Architecture.avx512
True
>>> hpk.Architecture.avx512 in hpk.Architecture.avx2
False
>>> hpk.Architecture.sve256 not in hpk.Architecture.avx512
True
>>> hpk.Architecture.avx512 not in hpk.Architecture.sve256
True
- See Also:
ENUMERATION
- class hpk.Architecture(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
- avx2 = 2#
- avx512 = 18#
- avx512fp16 = 274#
- detect = 0#
- sve256 = 131328#
- unsupported = 1#
FUNCTIONS
- hpk.Architecture.__contains__(self, other)#
Returns True if self has at least the same flags set as other.