Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fermi acceleration demo #201

Merged
merged 11 commits into from
Oct 29, 2024
Merged

Add Fermi acceleration demo #201

merged 11 commits into from
Oct 29, 2024

Conversation

henry2004y
Copy link
Owner

@henry2004y henry2004y commented Oct 28, 2024

This example demonstrates electron acceleration via Fermi acceleration using a simple 1D model. It follows the setup described in Fermi acceleration of electrons inside foreshock transient cores.

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.39%. Comparing base (c1034ec) to head (17e1c49).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #201      +/-   ##
==========================================
+ Coverage   83.48%   84.39%   +0.90%     
==========================================
  Files           9        9              
  Lines         660      692      +32     
==========================================
+ Hits          551      584      +33     
+ Misses        109      108       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Benchmark result

Judge result

Benchmark Report for /home/runner/work/TestParticle.jl/TestParticle.jl

Job Properties

  • Time of benchmarks:
    • Target: 29 Oct 2024 - 16:08
    • Baseline: 29 Oct 2024 - 16:10
  • Package commits:
    • Target: 1301f6
    • Baseline: 360ee7
  • Julia commits:
    • Target: 8f5b7c
    • Baseline: 8f5b7c
  • 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 ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). 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", "GC", "in place"] 1.05 (5%) ❌ 1.00 (1%)
["trace", "analytic field", "out of place"] 1.07 (5%) ❌ 1.00 (1%)

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["trace", "GC"]
  • ["trace", "analytic field"]
  • ["trace", "numerical field"]
  • ["trace", "time-dependent field"]

Julia versioninfo

Target

Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.5 LTS
  uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
  CPU: AMD EPYC 7763 64-Core Processor: 
              speed         user         nice          sys         idle          irq
       #1     0 MHz       4386 s          0 s        317 s       3640 s          0 s
       #2     0 MHz       4484 s          0 s        257 s       3597 s          0 s
       #3     0 MHz       3978 s          0 s        287 s       4080 s          0 s
       #4     0 MHz       4177 s          0 s        265 s       3905 s          0 s
  Memory: 15.606487274169922 GB (13099.05859375 MB free)
  Uptime: 837.03 sec
  Load Avg:  1.3  2.64  1.78
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)

Baseline

Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.5 LTS
  uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
  CPU: AMD EPYC 7763 64-Core Processor: 
              speed         user         nice          sys         idle          irq
       #1     0 MHz       4703 s          0 s        341 s       4518 s          0 s
       #2     0 MHz       4944 s          0 s        290 s       4323 s          0 s
       #3     0 MHz       4274 s          0 s        315 s       4974 s          0 s
       #4     0 MHz       4294 s          0 s        289 s       4984 s          0 s
  Memory: 15.606487274169922 GB (13028.5 MB free)
  Uptime: 959.14 sec
  Load Avg:  1.06  2.1  1.68
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)

Target result

Benchmark Report for /home/runner/work/TestParticle.jl/TestParticle.jl

Job Properties

  • Time of benchmark: 29 Oct 2024 - 16:8
  • Package commit: 1301f6
  • Julia commit: 8f5b7c
  • 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", "GC", "in place"] 140.091 μs (5%) 122.69 KiB (1%) 2286
["trace", "analytic field", "in place relativistic"] 6.763 μs (5%) 10.45 KiB (1%) 199
["trace", "analytic field", "in place"] 6.175 μs (5%) 10.45 KiB (1%) 199
["trace", "analytic field", "out of place"] 3.872 μs (5%) 8.61 KiB (1%) 159
["trace", "numerical field", "Boris ensemble"] 3.281 μs (5%) 3.30 KiB (1%) 25
["trace", "numerical field", "Boris"] 1.714 μs (5%) 1.88 KiB (1%) 19
["trace", "numerical field", "in place"] 18.254 μs (5%) 12.73 KiB (1%) 200
["trace", "numerical field", "out of place"] 13.365 μs (5%) 9.81 KiB (1%) 159
["trace", "time-dependent field", "in place"] 7.406 μs (5%) 11.30 KiB (1%) 220
["trace", "time-dependent field", "out of place"] 5.111 μs (5%) 9.39 KiB (1%) 177

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["trace", "GC"]
  • ["trace", "analytic field"]
  • ["trace", "numerical field"]
  • ["trace", "time-dependent field"]

Julia versioninfo

Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.5 LTS
  uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
  CPU: AMD EPYC 7763 64-Core Processor: 
              speed         user         nice          sys         idle          irq
       #1     0 MHz       4386 s          0 s        317 s       3640 s          0 s
       #2     0 MHz       4484 s          0 s        257 s       3597 s          0 s
       #3     0 MHz       3978 s          0 s        287 s       4080 s          0 s
       #4     0 MHz       4177 s          0 s        265 s       3905 s          0 s
  Memory: 15.606487274169922 GB (13099.05859375 MB free)
  Uptime: 837.03 sec
  Load Avg:  1.3  2.64  1.78
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)

Baseline result

Benchmark Report for /home/runner/work/TestParticle.jl/TestParticle.jl

Job Properties

  • Time of benchmark: 29 Oct 2024 - 16:10
  • Package commit: 360ee7
  • Julia commit: 8f5b7c
  • 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", "GC", "in place"] 132.858 μs (5%) 122.69 KiB (1%) 2286
["trace", "analytic field", "in place relativistic"] 6.704 μs (5%) 10.45 KiB (1%) 199
["trace", "analytic field", "in place"] 6.005 μs (5%) 10.45 KiB (1%) 199
["trace", "analytic field", "out of place"] 3.624 μs (5%) 8.61 KiB (1%) 159
["trace", "numerical field", "Boris ensemble"] 3.272 μs (5%) 3.30 KiB (1%) 25
["trace", "numerical field", "Boris"] 1.690 μs (5%) 1.88 KiB (1%) 19
["trace", "numerical field", "in place"] 18.204 μs (5%) 12.73 KiB (1%) 200
["trace", "numerical field", "out of place"] 13.035 μs (5%) 9.81 KiB (1%) 159
["trace", "time-dependent field", "in place"] 7.411 μs (5%) 11.30 KiB (1%) 220
["trace", "time-dependent field", "out of place"] 4.974 μs (5%) 9.39 KiB (1%) 177

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["trace", "GC"]
  • ["trace", "analytic field"]
  • ["trace", "numerical field"]
  • ["trace", "time-dependent field"]

Julia versioninfo

Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      Ubuntu 22.04.5 LTS
  uname: Linux 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64
  CPU: AMD EPYC 7763 64-Core Processor: 
              speed         user         nice          sys         idle          irq
       #1     0 MHz       4703 s          0 s        341 s       4518 s          0 s
       #2     0 MHz       4944 s          0 s        290 s       4323 s          0 s
       #3     0 MHz       4274 s          0 s        315 s       4974 s          0 s
       #4     0 MHz       4294 s          0 s        289 s       4984 s          0 s
  Memory: 15.606487274169922 GB (13028.5 MB free)
  Uptime: 959.14 sec
  Load Avg:  1.06  2.1  1.68
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (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.86
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: Vulnerable: 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; BHI 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

Repository owner deleted a comment from github-actions bot Oct 29, 2024
@henry2004y henry2004y merged commit 67399d4 into master Oct 29, 2024
7 checks passed
@henry2004y henry2004y deleted the fermi_foreshock branch October 29, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant