# -*- coding: utf-8 -*-

from pyfr.backends.base import Backend as BaseBackend
from pyfr.backends.cuda import CudaBackend
from pyfr.util import subclass_map


def get_backend(name, cfg):
    backend_map = subclass_map(BaseBackend, 'name')

    return backend_map[name](cfg)

@@ -260,15 +260,23 @@
 map%5Bname
+.lower()
 %5D(cfg)%0A

Make backend names more flexible.