Skip to content

[edited] GPU: keep_interpolated_fields #759

@weiy-me

Description

@weiy-me

When using GPU computation, the ID list in trackparticle seems to be reassigned based on the current position at each timestamp, while with CPU computation, particle IDs are inherited across different timestamps, allowing for tracking.

Description

Please refer to the attached image and code.

I attempted to perform a TNSA simulation and tracked some particles that moved to the back of the simulation area (x > 50) using their IDs, as shown in the figure. It can be seen that the results from the CPU and GPU are completely different. In the GPU version, these IDs seem to be reassigned based on position at each step, so they always appear together. In the final time step, they suddenly moved to the back of the simulation area.

CPU

CPU

GPU

GPU

input_gpu.py.txt
input_cpu.py.txt
plot.py.txt

Parameters

  • Smilei Version : 5.0-206-g456444957-master
  • HDF5 version 1.14.2
  • Python version 3.10.15
  • GPU: A100-PCIE-40GB
  • CUDA Version: 12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestsomething that could be added to the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions