diff options
author | 2021-12-13 13:26:29 -0800 | |
---|---|---|
committer | 2021-12-13 21:26:29 +0000 | |
commit | 5d633f518bab2c541e64b4092808f950d3d06dcf (patch) | |
tree | 173ad4ef822e101fa4d86bb35dbf869598d540e5 /Python/pywarpx/_libwarpx.py | |
parent | efcf0d46ef79cf29dcc090423c7c65e1fc347a8f (diff) | |
download | WarpX-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