diff --git a/sumpy/kernel.py b/sumpy/kernel.py
index 832ea8490baff84a501463c8ea3b500957c81231..4606cff7921ee7fff408efb5aedb1784b052dfca 100644
--- a/sumpy/kernel.py
+++ b/sumpy/kernel.py
@@ -93,6 +93,13 @@ class KernelArgument(object):
     def name(self):
         return self.loopy_arg.name
 
+    def __eq__(self, other):
+        return isinstance(other, KernelArgument) and \
+            self.loopy_arg == other.loopy_arg
+
+    def __hash__(self):
+        return (self.loopy_arg,)
+
 
 # {{{ basic kernel interface