diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d2168250..207a8e4dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -453,7 +453,7 @@ endif() if (LLAMA_SYCL) if ( NOT DEFINED ENV{ONEAPI_ROOT}) - message(FATAL_ERROR "Not detect ENV {ONEAPI_ROOT}, please install oneAPI & source it, like: source /opt/intel/oneapi/setvars.sh") + message(FATAL_ERROR "Not detect ENV {ONEAPI_ROOT}, please install oneAPI & source it, like: source /opt/intel/oneapi/setvars.sh") endif() #todo: AOT @@ -463,7 +463,7 @@ if (LLAMA_SYCL) endif() add_compile_definitions(GGML_USE_SYCL) - add_compile_options(-I./) #include DPCT + add_compile_options(-I./) #include DPCT add_compile_options(-I/${SYCL_INCLUDE_DIR}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing") diff --git a/examples/server/server.cpp b/examples/server/server.cpp index bebc211d4..c97ad7052 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -2319,7 +2319,7 @@ static void server_params_parse(int argc, char **argv, server_params &sparams, invalid_param = true; break; } -#if defined(GGML_USE_CUBLAS) || defined(GGML_USE_SYCL) +#if defined(GGML_USE_CUBLAS) || defined(GGML_USE_SYCL) std::string arg_next = argv[i]; // split string by , and / diff --git a/examples/sycl/CMakeLists.txt b/examples/sycl/CMakeLists.txt index 840470479..ad759ae80 100644 --- a/examples/sycl/CMakeLists.txt +++ b/examples/sycl/CMakeLists.txt @@ -2,4 +2,4 @@ set(TARGET ls-sycl-device) add_executable(${TARGET} ls-sycl-device.cpp) install(TARGETS ${TARGET} RUNTIME) target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) -target_compile_features(${TARGET} PRIVATE cxx_std_17) \ No newline at end of file +target_compile_features(${TARGET} PRIVATE cxx_std_17) diff --git a/ggml-sycl.h b/ggml-sycl.h index 3dd2bc205..f86703456 100644 --- a/ggml-sycl.h +++ b/ggml-sycl.h @@ -2858,4 +2858,4 @@ namespace dpct } // COPY from DPCT head files -#endif \ No newline at end of file +#endif