From dd73975e9af17d97a646819d4868df8bbc665d45 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 31 Dec 2020 13:37:26 -0600
Subject: [PATCH] Remove another now-unnecessary add_event in clrandom.rand

---
 pyopencl/clrandom.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pyopencl/clrandom.py b/pyopencl/clrandom.py
index a07b2f64..ea3862bc 100644
--- a/pyopencl/clrandom.py
+++ b/pyopencl/clrandom.py
@@ -764,8 +764,7 @@ def rand(queue, shape, dtype, luxury=None, a=0, b=1):
     from pyopencl.array import Array
     gen = _get_generator(queue.context)
     result = Array(queue, shape, dtype)
-    result.add_event(
-            gen.fill_uniform(result, a=a, b=b))
+    gen.fill_uniform(result, a=a, b=b)
     return result
 
 
-- 
GitLab