Created
December 10, 2022 07:55
-
-
Save kumpeishiraishi/a300b3d579f9d1e27f6a66d56908e49d to your computer and use it in GitHub Desktop.
My minimum cmake file with cnpy, AVX intrinsics, and Eigen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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