diff --git a/bin/loopy b/bin/loopy
index 78e2b86d69e1831ec99f4397a0304d10a9580a98..5eebe15ecadf9e5a0fa42c9b350078d1fe74e682 100644
--- a/bin/loopy
+++ b/bin/loopy
@@ -61,27 +61,9 @@ def main():
     parser.add_argument("--print-ir", action="store_true")
     args = parser.parse_args()
 
-    # {{{ set up target
-
-    if args.target is None:
-        raise ValueError("must specify target")
-
-    import re
-    CL_TARGET_RE = re.compile(r"^cl:([0-9]+),([0-9]+)$")
-
-    cl_target_re_match = CL_TARGET_RE.match(args.target)
-    if cl_target_re_match is not None:
-        platform_ordinal = int(cl_target_re_match.group(1))
-        device_ordinal = int(cl_target_re_match.group(2))
-
-        import pyopencl as cl
-        plat = cl.get_platforms()[platform_ordinal]
-        target = plat.get_devices()[device_ordinal]
-    else:
-        raise ValueError("target '%s' not understood"
-                % args.target)
-
-    # }}}
+    if args.target is not None:
+        from warnings import warn
+        warn("--target option is deprecated and ignored")
 
     if args.infile == "-":
         infile_content = sys.stdin.read()
@@ -109,7 +91,6 @@ def main():
         data_dic = {}
         data_dic["lp"] = lp
         data_dic["np"] = np
-        data_dic["lp_target"] = target
 
         if args.occa_defines:
             with open(args.occa_defines, "r") as defines_fd:
@@ -151,8 +132,7 @@ def main():
                         + pre_transform_code)
 
         from loopy.frontend.fortran import f2loopy
-        kernels = f2loopy(target, infile_content,
-                pre_transform_code=pre_transform_code)
+        kernels = f2loopy(infile_content, pre_transform_code=pre_transform_code)
 
         if args.name is not None:
             kernels = [kernel for kernel in kernels
diff --git a/examples/fortran/run-floopy.sh b/examples/fortran/run-floopy.sh
index 77c141d4077c1d07a279d5428c1365a5825dd0ff..6a718bb69ba9db8ec2a8f5cbf3b1314676d2f6ab 100755
--- a/examples/fortran/run-floopy.sh
+++ b/examples/fortran/run-floopy.sh
@@ -3,4 +3,4 @@
 NAME="$1"
 shift
 
-python $(which loopy) --target=cl:0,0 --lang=floopy "$NAME" - "$@"
+python $(which loopy) --lang=floopy "$NAME" - "$@"
diff --git a/examples/fortran/run-loopy.sh b/examples/fortran/run-loopy.sh
index d4fb7c2a20c7652052ff196faff8b3285dee3d38..f22f78424bc654e352fff2806120701d096d7068 100755
--- a/examples/fortran/run-loopy.sh
+++ b/examples/fortran/run-loopy.sh
@@ -1,3 +1,3 @@
 #! /bin/sh
 
-python $(which loopy) --target=cl:0,0 --lang=loopy "$NAME" - "$@"
+python $(which loopy) --lang=loopy "$NAME" - "$@"
diff --git a/loopy/frontend/fortran/__init__.py b/loopy/frontend/fortran/__init__.py
index f09c224d5a4dc9069bfa9e4c7b1180f4304e67e5..f169eeef52ef7f029dedcf9412dfa6ef828343d6 100644
--- a/loopy/frontend/fortran/__init__.py
+++ b/loopy/frontend/fortran/__init__.py
@@ -23,7 +23,7 @@ THE SOFTWARE.
 """
 
 
-def f2loopy(target, source, free_form=True, strict=True,
+def f2loopy(source, free_form=True, strict=True,
         pre_transform_code=None):
     from fparser import api
     tree = api.parse(source, isfree=free_form, isstrict=strict,
diff --git a/loopy/kernel/__init__.py b/loopy/kernel/__init__.py
index 86ba2d7c2bfd82fc268b55f70f560c0d066b8f4d..7dd67bc42077088f31bd219cd179709fce959661 100644
--- a/loopy/kernel/__init__.py
+++ b/loopy/kernel/__init__.py
@@ -148,7 +148,6 @@ class LoopKernel(RecordWithoutPickling):
         A value from :class:`kernel_state`.
     """
 
-
     # {{{ constructor
 
     def __init__(self, domains, instructions, args=[], schedule=None,