diff --git a/README.md b/README.md index ce27af3429cd1ee5ec6709c2f00c0f097778d6f2..bc2b010a150fe614c1266a95cd9694edc2853b2c 100644 --- a/README.md +++ b/README.md @@ -19,18 +19,18 @@ The individual blocksize needs to be experimental evaluated for each individual # Before compilation -To explicitly ensure, that CMake will use the GNU compiler use: +To explicitly ensure, that CMake will use the Intel compiler use: ```{bash, engine='sh'} -export CXX=g++ -export CC=gcc +export CXX=icpc +export CC=icc ``` -Lookup the [compiler-flag](https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html) for your hardware. Change the `-march` flag in your `CMakeLists.txt` depending on the hardware. +Lookup the [compiler-flag](https://software.intel.com/en-us/articles/performance-tools-for-software-developers-intel-compiler-options-for-sse-generation-and-processor-specific-optimizations) for your hardware. Example configuration for Skylake processors: ```{bash, engine='sh'} -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -march=skylake -ffast-math -fassociative-math -O3 -fopenmp -lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread -liomp5") +-xmic-avx512 -fpic -qopenmp -axCOMMON-AVX512 -lmemkind -lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread -liomp5 -lpthread -g -debug all -save-temps -Wl, -O0 -fstack-security-check -lboost_system ``` # Build with CMake