diff options
author | 2021-06-08 11:26:22 -0700 | |
---|---|---|
committer | 2021-06-08 11:26:22 -0700 | |
commit | c08c4fd0a18cbc75d205a73c308bc71fb0d906e3 (patch) | |
tree | 2601b34cf67454d585d80c1c10d718cdbc9cad12 /Source/Utils/write_atomic_data_cpp.py | |
parent | f2d6c5d9ffa04b27733987eb2e3124517579cbad (diff) | |
download | WarpX-c08c4fd0a18cbc75d205a73c308bc71fb0d906e3.tar.gz WarpX-c08c4fd0a18cbc75d205a73c308bc71fb0d906e3.tar.zst WarpX-c08c4fd0a18cbc75d205a73c308bc71fb0d906e3.zip |
Fix kernel timer: use after free (#2006)
* KernelTimer: Fix Cost Use-After-Free
AMReX' ParallelFor is async, the free of the cost function occurs too
early can can lead to use-after-free's from the kernel.
* CMake: WarpX_GPUCLOCK on CUDA/HIP
Make conditional on supported backends.
* Add addition to global cost array
As we abstracted this from the original research prototypes
(https://doi.org/10.5281/zenodo.4708449) to merge this to mainline in
1406, we forgot to add the addition to `*costs` at this point.
Measurements were done with the code linked in the zenodo archive.
* Cleaning: Move m_cost assignment more in
Not too important, but with a default nullptr now possible.
* synchronize -> streamSynchronize
Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
Diffstat (limited to 'Source/Utils/write_atomic_data_cpp.py')
0 files changed, 0 insertions, 0 deletions