Function | backend_type_safe |
A valid backend type is passed through, but an invalid backend type converts to the default type. |
Function | backend_type_to_name |
Converts a backend type to a backend name. |
Function | get_cuda_available |
Checks if CUDA is available |
Function | get_jit_enabled |
Checks if JIT is enabled (or at least not explicitly disabled). |
Constant | BACKEND_TYPE_CUDA |
Map of backend types to their availability. |
Constant | BACKEND_TYPE_JIT |
Backend type: CUDA. |
Variable | Backend_Types_Available |
Map of backend types to names. |
Variable | Backend_Types_Names_Map |
Default backend type. |
Parameters | |
backend_type:int | Backend type |
Returns | |
int | Safe backend type |
Parameters | |
backend_type:int | Backend type |
Returns | |
str | Backend name |
Returns | |
bool | True if CUDA available, False otherwise |