]> git.proxmox.com Git - mirror_ovs.git/commitdiff
INSTALL.md: Update configure section for built-in intrinsics.
authorBhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Wed, 27 Jul 2016 18:31:11 +0000 (19:31 +0100)
committerBen Pfaff <blp@ovn.org>
Wed, 27 Jul 2016 19:35:11 +0000 (12:35 -0700)
Built-in CRC32 intrinsics can be used for efficient hash computation on
processors with SSE4.2 support.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
INSTALL.md

index 591f9248c267ed9a8adc3b086b5ca390bc673f92..6fbf9ea9c482fb54f18f89cf89f7c7a770b5b1f9 100644 (file)
@@ -217,6 +217,21 @@ default CFLAGS plus "-mssse3", you might run configure as follows:
 
       `% ./configure CFLAGS="-g -O2 -mssse3"`
 
+For efficient hash computation special flags can be passed to leverage
+built-in intrinsics.  For example on X86_64 with SSE4.2 instruction set
+support, CRC32 intrinsics can be used by passing '-msse4.2'.
+
+      `% ./configure CFLAGS="-g -O2 -msse4.2"`
+
+If you are on a different processor and don't know what flags to choose, it
+is recommended to use '-march=native' settings.
+
+      `% ./configure CFLAGS="-g -O2 -march=native"`
+
+With this, GCC will detect the processor and automatically set appropriate
+flags for it.  This should not be used if you are compiling OVS outside the
+target machine.
+
 Note that these CFLAGS are not applied when building the Linux
 kernel module.  Custom CFLAGS for the kernel module are supplied
 using the EXTRA_CFLAGS variable when running make.  So, for example: