summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2013-03-13 13:18:17 -0400
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commitdbe35efc3b26b8df6b1db05974c2b976b1c171ba (patch)
treeff102386c1bc1ef5722e305239222dbae0b00fd4
parent1a12c67bc48105ca1cc0e2188341849c04a0e865 (diff)
downloadchroma-dbe35efc3b26b8df6b1db05974c2b976b1c171ba.tar.gz
chroma-dbe35efc3b26b8df6b1db05974c2b976b1c171ba.tar.bz2
chroma-dbe35efc3b26b8df6b1db05974c2b976b1c171ba.zip
Fix test_daq to use newer DAQ API.
-rw-r--r--test/test_pdf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_pdf.py b/test/test_pdf.py
index 1d9e20a..0ad87d8 100644
--- a/test/test_pdf.py
+++ b/test/test_pdf.py
@@ -38,8 +38,10 @@ class TestPDF(unittest.TestCase):
gpu_photons = gpu.GPUPhotons(ev.photons_beg)
gpu_photons.propagate(gpu_geometry, rng_states, nthreads_per_block,
max_blocks)
- gpu_channels = gpu_daq.acquire(gpu_photons, rng_states,
- nthreads_per_block, max_blocks)
+ gpu_daq.begin_acquire()
+ gpu_daq.acquire(gpu_photons, rng_states,
+ nthreads_per_block, max_blocks)
+ gpu_channels = gpu_daq.end_acquire()
gpu_pdf.add_hits_to_pdf(gpu_channels)
hitcount, pdf = gpu_pdf.get_pdfs()