aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/_libwarpx.py
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <WeiqunZhang@lbl.gov> 2021-12-13 13:26:29 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-13 21:26:29 +0000
commit5d633f518bab2c541e64b4092808f950d3d06dcf (patch)
tree173ad4ef822e101fa4d86bb35dbf869598d540e5 /Python/pywarpx/_libwarpx.py
parentefcf0d46ef79cf29dcc090423c7c65e1fc347a8f (diff)
downloadWarpX-5d633f518bab2c541e64b4092808f950d3d06dcf.tar.gz
WarpX-5d633f518bab2c541e64b4092808f950d3d06dcf.tar.zst
WarpX-5d633f518bab2c541e64b4092808f950d3d06dcf.zip
Fix the scope of profiler for SYCL (#2668)
In main.cpp, the destructor of the profiler was called after amrex::Finalize. This caused an error in SYCL due to a device synchronization call in the dtor, because the SYCL queues in amrex had been deleted. In this commit, we limit the scope of the profiler so that its destructor is called before the queues are deleted. Note that it was never an issue for CUDA/HIP, because the device synchronization calls in those backends do not need any amrex objects.
Diffstat (limited to 'Python/pywarpx/_libwarpx.py')
0 files changed, 0 insertions, 0 deletions