8 lines
242 B
Python

from os import environ
__env_name = 'GPU_LANG'
if __env_name in environ and environ.get(__env_name).lower() == "cuda":
from .cuda_context import CudaContext as KernelContext
else:
from .hip_context import HIPContext as KernelContext