• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

1d_stencil_1.cppH A D19-Feb-20194.1 KiB13377

1d_stencil_1_omp.cppH A D19-Feb-20194.6 KiB15590

1d_stencil_2.cppH A D19-Feb-20195.5 KiB16994

1d_stencil_3.cppH A D19-Feb-20196.1 KiB202129

1d_stencil_3_omp.cppH A D19-Feb-20196.8 KiB223142

1d_stencil_4.cppH A D19-Feb-20198.1 KiB264172

1d_stencil_4_checkpoint.cppH A D19-Feb-201914.4 KiB474341

1d_stencil_4_parallel.cppH A D19-Feb-20197 KiB221145

1d_stencil_4_repart.cppH A D19-Feb-201913.4 KiB429292

1d_stencil_4_throttle.cppH A D19-Feb-20199.7 KiB312216

1d_stencil_5.cppH A D19-Feb-201911.7 KiB359217

1d_stencil_6.cppH A D19-Feb-201914 KiB430278

1d_stencil_7.cppH A D19-Feb-201914.6 KiB442286

1d_stencil_8.cppH A D19-Feb-201923.8 KiB744502

README.APEXH A D19-Feb-2019896 2920

print_time_results.hppH A D19-Feb-20192.8 KiB9170

README.APEX

1There are two 1d_stencil examples that use runtime adaptation.
2
3The first one is 1d_stencil_4_repart - it will repartition the blocks to adapt
4the block size given the problem size and thread count. To run that example,
5configure HPX with APEX:
6
7cmake ... \
8-DHPX_WITH_APEX=TRUE \
9-DAPEX_WITH_ACTIVEHARMONY=TRUE \
10-DACTIVEHARMONY_ROOT=<path-to-activeharmony> \
11...
12
13Then to execute the example:
14
15export HARMONY_HOME=$HOME/install/activeharmony/4.5
16./build.tcmalloc/bin/1d_stencil_4_repart --nx=100000 --nt=500 --nr=10
17
18
19The other example uses throttling to achieve the highest throughput by
20minimizing the thread queue length.  To execute that example:
21
22export APEX_THROTTLE_CONCURRENCY=1
23export APEX_THROTTLE_ENERGY=1
24export APEX_POLICY=1
25export APEX_THROTTLING_MAX_THREADS=20
26
27./build.tcmalloc/bin/1d_stencil_4_throttle --nx 100000 --np 1000 --nt 450 \
28--hpx:queuing=throttle --hpx:threads 20
29