File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set (CMAKE_CXX_STANDARD 20)
99if (MSVC )
1010
1111else ()
12- add_compile_options (-mavx )
12+ set ( CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -march=native" )
1313endif ()
1414
1515
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ set (DOTPROD_PROFILE_SOURCE
66)
77
88if (BUILD_CUDA_LIBRARY)
9- set (DOTPROD_PROFILE_CUDA_SOURCE gpu/dp.cu)
9+ set (DOTPROD_PROFILE_CUDA_SOURCE gpu/dp.cu)
1010endif ()
1111
1212message (PROJECT_SOURCE_DIR ="${PROJECT_SOURCE_DIR} " )
1313add_executable (dotprod_profiling ${DOTPROD_PROFILE_SOURCE} ${DOTPROD_PROFILE_CUDA_SOURCE} helpers.h)
1414
15- target_include_directories (dotprod_profiling PRIVATE / )
15+ target_include_directories (dotprod_profiling PRIVATE " ${PROJECT_SOURCE_DIR} /src/profiling" )
1616
1717target_link_libraries (dotprod_profiling PRIVATE dotprod_lib benchmark::benchmark)
1818target_compile_definitions (dotprod_profiling PRIVATE ${DOTPROD_DEFINITIONS} )
Original file line number Diff line number Diff line change 44#include < random>
55#include < memory>
66#include < iostream>
7- #include < windows.h>
7+ // #include <windows.h>
88
99constexpr int PERFORMANCE_TEST_LOWER_LIMIT=64 ;
1010constexpr int PERFORMANCE_TEST_UPPER_LIMIT=1 <<27 ;
Original file line number Diff line number Diff line change 99
1010
1111add_executable (dotprod_test ${DOTPROD_TEST_SOURCE} ${DOTPROD_CUDA_SOURCE} helpers.h)
12- target_include_directories (dotprod_test PRIVATE / )
12+ target_include_directories (dotprod_test PRIVATE " ${PROJECT_SOURCE_DIR} /src/tests" )
1313
1414target_link_libraries (dotprod_test PRIVATE dotprod_lib gtest_main)
1515target_compile_definitions (dotprod_test PRIVATE ${DOTPROD_DEFINITIONS} )
You can’t perform that action at this time.
0 commit comments