diff options
author | Jinshan Xiong <[email protected]> | 2015-12-09 15:34:16 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-06-02 14:30:51 -0700 |
commit | 1eeb4562a72ab29345572609e1e4315ecd26c5a1 (patch) | |
tree | 457bee35c73a92c056b5000671b18875b507c1e4 /include/sys/Makefile.am | |
parent | 8fbbc6b4cf13f73d517ec4e826a7069a958fa5ba (diff) |
Implementation of AVX2 optimized Fletcher-4
New functionality:
- Preserves existing scalar implementation.
- Adds AVX2 optimized Fletcher-4 computation.
- Fastest routines selected on module load (benchmark).
- Test case for Fletcher-4 added to ztest.
New zcommon module parameters:
- zfs_fletcher_4_impl (str): selects the implementation to use.
"fastest" - use the fastest version available
"cycle" - cycle trough all available impl for ztest
"scalar" - use the original version
"avx2" - new AVX2 implementation if available
Performance comparison (Intel i7 CPU, 1MB data buffers):
- Scalar: 4216 MB/s
- AVX2: 14499 MB/s
See contents of `/sys/module/zcommon/parameters/zfs_fletcher_4_impl`
to get list of supported values. If an implementation is not supported
on the system, it will not be shown. Currently selected option is
enclosed in `[]`.
Signed-off-by: Jinshan Xiong <[email protected]>
Signed-off-by: Andreas Dilger <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4330
Diffstat (limited to 'include/sys/Makefile.am')
-rw-r--r-- | include/sys/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/Makefile.am b/include/sys/Makefile.am index 89c314279..3f87daade 100644 --- a/include/sys/Makefile.am +++ b/include/sys/Makefile.am @@ -50,6 +50,7 @@ COMMON_H = \ $(top_srcdir)/include/sys/space_reftree.h \ $(top_srcdir)/include/sys/spa.h \ $(top_srcdir)/include/sys/spa_impl.h \ + $(top_srcdir)/include/sys/spa_checksum.h \ $(top_srcdir)/include/sys/trace.h \ $(top_srcdir)/include/sys/trace_acl.h \ $(top_srcdir)/include/sys/trace_arc.h \ |