Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aml
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
27
Issues
27
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
aml
Commits
4d0fa3d6
Commit
4d0fa3d6
authored
Mar 27, 2019
by
Nicolas Denoyelle
Committed by
Swann Perarnau
Mar 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[refactor] redesign areas
parent
36bc84c1
Changes
323
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
323 changed files
with
930 additions
and
70901 deletions
+930
-70901
Makefile.am
Makefile.am
+1
-9
autogen.sh
autogen.sh
+1
-7
benchmarks/dgemm_mkl.c
benchmarks/dgemm_mkl.c
+20
-27
benchmarks/dgemm_noprefetch.c
benchmarks/dgemm_noprefetch.c
+20
-28
benchmarks/dgemm_prefetch.c
benchmarks/dgemm_prefetch.c
+20
-27
benchmarks/stream_add_omp.c
benchmarks/stream_add_omp.c
+8
-12
benchmarks/stream_add_omp_mt.c
benchmarks/stream_add_omp_mt.c
+19
-28
benchmarks/stream_add_omp_st.c
benchmarks/stream_add_omp_st.c
+19
-27
benchmarks/stream_add_pth_st.c
benchmarks/stream_add_pth_st.c
+21
-28
benchmarks/stream_vanilla.c
benchmarks/stream_vanilla.c
+9
-9
configure.ac
configure.ac
+6
-14
include/Makefile.am
include/Makefile.am
+5
-0
include/aml.h
include/aml.h
+36
-584
include/aml/area/area.h
include/aml/area/area.h
+65
-0
include/aml/area/linux.h
include/aml/area/linux.h
+77
-0
include/aml/scratch/par.h
include/aml/scratch/par.h
+1
-0
include/aml/scratch/seq.h
include/aml/scratch/seq.h
+2
-1
include/aml/utils/bitmap.h
include/aml/utils/bitmap.h
+37
-3
jemalloc/.appveyor.yml
jemalloc/.appveyor.yml
+0
-42
jemalloc/.autom4te.cfg
jemalloc/.autom4te.cfg
+0
-3
jemalloc/.gitattributes
jemalloc/.gitattributes
+0
-1
jemalloc/.gitignore
jemalloc/.gitignore
+0
-91
jemalloc/.travis.yml
jemalloc/.travis.yml
+0
-155
jemalloc/COPYING
jemalloc/COPYING
+0
-27
jemalloc/ChangeLog
jemalloc/ChangeLog
+0
-1265
jemalloc/INSTALL.md
jemalloc/INSTALL.md
+0
-411
jemalloc/Makefile.in
jemalloc/Makefile.in
+0
-563
jemalloc/README
jemalloc/README
+0
-20
jemalloc/autogen.sh
jemalloc/autogen.sh
+0
-17
jemalloc/bin/jemalloc-config.in
jemalloc/bin/jemalloc-config.in
+0
-83
jemalloc/bin/jemalloc.sh.in
jemalloc/bin/jemalloc.sh.in
+0
-9
jemalloc/bin/jeprof.in
jemalloc/bin/jeprof.in
+0
-5622
jemalloc/build-aux/config.guess
jemalloc/build-aux/config.guess
+0
-1462
jemalloc/build-aux/config.sub
jemalloc/build-aux/config.sub
+0
-1825
jemalloc/build-aux/install-sh
jemalloc/build-aux/install-sh
+0
-250
jemalloc/config.stamp.in
jemalloc/config.stamp.in
+0
-0
jemalloc/configure.ac
jemalloc/configure.ac
+0
-2194
jemalloc/doc/html.xsl.in
jemalloc/doc/html.xsl.in
+0
-5
jemalloc/doc/jemalloc.xml.in
jemalloc/doc/jemalloc.xml.in
+0
-3255
jemalloc/doc/manpages.xsl.in
jemalloc/doc/manpages.xsl.in
+0
-4
jemalloc/doc/stylesheet.xsl
jemalloc/doc/stylesheet.xsl
+0
-10
jemalloc/include/jemalloc/internal/arena_externs.h
jemalloc/include/jemalloc/internal/arena_externs.h
+0
-97
jemalloc/include/jemalloc/internal/arena_inlines_a.h
jemalloc/include/jemalloc/internal/arena_inlines_a.h
+0
-57
jemalloc/include/jemalloc/internal/arena_inlines_b.h
jemalloc/include/jemalloc/internal/arena_inlines_b.h
+0
-361
jemalloc/include/jemalloc/internal/arena_structs_a.h
jemalloc/include/jemalloc/internal/arena_structs_a.h
+0
-11
jemalloc/include/jemalloc/internal/arena_structs_b.h
jemalloc/include/jemalloc/internal/arena_structs_b.h
+0
-284
jemalloc/include/jemalloc/internal/arena_types.h
jemalloc/include/jemalloc/internal/arena_types.h
+0
-45
jemalloc/include/jemalloc/internal/assert.h
jemalloc/include/jemalloc/internal/assert.h
+0
-56
jemalloc/include/jemalloc/internal/atomic.h
jemalloc/include/jemalloc/internal/atomic.h
+0
-77
jemalloc/include/jemalloc/internal/atomic_c11.h
jemalloc/include/jemalloc/internal/atomic_c11.h
+0
-97
jemalloc/include/jemalloc/internal/atomic_gcc_atomic.h
jemalloc/include/jemalloc/internal/atomic_gcc_atomic.h
+0
-127
jemalloc/include/jemalloc/internal/atomic_gcc_sync.h
jemalloc/include/jemalloc/internal/atomic_gcc_sync.h
+0
-191
jemalloc/include/jemalloc/internal/atomic_msvc.h
jemalloc/include/jemalloc/internal/atomic_msvc.h
+0
-158
jemalloc/include/jemalloc/internal/background_thread_externs.h
...loc/include/jemalloc/internal/background_thread_externs.h
+0
-31
jemalloc/include/jemalloc/internal/background_thread_inlines.h
...loc/include/jemalloc/internal/background_thread_inlines.h
+0
-57
jemalloc/include/jemalloc/internal/background_thread_structs.h
...loc/include/jemalloc/internal/background_thread_structs.h
+0
-52
jemalloc/include/jemalloc/internal/base_externs.h
jemalloc/include/jemalloc/internal/base_externs.h
+0
-19
jemalloc/include/jemalloc/internal/base_inlines.h
jemalloc/include/jemalloc/internal/base_inlines.h
+0
-9
jemalloc/include/jemalloc/internal/base_structs.h
jemalloc/include/jemalloc/internal/base_structs.h
+0
-55
jemalloc/include/jemalloc/internal/base_types.h
jemalloc/include/jemalloc/internal/base_types.h
+0
-7
jemalloc/include/jemalloc/internal/bit_util.h
jemalloc/include/jemalloc/internal/bit_util.h
+0
-165
jemalloc/include/jemalloc/internal/bitmap.h
jemalloc/include/jemalloc/internal/bitmap.h
+0
-369
jemalloc/include/jemalloc/internal/ckh.h
jemalloc/include/jemalloc/internal/ckh.h
+0
-101
jemalloc/include/jemalloc/internal/ctl.h
jemalloc/include/jemalloc/internal/ctl.h
+0
-130
jemalloc/include/jemalloc/internal/extent_dss.h
jemalloc/include/jemalloc/internal/extent_dss.h
+0
-26
jemalloc/include/jemalloc/internal/extent_externs.h
jemalloc/include/jemalloc/internal/extent_externs.h
+0
-72
jemalloc/include/jemalloc/internal/extent_inlines.h
jemalloc/include/jemalloc/internal/extent_inlines.h
+0
-407
jemalloc/include/jemalloc/internal/extent_mmap.h
jemalloc/include/jemalloc/internal/extent_mmap.h
+0
-10
jemalloc/include/jemalloc/internal/extent_structs.h
jemalloc/include/jemalloc/internal/extent_structs.h
+0
-199
jemalloc/include/jemalloc/internal/extent_types.h
jemalloc/include/jemalloc/internal/extent_types.h
+0
-9
jemalloc/include/jemalloc/internal/hash.h
jemalloc/include/jemalloc/internal/hash.h
+0
-318
jemalloc/include/jemalloc/internal/hooks.h
jemalloc/include/jemalloc/internal/hooks.h
+0
-19
jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
+0
-82
jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h.in
...loc/include/jemalloc/internal/jemalloc_internal_defs.h.in
+0
-339
jemalloc/include/jemalloc/internal/jemalloc_internal_externs.h
...loc/include/jemalloc/internal/jemalloc_internal_externs.h
+0
-53
jemalloc/include/jemalloc/internal/jemalloc_internal_includes.h
...oc/include/jemalloc/internal/jemalloc_internal_includes.h
+0
-94
jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_a.h
...c/include/jemalloc/internal/jemalloc_internal_inlines_a.h
+0
-171
jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_b.h
...c/include/jemalloc/internal/jemalloc_internal_inlines_b.h
+0
-86
jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h
...c/include/jemalloc/internal/jemalloc_internal_inlines_c.h
+0
-197
jemalloc/include/jemalloc/internal/jemalloc_internal_macros.h
...lloc/include/jemalloc/internal/jemalloc_internal_macros.h
+0
-40
jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
+0
-178
jemalloc/include/jemalloc/internal/jemalloc_preamble.h.in
jemalloc/include/jemalloc/internal/jemalloc_preamble.h.in
+0
-179
jemalloc/include/jemalloc/internal/large_externs.h
jemalloc/include/jemalloc/internal/large_externs.h
+0
-26
jemalloc/include/jemalloc/internal/malloc_io.h
jemalloc/include/jemalloc/internal/malloc_io.h
+0
-62
jemalloc/include/jemalloc/internal/mutex.h
jemalloc/include/jemalloc/internal/mutex.h
+0
-248
jemalloc/include/jemalloc/internal/mutex_pool.h
jemalloc/include/jemalloc/internal/mutex_pool.h
+0
-94
jemalloc/include/jemalloc/internal/mutex_prof.h
jemalloc/include/jemalloc/internal/mutex_prof.h
+0
-86
jemalloc/include/jemalloc/internal/nstime.h
jemalloc/include/jemalloc/internal/nstime.h
+0
-34
jemalloc/include/jemalloc/internal/pages.h
jemalloc/include/jemalloc/internal/pages.h
+0
-71
jemalloc/include/jemalloc/internal/ph.h
jemalloc/include/jemalloc/internal/ph.h
+0
-391
jemalloc/include/jemalloc/internal/private_namespace.sh
jemalloc/include/jemalloc/internal/private_namespace.sh
+0
-5
jemalloc/include/jemalloc/internal/private_symbols.sh
jemalloc/include/jemalloc/internal/private_symbols.sh
+0
-51
jemalloc/include/jemalloc/internal/prng.h
jemalloc/include/jemalloc/internal/prng.h
+0
-185
jemalloc/include/jemalloc/internal/prof_externs.h
jemalloc/include/jemalloc/internal/prof_externs.h
+0
-92
jemalloc/include/jemalloc/internal/prof_inlines_a.h
jemalloc/include/jemalloc/internal/prof_inlines_a.h
+0
-72
jemalloc/include/jemalloc/internal/prof_inlines_b.h
jemalloc/include/jemalloc/internal/prof_inlines_b.h
+0
-217
jemalloc/include/jemalloc/internal/prof_structs.h
jemalloc/include/jemalloc/internal/prof_structs.h
+0
-201
jemalloc/include/jemalloc/internal/prof_types.h
jemalloc/include/jemalloc/internal/prof_types.h
+0
-56
jemalloc/include/jemalloc/internal/public_namespace.sh
jemalloc/include/jemalloc/internal/public_namespace.sh
+0
-6
jemalloc/include/jemalloc/internal/public_unnamespace.sh
jemalloc/include/jemalloc/internal/public_unnamespace.sh
+0
-6
jemalloc/include/jemalloc/internal/ql.h
jemalloc/include/jemalloc/internal/ql.h
+0
-88
jemalloc/include/jemalloc/internal/qr.h
jemalloc/include/jemalloc/internal/qr.h
+0
-72
jemalloc/include/jemalloc/internal/rb.h
jemalloc/include/jemalloc/internal/rb.h
+0
-1006
jemalloc/include/jemalloc/internal/rtree.h
jemalloc/include/jemalloc/internal/rtree.h
+0
-474
jemalloc/include/jemalloc/internal/rtree_tsd.h
jemalloc/include/jemalloc/internal/rtree_tsd.h
+0
-50
jemalloc/include/jemalloc/internal/size_classes.sh
jemalloc/include/jemalloc/internal/size_classes.sh
+0
-361
jemalloc/include/jemalloc/internal/smoothstep.h
jemalloc/include/jemalloc/internal/smoothstep.h
+0
-232
jemalloc/include/jemalloc/internal/smoothstep.sh
jemalloc/include/jemalloc/internal/smoothstep.sh
+0
-101
jemalloc/include/jemalloc/internal/spin.h
jemalloc/include/jemalloc/internal/spin.h
+0
-36
jemalloc/include/jemalloc/internal/stats.h
jemalloc/include/jemalloc/internal/stats.h
+0
-164
jemalloc/include/jemalloc/internal/stats_tsd.h
jemalloc/include/jemalloc/internal/stats_tsd.h
+0
-12
jemalloc/include/jemalloc/internal/sz.h
jemalloc/include/jemalloc/internal/sz.h
+0
-317
jemalloc/include/jemalloc/internal/tcache_externs.h
jemalloc/include/jemalloc/internal/tcache_externs.h
+0
-55
jemalloc/include/jemalloc/internal/tcache_inlines.h
jemalloc/include/jemalloc/internal/tcache_inlines.h
+0
-250
jemalloc/include/jemalloc/internal/tcache_structs.h
jemalloc/include/jemalloc/internal/tcache_structs.h
+0
-64
jemalloc/include/jemalloc/internal/tcache_types.h
jemalloc/include/jemalloc/internal/tcache_types.h
+0
-61
jemalloc/include/jemalloc/internal/ticker.h
jemalloc/include/jemalloc/internal/ticker.h
+0
-50
jemalloc/include/jemalloc/internal/tsd.h
jemalloc/include/jemalloc/internal/tsd.h
+0
-324
jemalloc/include/jemalloc/internal/tsd_generic.h
jemalloc/include/jemalloc/internal/tsd_generic.h
+0
-157
jemalloc/include/jemalloc/internal/tsd_malloc_thread_cleanup.h
...loc/include/jemalloc/internal/tsd_malloc_thread_cleanup.h
+0
-60
jemalloc/include/jemalloc/internal/tsd_tls.h
jemalloc/include/jemalloc/internal/tsd_tls.h
+0
-59
jemalloc/include/jemalloc/internal/tsd_types.h
jemalloc/include/jemalloc/internal/tsd_types.h
+0
-10
jemalloc/include/jemalloc/internal/tsd_win.h
jemalloc/include/jemalloc/internal/tsd_win.h
+0
-139
jemalloc/include/jemalloc/internal/util.h
jemalloc/include/jemalloc/internal/util.h
+0
-67
jemalloc/include/jemalloc/internal/witness.h
jemalloc/include/jemalloc/internal/witness.h
+0
-346
jemalloc/include/jemalloc/jemalloc.sh
jemalloc/include/jemalloc/jemalloc.sh
+0
-27
jemalloc/include/jemalloc/jemalloc_defs.h.in
jemalloc/include/jemalloc/jemalloc_defs.h.in
+0
-45
jemalloc/include/jemalloc/jemalloc_macros.h.in
jemalloc/include/jemalloc/jemalloc_macros.h.in
+0
-122
jemalloc/include/jemalloc/jemalloc_mangle.sh
jemalloc/include/jemalloc/jemalloc_mangle.sh
+0
-45
jemalloc/include/jemalloc/jemalloc_protos.h.in
jemalloc/include/jemalloc/jemalloc_protos.h.in
+0
-66
jemalloc/include/jemalloc/jemalloc_rename.sh
jemalloc/include/jemalloc/jemalloc_rename.sh
+0
-22
jemalloc/include/jemalloc/jemalloc_typedefs.h.in
jemalloc/include/jemalloc/jemalloc_typedefs.h.in
+0
-77
jemalloc/include/msvc_compat/C99/stdbool.h
jemalloc/include/msvc_compat/C99/stdbool.h
+0
-20
jemalloc/include/msvc_compat/C99/stdint.h
jemalloc/include/msvc_compat/C99/stdint.h
+0
-247
jemalloc/include/msvc_compat/strings.h
jemalloc/include/msvc_compat/strings.h
+0
-58
jemalloc/include/msvc_compat/windows_extra.h
jemalloc/include/msvc_compat/windows_extra.h
+0
-6
jemalloc/jemalloc.pc.in
jemalloc/jemalloc.pc.in
+0
-12
jemalloc/m4/ax_cxx_compile_stdcxx.m4
jemalloc/m4/ax_cxx_compile_stdcxx.m4
+0
-562
jemalloc/msvc/ReadMe.txt
jemalloc/msvc/ReadMe.txt
+0
-24
jemalloc/msvc/jemalloc_vc2015.sln
jemalloc/msvc/jemalloc_vc2015.sln
+0
-63
jemalloc/msvc/projects/vc2015/jemalloc/jemalloc.vcxproj
jemalloc/msvc/projects/vc2015/jemalloc/jemalloc.vcxproj
+0
-346
jemalloc/msvc/projects/vc2015/jemalloc/jemalloc.vcxproj.filters
...oc/msvc/projects/vc2015/jemalloc/jemalloc.vcxproj.filters
+0
-95
jemalloc/msvc/projects/vc2015/test_threads/test_threads.cpp
jemalloc/msvc/projects/vc2015/test_threads/test_threads.cpp
+0
-88
jemalloc/msvc/projects/vc2015/test_threads/test_threads.h
jemalloc/msvc/projects/vc2015/test_threads/test_threads.h
+0
-3
jemalloc/msvc/projects/vc2015/test_threads/test_threads.vcxproj
...oc/msvc/projects/vc2015/test_threads/test_threads.vcxproj
+0
-327
jemalloc/msvc/projects/vc2015/test_threads/test_threads.vcxproj.filters
...projects/vc2015/test_threads/test_threads.vcxproj.filters
+0
-26
jemalloc/msvc/projects/vc2015/test_threads/test_threads_main.cpp
...c/msvc/projects/vc2015/test_threads/test_threads_main.cpp
+0
-11
jemalloc/run_tests.sh
jemalloc/run_tests.sh
+0
-1
jemalloc/scripts/gen_run_tests.py
jemalloc/scripts/gen_run_tests.py
+0
-100
jemalloc/scripts/gen_travis.py
jemalloc/scripts/gen_travis.py
+0
-107
jemalloc/src/arena.c
jemalloc/src/arena.c
+0
-2179
jemalloc/src/background_thread.c
jemalloc/src/background_thread.c
+0
-880
jemalloc/src/base.c
jemalloc/src/base.c
+0
-402
jemalloc/src/bitmap.c
jemalloc/src/bitmap.c
+0
-121
jemalloc/src/ckh.c
jemalloc/src/ckh.c
+0
-569
jemalloc/src/ctl.c
jemalloc/src/ctl.c
+0
-2698
jemalloc/src/extent.c
jemalloc/src/extent.c
+0
-1987
jemalloc/src/extent_dss.c
jemalloc/src/extent_dss.c
+0
-269
jemalloc/src/extent_mmap.c
jemalloc/src/extent_mmap.c
+0
-42
jemalloc/src/hash.c
jemalloc/src/hash.c
+0
-3
jemalloc/src/hooks.c
jemalloc/src/hooks.c
+0
-12
jemalloc/src/jemalloc.c
jemalloc/src/jemalloc.c
+0
-3154
jemalloc/src/jemalloc_cpp.cpp
jemalloc/src/jemalloc_cpp.cpp
+0
-132
jemalloc/src/large.c
jemalloc/src/large.c
+0
-371
jemalloc/src/malloc_io.c
jemalloc/src/malloc_io.c
+0
-689
jemalloc/src/mutex.c
jemalloc/src/mutex.c
+0
-223
jemalloc/src/mutex_pool.c
jemalloc/src/mutex_pool.c
+0
-18
jemalloc/src/nstime.c
jemalloc/src/nstime.c
+0
-170
jemalloc/src/pages.c
jemalloc/src/pages.c
+0
-422
jemalloc/src/prng.c
jemalloc/src/prng.c
+0
-3
jemalloc/src/prof.c
jemalloc/src/prof.c
+0
-2464
jemalloc/src/rtree.c
jemalloc/src/rtree.c
+0
-320
jemalloc/src/spin.c
jemalloc/src/spin.c
+0
-4
jemalloc/src/stats.c
jemalloc/src/stats.c
+0
-1285
jemalloc/src/sz.c
jemalloc/src/sz.c
+0
-106
jemalloc/src/tcache.c
jemalloc/src/tcache.c
+0
-708
jemalloc/src/ticker.c
jemalloc/src/ticker.c
+0
-3
jemalloc/src/tsd.c
jemalloc/src/tsd.c
+0
-341
jemalloc/src/witness.c
jemalloc/src/witness.c
+0
-100
jemalloc/src/zone.c
jemalloc/src/zone.c
+0
-451
jemalloc/test/include/test/SFMT-alti.h
jemalloc/test/include/test/SFMT-alti.h
+0
-186
jemalloc/test/include/test/SFMT-params.h
jemalloc/test/include/test/SFMT-params.h
+0
-132
jemalloc/test/include/test/SFMT-params11213.h
jemalloc/test/include/test/SFMT-params11213.h
+0
-81
jemalloc/test/include/test/SFMT-params1279.h
jemalloc/test/include/test/SFMT-params1279.h
+0
-81
jemalloc/test/include/test/SFMT-params132049.h
jemalloc/test/include/test/SFMT-params132049.h
+0
-81
jemalloc/test/include/test/SFMT-params19937.h
jemalloc/test/include/test/SFMT-params19937.h
+0
-81
jemalloc/test/include/test/SFMT-params216091.h
jemalloc/test/include/test/SFMT-params216091.h
+0
-81
jemalloc/test/include/test/SFMT-params2281.h
jemalloc/test/include/test/SFMT-params2281.h
+0
-81
jemalloc/test/include/test/SFMT-params4253.h
jemalloc/test/include/test/SFMT-params4253.h
+0
-81
jemalloc/test/include/test/SFMT-params44497.h
jemalloc/test/include/test/SFMT-params44497.h
+0
-81
jemalloc/test/include/test/SFMT-params607.h
jemalloc/test/include/test/SFMT-params607.h
+0
-81
jemalloc/test/include/test/SFMT-params86243.h
jemalloc/test/include/test/SFMT-params86243.h
+0
-81
jemalloc/test/include/test/SFMT-sse2.h
jemalloc/test/include/test/SFMT-sse2.h
+0
-157
jemalloc/test/include/test/SFMT.h
jemalloc/test/include/test/SFMT.h
+0
-146
jemalloc/test/include/test/btalloc.h
jemalloc/test/include/test/btalloc.h
+0
-30
jemalloc/test/include/test/extent_hooks.h
jemalloc/test/include/test/extent_hooks.h
+0
-287
jemalloc/test/include/test/jemalloc_test.h.in
jemalloc/test/include/test/jemalloc_test.h.in
+0
-173
jemalloc/test/include/test/jemalloc_test_defs.h.in
jemalloc/test/include/test/jemalloc_test_defs.h.in
+0
-9
jemalloc/test/include/test/math.h
jemalloc/test/include/test/math.h
+0
-306
jemalloc/test/include/test/mq.h
jemalloc/test/include/test/mq.h
+0
-107
jemalloc/test/include/test/mtx.h
jemalloc/test/include/test/mtx.h
+0
-23
jemalloc/test/include/test/test.h
jemalloc/test/include/test/test.h
+0
-338
jemalloc/test/include/test/thd.h
jemalloc/test/include/test/thd.h
+0
-9
jemalloc/test/include/test/timer.h
jemalloc/test/include/test/timer.h
+0
-11
jemalloc/test/integration/MALLOCX_ARENA.c
jemalloc/test/integration/MALLOCX_ARENA.c
+0
-66
jemalloc/test/integration/aligned_alloc.c
jemalloc/test/integration/aligned_alloc.c
+0
-133
jemalloc/test/integration/allocated.c
jemalloc/test/integration/allocated.c
+0
-124
jemalloc/test/integration/extent.c
jemalloc/test/integration/extent.c
+0
-193
jemalloc/test/integration/extent.sh
jemalloc/test/integration/extent.sh
+0
-5
jemalloc/test/integration/mallocx.c
jemalloc/test/integration/mallocx.c
+0
-220
jemalloc/test/integration/mallocx.sh
jemalloc/test/integration/mallocx.sh
+0
-5
jemalloc/test/integration/overflow.c
jemalloc/test/integration/overflow.c
+0
-46
jemalloc/test/integration/posix_memalign.c
jemalloc/test/integration/posix_memalign.c
+0
-127
jemalloc/test/integration/rallocx.c
jemalloc/test/integration/rallocx.c
+0
-245
jemalloc/test/integration/sdallocx.c
jemalloc/test/integration/sdallocx.c
+0
-55
jemalloc/test/integration/thread_arena.c
jemalloc/test/integration/thread_arena.c
+0
-86
jemalloc/test/integration/thread_tcache_enabled.c
jemalloc/test/integration/thread_tcache_enabled.c
+0
-89
jemalloc/test/integration/xallocx.c
jemalloc/test/integration/xallocx.c
+0
-384
jemalloc/test/integration/xallocx.sh
jemalloc/test/integration/xallocx.sh
+0
-5
jemalloc/test/src/SFMT.c
jemalloc/test/src/SFMT.c
+0
-719
jemalloc/test/src/btalloc.c
jemalloc/test/src/btalloc.c
+0
-6
jemalloc/test/src/btalloc_0.c
jemalloc/test/src/btalloc_0.c
+0
-3
jemalloc/test/src/btalloc_1.c
jemalloc/test/src/btalloc_1.c
+0
-3
jemalloc/test/src/math.c
jemalloc/test/src/math.c
+0
-2
jemalloc/test/src/mq.c
jemalloc/test/src/mq.c
+0
-27
jemalloc/test/src/mtx.c
jemalloc/test/src/mtx.c
+0
-68
jemalloc/test/src/test.c
jemalloc/test/src/test.c
+0
-217
jemalloc/test/src/thd.c
jemalloc/test/src/thd.c
+0
-34
jemalloc/test/src/timer.c
jemalloc/test/src/timer.c
+0
-56
jemalloc/test/stress/microbench.c
jemalloc/test/stress/microbench.c
+0
-165
jemalloc/test/test.sh.in
jemalloc/test/test.sh.in
+0
-80
jemalloc/test/unit/SFMT.c
jemalloc/test/unit/SFMT.c
+0
-1599
jemalloc/test/unit/a0.c
jemalloc/test/unit/a0.c
+0
-16
jemalloc/test/unit/arena_reset.c
jemalloc/test/unit/arena_reset.c
+0
-344
jemalloc/test/unit/arena_reset_prof.c
jemalloc/test/unit/arena_reset_prof.c
+0
-4
jemalloc/test/unit/arena_reset_prof.sh
jemalloc/test/unit/arena_reset_prof.sh
+0
-3
jemalloc/test/unit/atomic.c
jemalloc/test/unit/atomic.c
+0
-229
jemalloc/test/unit/background_thread.c
jemalloc/test/unit/background_thread.c
+0
-119
jemalloc/test/unit/base.c
jemalloc/test/unit/base.c
+0
-222
jemalloc/test/unit/bit_util.c
jemalloc/test/unit/bit_util.c
+0
-57
jemalloc/test/unit/bitmap.c
jemalloc/test/unit/bitmap.c
+0
-431
jemalloc/test/unit/ckh.c
jemalloc/test/unit/ckh.c
+0
-211
jemalloc/test/unit/decay.c
jemalloc/test/unit/decay.c
+0
-599
jemalloc/test/unit/decay.sh
jemalloc/test/unit/decay.sh
+0
-3
jemalloc/test/unit/extent_quantize.c
jemalloc/test/unit/extent_quantize.c
+0
-141
jemalloc/test/unit/fork.c
jemalloc/test/unit/fork.c
+0
-75
jemalloc/test/unit/hash.c
jemalloc/test/unit/hash.c
+0
-173
jemalloc/test/unit/hooks.c
jemalloc/test/unit/hooks.c
+0
-38
jemalloc/test/unit/junk.c
jemalloc/test/unit/junk.c
+0
-141
jemalloc/test/unit/junk.sh
jemalloc/test/unit/junk.sh
+0
-5
jemalloc/test/unit/junk_alloc.c
jemalloc/test/unit/junk_alloc.c
+0
-1
jemalloc/test/unit/junk_alloc.sh
jemalloc/test/unit/junk_alloc.sh
+0
-5
jemalloc/test/unit/junk_free.c
jemalloc/test/unit/junk_free.c
+0
-1
jemalloc/test/unit/junk_free.sh
jemalloc/test/unit/junk_free.sh
+0
-5
jemalloc/test/unit/mallctl.c
jemalloc/test/unit/mallctl.c
+0
-735
jemalloc/test/unit/malloc_io.c
jemalloc/test/unit/malloc_io.c
+0
-258
jemalloc/test/unit/math.c
jemalloc/test/unit/math.c
+0
-390
jemalloc/test/unit/mq.c
jemalloc/test/unit/mq.c
+0
-89
jemalloc/test/unit/mtx.c
jemalloc/test/unit/mtx.c
+0
-57
jemalloc/test/unit/nstime.c
jemalloc/test/unit/nstime.c
+0
-249
jemalloc/test/unit/pack.c
jemalloc/test/unit/pack.c
+0
-160
jemalloc/test/unit/pack.sh
jemalloc/test/unit/pack.sh
+0
-4
jemalloc/test/unit/pages.c
jemalloc/test/unit/pages.c
+0
-27
jemalloc/test/unit/ph.c
jemalloc/test/unit/ph.c
+0
-318
jemalloc/test/unit/prng.c
jemalloc/test/unit/prng.c
+0
-237
jemalloc/test/unit/prof_accum.c
jemalloc/test/unit/prof_accum.c
+0
-81
jemalloc/test/unit/prof_accum.sh
jemalloc/test/unit/prof_accum.sh
+0
-5
jemalloc/test/unit/prof_active.c
jemalloc/test/unit/prof_active.c
+0
-117
jemalloc/test/unit/prof_active.sh
jemalloc/test/unit/prof_active.sh
+0
-5
jemalloc/test/unit/prof_gdump.c
jemalloc/test/unit/prof_gdump.c
+0
-74
jemalloc/test/unit/prof_gdump.sh
jemalloc/test/unit/prof_gdump.sh
+0
-6
jemalloc/test/unit/prof_idump.c
jemalloc/test/unit/prof_idump.c
+0
-42
jemalloc/test/unit/prof_idump.sh
jemalloc/test/unit/prof_idump.sh
+0
-8
jemalloc/test/unit/prof_reset.c
jemalloc/test/unit/prof_reset.c
+0
-286
jemalloc/test/unit/prof_reset.sh
jemalloc/test/unit/prof_reset.sh
+0
-5
jemalloc/test/unit/prof_tctx.c
jemalloc/test/unit/prof_tctx.c
+0
-46
jemalloc/test/unit/prof_tctx.sh
jemalloc/test/unit/prof_tctx.sh
+0
-5
jemalloc/test/unit/prof_thread_name.c
jemalloc/test/unit/prof_thread_name.c
+0
-120
jemalloc/test/unit/prof_thread_name.sh
jemalloc/test/unit/prof_thread_name.sh
+0
-5
jemalloc/test/unit/ql.c
jemalloc/test/unit/ql.c
+0
-204
jemalloc/test/unit/qr.c
jemalloc/test/unit/qr.c
+0
-243
jemalloc/test/unit/rb.c
jemalloc/test/unit/rb.c
+0
-355
jemalloc/test/unit/retained.c
jemalloc/test/unit/retained.c
+0
-181
jemalloc/test/unit/rtree.c
jemalloc/test/unit/rtree.c
+0
-227
jemalloc/test/unit/size_classes.c
jemalloc/test/unit/size_classes.c
+0
-183
jemalloc/test/unit/slab.c
jemalloc/test/unit/slab.c
+0
-32
jemalloc/test/unit/smoothstep.c
jemalloc/test/unit/smoothstep.c
+0
-102
jemalloc/test/unit/spin.c
jemalloc/test/unit/spin.c
+0
-18
jemalloc/test/unit/stats.c
jemalloc/test/unit/stats.c
+0
-368
jemalloc/test/unit/stats_print.c
jemalloc/test/unit/stats_print.c
+0
-999
jemalloc/test/unit/ticker.c
jemalloc/test/unit/ticker.c
+0
-73
jemalloc/test/unit/tsd.c
jemalloc/test/unit/tsd.c
+0
-139
jemalloc/test/unit/witness.c
jemalloc/test/unit/witness.c
+0
-280
jemalloc/test/unit/zero.c
jemalloc/test/unit/zero.c
+0
-59
jemalloc/test/unit/zero.sh
jemalloc/test/unit/zero.sh
+0
-5
src/Makefile.am
src/Makefile.am
+2
-6
src/area/Makefile.am
src/area/Makefile.am
+6
-9
src/area/area.c
src/area/area.c
+33
-53
src/area/area_linux.c
src/area/area_linux.c
+0
-246
src/area/area_linux_manager.c
src/area/area_linux_manager.c
+0
-52
src/area/area_linux_mbind.c
src/area/area_linux_mbind.c
+0
-103
src/area/area_linux_mmap.c
src/area/area_linux_mmap.c
+0
-85
src/area/area_posix.c
src/area/area_posix.c
+0
-136
src/area/linux.c
src/area/linux.c
+220
-0
src/arena/Makefile.am
src/arena/Makefile.am
+0
-12
src/arena/arena.c
src/arena/arena.c
+0
-62
src/arena/arena_jemalloc.c
src/arena/arena_jemalloc.c
+0
-336
src/dma/Makefile.am
src/dma/Makefile.am
+1
-0
src/scratch/scratch_par.c
src/scratch/scratch_par.c
+7
-3
src/scratch/scratch_seq.c
src/scratch/scratch_seq.c
+7
-4
src/utils/bitmap.c
src/utils/bitmap.c
+94
-3
tests/Makefile.am
tests/Makefile.am
+3
-11
tests/area/test_area.c
tests/area/test_area.c
+41
-0
tests/area/test_linux.c
tests/area/test_linux.c
+58
-78
tests/area/test_manager.c
tests/area/test_manager.c
+0
-61
tests/area/test_mmap.c
tests/area/test_mmap.c
+0
-79
tests/area/test_posix.c
tests/area/test_posix.c
+0
-75
tests/arena/test_jemalloc.c
tests/arena/test_jemalloc.c
+0
-88
tests/dma/test_dma_linux_par.c
tests/dma/test_dma_linux_par.c
+5
-14
tests/dma/test_dma_linux_seq.c
tests/dma/test_dma_linux_seq.c
+5
-14
tests/scratch/test_scratch_par.c
tests/scratch/test_scratch_par.c
+5
-14
tests/scratch/test_scratch_seq.c
tests/scratch/test_scratch_seq.c
+5
-14
tests/utils/test_bitmap.c
tests/utils/test_bitmap.c
+71
-0
No files found.
Makefile.am
View file @
4d0fa3d6
ACLOCAL_AMFLAGS
=
-I
m4
SUBDIRS
=
jemalloc
src include tests
SUBDIRS
=
src include tests
if
ADD_BENCHMARKS
SUBDIRS
+=
benchmarks
...
...
@@ -8,12 +8,4 @@ endif
pkgconfigdir
=
$(libdir)
/pkgconfig
pkgconfig_DATA
=
aml.pc
# remove jemalloc tests from make check
check-recursive
:
$(MAKE)
-C
tests check
install-recursive
:
$(MAKE)
-C
src
install
$(MAKE)
install-am
EXTRA_DIST
=
autogen.sh aml.pc README.markdown
autogen.sh
View file @
4d0fa3d6
#!/bin/sh
set
-ex
# jemalloc
(
cd
jemalloc
;
./autogen.sh
)
# aml
mkdir
-p
build-aux
aclocal
-I
m4
autoheader
libtoolize
automake
--add-missing
--copy
autoconf
autoreconf
-fi
benchmarks/dgemm_mkl.c
View file @
4d0fa3d6
...
...
@@ -9,6 +9,7 @@
*******************************************************************************/
#include "aml.h"
#include "aml/area/linux.h"
#include <assert.h>
#include <errno.h>
#include <mkl.h>
...
...
@@ -22,35 +23,27 @@
int
main
(
int
argc
,
char
*
argv
[])
{
AML_ARENA_JEMALLOC_DECL
(
arns
);
AML_ARENA_JEMALLOC_DECL
(
arnf
);
AML_AREA_LINUX_DECL
(
slow
);
AML_AREA_LINUX_DECL
(
fast
);
struct
bitmask
*
slowb
,
*
fastb
;
struct
aml_area
*
slow
,
*
fast
;
struct
aml_bitmap
slowb
,
fastb
;
struct
timespec
start
,
stop
;
double
*
a
,
*
b
,
*
c
;
aml_init
(
&
argc
,
&
argv
);
assert
(
argc
==
4
);
fastb
=
numa_parse_nodestring_all
(
argv
[
1
]
);
slowb
=
numa_parse_nodestring_all
(
argv
[
2
]
);
assert
(
aml_bitmap_from_string
(
&
fastb
,
argv
[
1
])
==
0
);
assert
(
aml_bitmap_from_string
(
&
slowb
,
argv
[
2
])
==
0
);
long
int
N
=
atol
(
argv
[
3
]);
unsigned
long
memsize
=
sizeof
(
double
)
*
N
*
N
;
assert
(
!
aml_arena_jemalloc_init
(
&
arns
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
slow
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arns
,
MPOL_BIND
,
slowb
->
maskp
));
assert
(
!
aml_arena_jemalloc_init
(
&
arnf
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
fast
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arnf
,
MPOL_BIND
,
fastb
->
maskp
));
a
=
aml_area_malloc
(
&
slow
,
memsize
);
b
=
aml_area_malloc
(
&
slow
,
memsize
);
c
=
aml_area_malloc
(
&
fast
,
memsize
);
slow
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
slowb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
slow
!=
NULL
);
fast
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
fastb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
fast
!=
NULL
);
a
=
aml_area_mmap
(
slow
,
NULL
,
memsize
);
b
=
aml_area_mmap
(
slow
,
NULL
,
memsize
);
c
=
aml_area_mmap
(
fast
,
NULL
,
memsize
);
assert
(
a
!=
NULL
&&
b
!=
NULL
&&
c
!=
NULL
);
double
alpha
=
1
.
0
,
beta
=
1
.
0
;
...
...
@@ -69,11 +62,11 @@ int main(int argc, char *argv[])
double
flops
=
(
2
.
0
*
N
*
N
*
N
)
/
(
time
/
1e9
);
/* print the flops in GFLOPS */
printf
(
"dgemm-mkl: %llu %lld %lld %f
\n
"
,
N
,
memsize
,
time
,
flops
/
1e9
);
aml_area_
free
(
&
slow
,
a
);
aml_area_
free
(
&
slow
,
b
);
aml_area_
free
(
&
fast
,
c
);
aml_area_linux_destroy
(
&
slow
);
aml_area_linux_destroy
(
&
fast
);
aml_area_
munmap
(
slow
,
a
,
memsize
);
aml_area_
munmap
(
slow
,
b
,
memsize
);
aml_area_
munmap
(
fast
,
c
,
memsize
);
aml_area_linux_destroy
(
slow
);
aml_area_linux_destroy
(
fast
);
aml_finalize
();
return
0
;
}
benchmarks/dgemm_noprefetch.c
View file @
4d0fa3d6
...
...
@@ -9,6 +9,7 @@
*******************************************************************************/
#include "aml.h"
#include "aml/area/linux.h"
#include <assert.h>
#include <errno.h>
#include <mkl.h>
...
...
@@ -21,9 +22,7 @@
AML_TILING_2D_ROWMAJOR_DECL
(
tiling_row
);
AML_TILING_2D_COLMAJOR_DECL
(
tiling_col
);
AML_AREA_LINUX_DECL
(
slow
);
AML_AREA_LINUX_DECL
(
fast
);
struct
aml_area
*
slow
,
*
fast
;
size_t
memsize
,
tilesize
,
N
,
T
;
double
*
a
,
*
b
,
*
c
;
struct
timespec
start
,
stop
;
...
...
@@ -59,13 +58,11 @@ void do_work()
int
main
(
int
argc
,
char
*
argv
[])
{
AML_ARENA_JEMALLOC_DECL
(
arns
);
AML_ARENA_JEMALLOC_DECL
(
arnf
);
struct
bitmask
*
slowb
,
*
fastb
;
struct
aml_bitmap
slowb
,
fastb
;
aml_init
(
&
argc
,
&
argv
);
assert
(
argc
==
5
);
fastb
=
numa_parse_nodestring_all
(
argv
[
1
]
);
slowb
=
numa_parse_nodestring_all
(
argv
[
2
]
);
assert
(
aml_bitmap_from_string
(
&
fastb
,
argv
[
1
])
==
0
);
assert
(
aml_bitmap_from_string
(
&
slowb
,
argv
[
2
])
==
0
);
N
=
atol
(
argv
[
3
]);
T
=
atol
(
argv
[
4
]);
/* let's not handle messy tile sizes */
...
...
@@ -79,22 +76,17 @@ int main(int argc, char* argv[])
assert
(
!
aml_tiling_init
(
&
tiling_col
,
AML_TILING_TYPE_2D_COLMAJOR
,
tilesize
,
memsize
,
N
/
T
,
N
/
T
));
assert
(
!
aml_arena_jemalloc_init
(
&
arns
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
slow
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arns
,
MPOL_BIND
,
slowb
->
maskp
));
assert
(
!
aml_arena_jemalloc_init
(
&
arnf
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
fast
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arnf
,
MPOL_BIND
,
fastb
->
maskp
));
slow
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
slowb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
slow
!=
NULL
);
fast
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
fastb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
fast
!=
NULL
);
/* allocation */
a
=
aml_area_m
alloc
(
&
slow
,
memsize
);
b
=
aml_area_m
alloc
(
&
slow
,
memsize
);
c
=
aml_area_m
alloc
(
&
fast
,
memsize
);
a
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
b
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
c
=
aml_area_m
map
(
fast
,
NULL
,
memsize
);
assert
(
a
!=
NULL
&&
b
!=
NULL
&&
c
!=
NULL
);
size_t
ntilerows
,
ntilecols
,
tilerowsize
,
tilecolsize
,
rowsize
,
colsize
;
...
...
@@ -158,11 +150,11 @@ int main(int argc, char* argv[])
/* print the flops in GFLOPS */
printf
(
"dgemm-noprefetch: %llu %lld %lld %f
\n
"
,
N
,
memsize
,
time
,
flops
/
1e9
);
aml_area_
free
(
&
slow
,
a
);
aml_area_
free
(
&
slow
,
b
);
aml_area_
free
(
&
fast
,
c
);
aml_area_linux_destroy
(
&
slow
);
aml_area_linux_destroy
(
&
fast
);
aml_area_
munmap
(
slow
,
a
,
memsize
);
aml_area_
munmap
(
slow
,
b
,
memsize
);
aml_area_
munmap
(
fast
,
c
,
memsize
);
aml_area_linux_destroy
(
slow
);
aml_area_linux_destroy
(
fast
);
aml_tiling_destroy
(
&
tiling_row
,
AML_TILING_TYPE_2D_ROWMAJOR
);
aml_tiling_destroy
(
&
tiling_col
,
AML_TILING_TYPE_2D_ROWMAJOR
);
aml_finalize
();
...
...
benchmarks/dgemm_prefetch.c
View file @
4d0fa3d6
...
...
@@ -9,6 +9,7 @@
*******************************************************************************/
#include "aml.h"
#include "aml/area/linux.h"
#include "aml/dma/linux-seq.h"
#include "aml/scratch/par.h"
#include <assert.h>
...
...
@@ -24,11 +25,10 @@
AML_TILING_2D_ROWMAJOR_DECL
(
tiling_row
);
AML_TILING_2D_COLMAJOR_DECL
(
tiling_col
);
AML_TILING_1D_DECL
(
tiling_prefetch
);
AML_AREA_LINUX_DECL
(
slow
);
AML_AREA_LINUX_DECL
(
fast
);
AML_SCRATCH_PAR_DECL
(
sa
);
AML_SCRATCH_PAR_DECL
(
sb
);
struct
aml_area
*
slow
,
*
fast
;
size_t
memsize
,
tilesize
,
N
,
T
;
double
*
a
,
*
b
,
*
c
;
struct
timespec
start
,
stop
;
...
...
@@ -81,14 +81,12 @@ void do_work()
int
main
(
int
argc
,
char
*
argv
[])
{
AML_ARENA_JEMALLOC_DECL
(
arns
);
AML_ARENA_JEMALLOC_DECL
(
arnf
);
AML_DMA_LINUX_SEQ_DECL
(
dma
);
struct
bitmask
*
slowb
,
*
fastb
;
struct
aml_bitmap
slowb
,
fastb
;
aml_init
(
&
argc
,
&
argv
);
assert
(
argc
==
5
);
fastb
=
numa_parse_nodestring_all
(
argv
[
1
]
);
slowb
=
numa_parse_nodestring_all
(
argv
[
2
]
);
assert
(
aml_bitmap_from_string
(
&
fastb
,
argv
[
1
])
==
0
);
assert
(
aml_bitmap_from_string
(
&
slowb
,
argv
[
2
])
==
0
);
N
=
atol
(
argv
[
3
]);
T
=
atol
(
argv
[
4
]);
/* let's not handle messy tile sizes */
...
...
@@ -105,25 +103,20 @@ int main(int argc, char* argv[])
assert
(
!
aml_tiling_init
(
&
tiling_prefetch
,
AML_TILING_TYPE_1D
,
tilesize
*
(
N
/
T
),
memsize
));
assert
(
!
aml_arena_jemalloc_init
(
&
arns
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
slow
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arns
,
MPOL_BIND
,
slowb
->
maskp
));
assert
(
!
aml_arena_jemalloc_init
(
&
arnf
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
fast
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arnf
,
MPOL_BIND
,
fastb
->
maskp
));
slow
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
slowb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
slow
!=
NULL
);
fast
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
fastb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
fast
!=
NULL
);
assert
(
!
aml_dma_linux_seq_init
(
&
dma
,
2
));
assert
(
!
aml_scratch_par_init
(
&
sa
,
&
fast
,
&
slow
,
&
dma
,
&
tiling_prefetch
,
(
size_t
)
2
,
(
size_t
)
2
));
assert
(
!
aml_scratch_par_init
(
&
sb
,
&
fast
,
&
slow
,
&
dma
,
&
tiling_prefetch
,
(
size_t
)
2
,
(
size_t
)
2
));
/* allocation */
a
=
aml_area_m
alloc
(
&
slow
,
memsize
);
b
=
aml_area_m
alloc
(
&
slow
,
memsize
);
c
=
aml_area_m
alloc
(
&
fast
,
memsize
);
a
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
b
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
c
=
aml_area_m
map
(
fast
,
NULL
,
memsize
);
assert
(
a
!=
NULL
&&
b
!=
NULL
&&
c
!=
NULL
);
size_t
ntilerows
,
ntilecols
,
tilerowsize
,
tilecolsize
,
rowsize
,
colsize
;
...
...
@@ -190,11 +183,11 @@ int main(int argc, char* argv[])
aml_scratch_par_destroy
(
&
sa
);
aml_scratch_par_destroy
(
&
sb
);
aml_dma_linux_seq_destroy
(
&
dma
);
aml_area_
free
(
&
slow
,
a
);
aml_area_
free
(
&
slow
,
b
);
aml_area_
free
(
&
fast
,
c
);
aml_area_linux_destroy
(
&
slow
);
aml_area_linux_destroy
(
&
fast
);
aml_area_
munmap
(
slow
,
a
,
memsize
);
aml_area_
munmap
(
slow
,
b
,
memsize
);
aml_area_
munmap
(
fast
,
c
,
memsize
);
aml_area_linux_destroy
(
slow
);
aml_area_linux_destroy
(
fast
);
aml_tiling_destroy
(
&
tiling_row
,
AML_TILING_TYPE_2D_ROWMAJOR
);
aml_tiling_destroy
(
&
tiling_col
,
AML_TILING_TYPE_2D_ROWMAJOR
);
aml_tiling_destroy
(
&
tiling_prefetch
,
AML_TILING_TYPE_1D
);
...
...
benchmarks/stream_add_omp.c
View file @
4d0fa3d6
...
...
@@ -12,6 +12,7 @@
#include <errno.h>
#include <omp.h>
#include "aml.h"
#include "aml/area/linux.h"
#include <stdlib.h>
#define ITER 10
...
...
@@ -35,10 +36,7 @@ int main(int argc, char *argv[])
/* we want to back our array on the slow node and use the fast node as
* a faster buffer.
*/
struct
aml_area
slow
,
fast
;
int
type
=
AML_AREA_TYPE_REGULAR
;
assert
(
!
aml_area_from_nodestring
(
&
slow
,
type
,
"all"
));
assert
(
!
aml_area_from_nodestring
(
&
fast
,
type
,
"all"
));
struct
aml_area
*
slow
=
&
aml_area_linux
,
*
fast
=
aml_area_linux
;
struct
aml_dma
dma
;
assert
(
!
aml_dma_init
(
&
dma
,
0
));
...
...
@@ -55,9 +53,9 @@ int main(int argc, char *argv[])
chunk_msz
=
MEMSIZE
/
(
numthreads
*
CHUNKING
);
esz
=
chunk_msz
/
sizeof
(
unsigned
long
);
}
a
=
aml_area_m
alloc
(
&
slow
,
MEMSIZE
);
b
=
aml_area_m
alloc
(
&
slow
,
MEMSIZE
);
c
=
aml_area_m
alloc
(
&
slow
,
MEMSIZE
);
a
=
aml_area_m
map
(
slow
,
NULL
,
MEMSIZE
);
b
=
aml_area_m
map
(
slow
,
NULL
,
MEMSIZE
);
c
=
aml_area_m
map
(
fast
,
NULL
,
MEMSIZE
);
assert
(
a
!=
NULL
&&
b
!=
NULL
&&
c
!=
NULL
);
/* create virtually accessible address range, backed by slow memory */
...
...
@@ -98,11 +96,9 @@ int main(int argc, char *argv[])
assert
(
wc
[
i
]
==
esize
);
}
aml_area_free
(
&
slow
,
a
);
aml_area_free
(
&
slow
,
b
);
aml_area_free
(
&
slow
,
c
);
aml_area_destroy
(
&
slow
);
aml_area_destroy
(
&
fast
);
aml_area_munmap
(
slow
,
a
,
MEMSIZE
);
aml_area_munmap
(
slow
,
b
,
MEMSIZE
);
aml_area_munmap
(
fast
,
c
,
MEMSIZE
);
aml_dma_destroy
(
&
dma
);
aml_finalize
();
return
0
;
...
...
benchmarks/stream_add_omp_mt.c
View file @
4d0fa3d6
...
...
@@ -9,6 +9,7 @@
*******************************************************************************/
#include "aml.h"
#include "aml/area/linux.h"
#include "aml/dma/linux-par.h"
#include "aml/scratch/seq.h"
#include <assert.h>
...
...
@@ -26,8 +27,7 @@
size_t
numthreads
,
tilesz
,
esz
;
unsigned
long
*
a
,
*
b
,
*
c
;
AML_TILING_1D_DECL
(
tiling
);
AML_AREA_LINUX_DECL
(
slow
);
AML_AREA_LINUX_DECL
(
fast
);
struct
aml_area
*
slow
,
*
fast
;
AML_SCRATCH_SEQ_DECL
(
sa
);
AML_SCRATCH_SEQ_DECL
(
sb
);
...
...
@@ -41,16 +41,14 @@ int kernel(unsigned long *a, unsigned long *b, unsigned long *c, size_t n)
int
main
(
int
argc
,
char
*
argv
[])
{
AML_ARENA_JEMALLOC_DECL
(
arns
);
AML_ARENA_JEMALLOC_DECL
(
arnf
);
AML_DMA_LINUX_PAR_DECL
(
dma
);
struct
bitmask
*
slowb
,
*
fastb
;
struct
aml_bitmap
slowb
,
fastb
;
aml_init
(
&
argc
,
&
argv
);
assert
(
argc
==
4
);
log_init
(
argv
[
0
]);
fastb
=
numa_parse_nodestring_all
(
argv
[
1
]
);
slowb
=
numa_parse_nodestring_all
(
argv
[
2
]
);
assert
(
aml_bitmap_from_string
(
&
fastb
,
argv
[
1
])
==
0
);
assert
(
aml_bitmap_from_string
(
&
slowb
,
argv
[
2
])
==
0
);
unsigned
long
memsize
=
1UL
<<
atoi
(
argv
[
3
]);
/* use openmp env to figure out how many threads we want
...
...
@@ -65,19 +63,12 @@ int main(int argc, char *argv[])
/* initialize all the supporting struct */
assert
(
!
aml_tiling_init
(
&
tiling
,
AML_TILING_TYPE_1D
,
tilesz
,
memsize
));
assert
(
!
aml_arena_jemalloc_init
(
&
arns
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
slow
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arns
,
MPOL_BIND
,
slowb
->
maskp
));
assert
(
!
aml_arena_jemalloc_init
(
&
arnf
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
fast
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arnf
,
MPOL_BIND
,
fastb
->
maskp
));
slow
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
slowb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
slow
!=
NULL
);
fast
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
fastb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
fast
!=
NULL
);
assert
(
!
aml_dma_linux_par_init
(
&
dma
,
numthreads
*
2
,
numthreads
));
assert
(
!
aml_scratch_seq_init
(
&
sa
,
&
fast
,
&
slow
,
&
dma
,
&
tiling
,
(
size_t
)
2
*
numthreads
,
(
size_t
)
1
));
...
...
@@ -85,9 +76,9 @@ int main(int argc, char *argv[])
(
size_t
)
2
*
numthreads
,
(
size_t
)
1
));
/* allocation */
a
=
aml_area_m
alloc
(
&
slow
,
memsize
);
b
=
aml_area_m
alloc
(
&
slow
,
memsize
);
c
=
aml_area_m
alloc
(
&
fast
,
memsize
);
a
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
b
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
c
=
aml_area_m
map
(
fast
,
NULL
,
memsize
);
assert
(
a
!=
NULL
&&
b
!=
NULL
&&
c
!=
NULL
);
unsigned
long
esize
=
memsize
/
sizeof
(
unsigned
long
);
...
...
@@ -129,11 +120,11 @@ int main(int argc, char *argv[])
aml_scratch_seq_destroy
(
&
sa
);
aml_scratch_seq_destroy
(
&
sb
);
aml_dma_linux_par_destroy
(
&
dma
);
aml_area_
free
(
&
slow
,
a
);
aml_area_
free
(
&
slow
,
b
);
aml_area_
free
(
&
slow
,
c
);
aml_area_linux_destroy
(
&
slow
);
aml_area_linux_destroy
(
&
fast
);
aml_area_
munmap
(
slow
,
a
,
memsize
);
aml_area_
munmap
(
slow
,
b
,
memsize
);
aml_area_
munmap
(
fast
,
c
,
memsize
);
aml_area_linux_destroy
(
slow
);
aml_area_linux_destroy
(
fast
);
aml_tiling_destroy
(
&
tiling
,
AML_TILING_TYPE_1D
);
aml_finalize
();
return
0
;
...
...
benchmarks/stream_add_omp_st.c
View file @
4d0fa3d6
...
...
@@ -9,6 +9,7 @@
*******************************************************************************/
#include "aml.h"
#include "aml/area/linux.h"
#include "aml/dma/linux-seq.h"
#include "aml/scratch/par.h"
#include <assert.h>
...
...
@@ -25,8 +26,7 @@
size_t
numthreads
,
tilesz
,
esz
;
unsigned
long
*
a
,
*
b
,
*
c
;
AML_TILING_1D_DECL
(
tiling
);
AML_AREA_LINUX_DECL
(
slow
);
AML_AREA_LINUX_DECL
(
fast
);
struct
aml_area
*
slow
,
*
fast
;
AML_SCRATCH_PAR_DECL
(
sa
);
AML_SCRATCH_PAR_DECL
(
sb
);
...
...
@@ -71,16 +71,14 @@ void do_work(unsigned long tid)
int
main
(
int
argc
,
char
*
argv
[])
{
AML_ARENA_JEMALLOC_DECL
(
arns
);
AML_ARENA_JEMALLOC_DECL
(
arnf
);
AML_DMA_LINUX_SEQ_DECL
(
dma
);
struct
bitmask
*
slowb
,
*
fastb
;
struct
aml_bitmap
slowb
,
fastb
;
aml_init
(
&
argc
,
&
argv
);
assert
(
argc
==
4
);
log_init
(
argv
[
0
]);
fastb
=
numa_parse_nodestring_all
(
argv
[
1
]
);
slowb
=
numa_parse_nodestring_all
(
argv
[
2
]
);
assert
(
aml_bitmap_from_string
(
&
fastb
,
argv
[
1
])
==
0
);
assert
(
aml_bitmap_from_string
(
&
slowb
,
argv
[
2
])
==
0
);
unsigned
long
memsize
=
1UL
<<
atoi
(
argv
[
3
]);
/* use openmp env to figure out how many threads we want
...
...
@@ -96,18 +94,12 @@ int main(int argc, char *argv[])
/* initialize all the supporting struct */
assert
(
!
aml_tiling_init
(
&
tiling
,
AML_TILING_TYPE_1D
,
tilesz
,
memsize
));
assert
(
!
aml_arena_jemalloc_init
(
&
arns
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
slow
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arns
,
MPOL_BIND
,
slowb
->
maskp
));
assert
(
!
aml_arena_jemalloc_init
(
&
arnf
,
AML_ARENA_JEMALLOC_TYPE_REGULAR
));
assert
(
!
aml_area_linux_init
(
&
fast
,
AML_AREA_LINUX_MANAGER_TYPE_SINGLE
,
AML_AREA_LINUX_MBIND_TYPE_REGULAR
,
AML_AREA_LINUX_MMAP_TYPE_ANONYMOUS
,
&
arnf
,
MPOL_BIND
,
fastb
->
maskp
));
slow
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
slowb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
slow
!=
NULL
);
fast
=
aml_area_linux_create
(
AML_AREA_LINUX_MMAP_FLAG_PRIVATE
,
&
fastb
,
AML_AREA_LINUX_BINDING_FLAG_BIND
);
assert
(
fast
!=
NULL
);
assert
(
!
aml_dma_linux_seq_init
(
&
dma
,
numthreads
*
2
));
assert
(
!
aml_scratch_par_init
(
&
sa
,
&
fast
,
&
slow
,
&
dma
,
&
tiling
,
2
*
numthreads
,
numthreads
));
...
...
@@ -115,9 +107,9 @@ int main(int argc, char *argv[])
2
*
numthreads
,
numthreads
));
/* allocation */
a
=
aml_area_m
alloc
(
&
slow
,
memsize
);
b
=
aml_area_m
alloc
(
&
slow
,
memsize
);
c
=
aml_area_m
alloc
(
&
fast
,
memsize
);
a
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
b
=
aml_area_m
map
(
slow
,
NULL
,
memsize
);
c
=
aml_area_m
map
(
fast
,
NULL
,
memsize
);
assert
(
a
!=
NULL
&&
b
!=
NULL
&&
c
!=
NULL
);
unsigned
long
esize
=
memsize
/
sizeof
(
unsigned
long
);
...
...
@@ -141,11 +133,11 @@ int main(int argc, char *argv[])
aml_scratch_par_destroy
(
&
sa
);
aml_scratch_par_destroy
(
&
sb
);
aml_dma_linux_seq_destroy
(
&
dma
);
aml_area_
free
(
&
slow
,
a
);
aml_area_
free
(
&
slow
,
b
);
aml_area_
free
(
&
fast
,
c
);
aml_area_linux_destroy
(
&
slow
);
aml_area_linux_destroy
(
&
fast
);
aml_area_
munmap
(
slow
,
a
,
memsize
);
aml_area_
munmap
(
slow
,
b
,
memsize
);
aml_area_
munmap
(
fast
,
c
,
memsize
);
aml_area_linux_destroy
(
slow
);
aml_area_linux_destroy
(
fast
);
aml_tiling_destroy
(
&
tiling
,
AML_TILING_TYPE_1D
);
aml_finalize
();
return
0
;
...
...
benchmarks/stream_add_pth_st.c
View file @
4d0fa3d6
...
...
@@ -15,6 +15,7 @@
#include <stdlib.h>
#include "aml.h"
#include "aml/area/linux.h"
#include "aml/dma/linux-seq.h"
#include "aml/scratch/par.h"
#include "utils.h"
...
...
@@ -24,9 +25,8 @@
size_t
numthreads
,
tilesz
,
esz
;
unsigned
long
*
a
,
*
b
,
*
c
;
struct
aml_area
*
slow
,
*
fast
;
AML_TILING_1D_DECL
(
tiling
);
AML_AREA_LINUX_DECL
(
slow
);
AML_AREA_LINUX_DECL
(
fast
);
AML_SCRATCH_PAR_DECL
(
sa
);
AML_SCRATCH_PAR_DECL
(
sb
);
...
...
@@ -78,15 +78,14 @@ void *th_work(void *arg)
}
int
main
(
int
argc
,
char
*
argv
[])
{
AML_ARENA_JEMALLOC_DECL
(
arena
);
AML_DMA_LINUX_SEQ_DECL
(
dma
);
struct
bitmask
*
slowb
,
*
fastb
;
struct
aml_bitmap
slowb
,
fastb
;
aml_init
(
&
argc
,
&
argv
);
assert
(
argc
==
4
);
log_init
(
argv
[
0
]);
fastb
=
numa_parse_nodestring_all
(
argv
[
1
]
);
slowb
=
numa_parse_nodestring_all
(
argv
[
2
]
);
assert
(
aml_bitmap_from_string
(
&
fastb
,
argv
[
1
])
==
0
);
assert
(
aml_bitmap_from_string
(
&
slowb
,
argv
[
2
])
==
0
);
unsigned
long
memsize
=
1UL
<<
atoi
(
argv
[
3
]);