This PR now becomes a major rework of the native Boris method types and the TestParticleMakie recipe. See more in #142.
TraceSolution now becomes a subtype of AbstractODESolution, so the new Makie recipe implemented in DiffEqBase can work automatically. Many components are kept dummy for now. #140 This comes with several additional features:
Functor for interpolating at any time t
Output display using the DiffEq style
Move dt to TestParticle.solve kwarg for better consistency with DifferentialEquations; the time step should belong to the solver, not TraceProblem #139
Benchmark result
# Judge result
# Benchmark Report for */home/runner/work/TestParticle.jl/TestParticle.jl*
## Job Properties
* Time of benchmarks:
- Target: 9 Feb 2024 - 16:15
- Baseline: 9 Feb 2024 - 16:16
* Package commits:
- Target: a6f27e
- Baseline: 863424
* Julia commits:
- Target: 312098
- Baseline: 312098
* Julia command flags:
- Target: None
- Baseline: None
* Environment variables:
- Target: None
- Baseline: None
## Results
A ratio greater than `1.0` denotes a possible regression (marked with :x:), while a ratio less
than `1.0` denotes a possible improvement (marked with :white_check_mark:). Only significant results - results
that indicate possible regressions or improvements - are shown below (thus, an empty table means that all
benchmark results remained invariant between builds).
| ID | time ratio | memory ratio |
|-----------------------------------------------------|------------------------------|--------------|
| `["trace", "analytic field", "in place"]` | 0.94 (5%) :white_check_mark: | 1.00 (1%) |
## Benchmark Group List
Here's a list of all the benchmark groups executed by this job:
- `["trace", "analytic field"]`
- `["trace", "numerical field"]`
- `["trace", "time-dependent field"]`
## Julia versioninfo
### Target
```
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
Ubuntu 22.04.3 LTS
uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64
CPU: AMD EPYC 7763 64-Core Processor:
speed user nice sys idle irq
#1 3288 MHz 2218 s 0 s 164 s 2738 s 0 s
#2 3243 MHz 2452 s 0 s 178 s 2501 s 0 s
#3 2445 MHz 2165 s 0 s 198 s 2740 s 0 s
#4 3249 MHz 2221 s 0 s 174 s 2716 s 0 s
Memory: 15.60690689086914 GB (13736.56640625 MB free)
Uptime: 515.37 sec
Load Avg: 1.26 1.6 0.94
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 on 4 virtual cores
```
### Baseline
```
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
Ubuntu 22.04.3 LTS
uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64
CPU: AMD EPYC 7763 64-Core Processor:
speed user nice sys idle irq
#1 3244 MHz 2604 s 0 s 175 s 3305 s 0 s
#2 3215 MHz 2950 s 0 s 185 s 2958 s 0 s
#3 2445 MHz 2221 s 0 s 209 s 3635 s 0 s
#4 3244 MHz 2256 s 0 s 181 s 3637 s 0 s
Memory: 15.60690689086914 GB (13671.5703125 MB free)
Uptime: 611.87 sec
Load Avg: 1.16 1.47 0.97
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 on 4 virtual cores
```
---
# Target result
# Benchmark Report for */home/runner/work/TestParticle.jl/TestParticle.jl*
## Job Properties
* Time of benchmark: 9 Feb 2024 - 16:15
* Package commit: a6f27e
* Julia commit: 312098
* Julia command flags: None
* Environment variables: None
## Results
Below is a table of this job's results, obtained by running the benchmarks.
The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to
index into the BaseBenchmarks suite to retrieve the corresponding benchmarks.
The percentages accompanying time and memory values in the below table are noise tolerances. The "true"
time/memory value for a given benchmark is expected to fall within this percentage of the reported value.
An empty cell means that the value was zero.
| ID | time | GC time | memory | allocations |
|-----------------------------------------------------|---------------:|--------:|---------------:|------------:|
| `["trace", "analytic field", "in place"]` | 7.805 μs (5%) | | 10.56 KiB (1%) | 114 |
| `["trace", "analytic field", "out of place"]` | 5.963 μs (5%) | | 8.72 KiB (1%) | 88 |
| `["trace", "numerical field", "Boris ensemble"]` | 3.400 μs (5%) | | 880 bytes (1%) | 16 |
| `["trace", "numerical field", "Boris"]` | 1.744 μs (5%) | | 672 bytes (1%) | 13 |
| `["trace", "numerical field", "in place"]` | 21.230 μs (5%) | | 12.81 KiB (1%) | 114 |
| `["trace", "numerical field", "out of place"]` | 15.229 μs (5%) | | 9.92 KiB (1%) | 88 |
| `["trace", "time-dependent field", "in place"]` | 9.468 μs (5%) | | 11.31 KiB (1%) | 123 |
| `["trace", "time-dependent field", "out of place"]` | 7.519 μs (5%) | | 9.50 KiB (1%) | 97 |
## Benchmark Group List
Here's a list of all the benchmark groups executed by this job:
- `["trace", "analytic field"]`
- `["trace", "numerical field"]`
- `["trace", "time-dependent field"]`
## Julia versioninfo
```
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
Ubuntu 22.04.3 LTS
uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64
CPU: AMD EPYC 7763 64-Core Processor:
speed user nice sys idle irq
#1 3288 MHz 2218 s 0 s 164 s 2738 s 0 s
#2 3243 MHz 2452 s 0 s 178 s 2501 s 0 s
#3 2445 MHz 2165 s 0 s 198 s 2740 s 0 s
#4 3249 MHz 2221 s 0 s 174 s 2716 s 0 s
Memory: 15.60690689086914 GB (13736.56640625 MB free)
Uptime: 515.37 sec
Load Avg: 1.26 1.6 0.94
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 on 4 virtual cores
```
---
# Baseline result
# Benchmark Report for */home/runner/work/TestParticle.jl/TestParticle.jl*
## Job Properties
* Time of benchmark: 9 Feb 2024 - 16:16
* Package commit: 863424
* Julia commit: 312098
* Julia command flags: None
* Environment variables: None
## Results
Below is a table of this job's results, obtained by running the benchmarks.
The values listed in the `ID` column have the structure `[parent_group, child_group, ..., key]`, and can be used to
index into the BaseBenchmarks suite to retrieve the corresponding benchmarks.
The percentages accompanying time and memory values in the below table are noise tolerances. The "true"
time/memory value for a given benchmark is expected to fall within this percentage of the reported value.
An empty cell means that the value was zero.
| ID | time | GC time | memory | allocations |
|-----------------------------------------------------|---------------:|--------:|---------------:|------------:|
| `["trace", "analytic field", "in place"]` | 8.319 μs (5%) | | 10.56 KiB (1%) | 114 |
| `["trace", "analytic field", "out of place"]` | 5.849 μs (5%) | | 8.72 KiB (1%) | 88 |
| `["trace", "numerical field", "Boris ensemble"]` | 3.414 μs (5%) | | 880 bytes (1%) | 16 |
| `["trace", "numerical field", "Boris"]` | 1.752 μs (5%) | | 672 bytes (1%) | 13 |
| `["trace", "numerical field", "in place"]` | 21.250 μs (5%) | | 12.81 KiB (1%) | 114 |
| `["trace", "numerical field", "out of place"]` | 15.429 μs (5%) | | 9.92 KiB (1%) | 88 |
| `["trace", "time-dependent field", "in place"]` | 9.287 μs (5%) | | 11.31 KiB (1%) | 123 |
| `["trace", "time-dependent field", "out of place"]` | 7.439 μs (5%) | | 9.50 KiB (1%) | 97 |
## Benchmark Group List
Here's a list of all the benchmark groups executed by this job:
- `["trace", "analytic field"]`
- `["trace", "numerical field"]`
- `["trace", "time-dependent field"]`
## Julia versioninfo
```
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
Ubuntu 22.04.3 LTS
uname: Linux 6.2.0-1019-azure #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024 x86_64 x86_64
CPU: AMD EPYC 7763 64-Core Processor:
speed user nice sys idle irq
#1 3244 MHz 2604 s 0 s 175 s 3305 s 0 s
#2 3215 MHz 2950 s 0 s 185 s 2958 s 0 s
#3 2445 MHz 2221 s 0 s 209 s 3635 s 0 s
#4 3244 MHz 2256 s 0 s 181 s 3637 s 0 s
Memory: 15.60690689086914 GB (13671.5703125 MB free)
Uptime: 611.87 sec
Load Avg: 1.16 1.47 0.97
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 on 4 virtual cores
```
---
# Runtime information
| Runtime Info | |
|:--|:--|
| BLAS #threads | 2 |
| `BLAS.vendor()` | `lbt` |
| `Sys.CPU_THREADS` | 4 |
`lscpu` output:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: AuthenticAMD
Model name: AMD EPYC 7763 64-Core Processor
CPU family: 25
Model: 1
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
Stepping: 1
BogoMIPS: 4890.85
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm
Virtualization: AMD-V
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 64 KiB (2 instances)
L1i cache: 64 KiB (2 instances)
L2 cache: 1 MiB (2 instances)
L3 cache: 32 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-3
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Mitigation; safe RET, no microcode
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
| Cpu Property | Value |
|:------------------ |:---------------------------------------------------------- |
| Brand | AMD EPYC 7763 64-Core Processor |
| Vendor | :AMD |
| Architecture | :Unknown |
| Model | Family: 0xaf, Model: 0x01, Stepping: 0x01, Type: 0x00 |
| Cores | 16 physical cores, 16 logical cores (on executing CPU) |
| | No Hyperthreading hardware capability detected |
| Clock Frequencies | Not supported by CPU |
| Data Cache | Level 1:3 : (32, 512, 32768) kbytes |
| | 64 byte cache line size |
| Address Size | 48 bits virtual, 48 bits physical |
| SIMD | 256 bit = 32 byte max. SIMD vector size |
| Time Stamp Counter | TSC is accessible via `rdtsc` |
| | TSC runs at constant rate (invariant from clock frequency) |
| Perf. Monitoring | Performance Monitoring Counters (PMC) are not supported |
| Hypervisor | Yes, Microsoft |
This PR now becomes a major rework of the native Boris method types and the TestParticleMakie recipe. See more in #142.
TraceSolution
now becomes a subtype ofAbstractODESolution
, so the new Makie recipe implemented in DiffEqBase can work automatically. Many components are kept dummy for now. #140 This comes with several additional features:dt
toTestParticle.solve
kwarg for better consistency with DifferentialEquations; the time step should belong to the solver, notTraceProblem
#139This will close #142.
While developing this part, I also encountered the bug which will be fixed by https://github.com/SciML/DiffEqBase.jl/pull/1004.