diff --git a/examples/hello_world/CMakeLists.txt b/examples/hello_world/CMakeLists.txt index 292c80c..88b1787 100644 --- a/examples/hello_world/CMakeLists.txt +++ b/examples/hello_world/CMakeLists.txt @@ -14,7 +14,10 @@ cmake_minimum_required(VERSION 3.11) project(hello_world) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +#set(CMAKE_CXX_FLAGS "-Wall -Wextra -fPIC -Wno-unused-parameter") include(FetchContent) FetchContent_Declare(highway GIT_REPOSITORY https://github.com/google/highway.git GIT_TAG da250571a45826b21eebbddc1e50d0c1137dee5f) diff --git a/examples/hello_world/run.cc b/examples/hello_world/run.cc index a994f31..23f4fb2 100644 --- a/examples/hello_world/run.cc +++ b/examples/hello_world/run.cc @@ -22,7 +22,7 @@ #include "util/args.h" // copybara:end // copybara:import_next_line:gemma_cpp -#include "util/app.h" // LoaderArgs +#include "util/app.h" // LoaderArgs // copybara:end #include "hwy/contrib/thread_pool/thread_pool.h" diff --git a/run.cc b/run.cc index b08e4ca..22ebe17 100644 --- a/run.cc +++ b/run.cc @@ -66,7 +66,8 @@ void ShowConfig(LoaderArgs& loader, InferenceArgs& inference, AppArgs& app) { << std::thread::hardware_concurrency() << std::endl << "Instruction set : " << hwy::TargetName(hwy::DispatchedTarget()) << " (" - << hwy::VectorBytes() * 8 << " bits)" << "\n" + << hwy::VectorBytes() * 8 << " bits)" + << "\n" << "Compiled config : " << CompiledConfig() << "\n" << "Weight Type : " << gcpp::TypeName(gcpp::WeightT()) << "\n"