Skip to content

Instantly share code, notes, and snippets.

@kumpeishiraishi
Created December 10, 2022 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumpeishiraishi/a300b3d579f9d1e27f6a66d56908e49d to your computer and use it in GitHub Desktop.
Save kumpeishiraishi/a300b3d579f9d1e27f6a66d56908e49d to your computer and use it in GitHub Desktop.
My minimum cmake file with cnpy, AVX intrinsics, and Eigen
cmake_minimum_required(VERSION 3.13)
project(test_cmake CXX)
add_executable(a.out main.cpp)
target_include_directories(a.out PRIVATE /home/shiraishi/.local/include ${MKLROOT}/include)
target_link_directories(a.out PRIVATE /home/shiraishi/.local/lib ${MKLROOT}/lib/intel64)
target_compile_options(a.out PRIVATE -O3 -inline-forceinline -xCORE_AVX512 -DMKL_LP64)
target_compile_features(a.out PRIVATE cxx_std_17)
target_link_libraries(a.out cnpy z mkl_intel_lp64 mkl_sequential mkl_core pthread m dl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment