Skip to content

nickwilcox/blog_target_cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The code is the repository accompanies the Target Feature vs Target CPU post on my blog.

This code will only run on CPU's with AVX2 support due to the manually written AVX2 function which does no target checking.

To benchmark the version that is not auto-vectorized use

RUSTFLAGS="-C target-feature=+avx2" cargo bench

To benchmark the version that is auto-vectorized with VPGATHERQD

RUSTFLAGS="-C target-cpu=skylake" cargo bench

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages