diff --git a/ggml/CMakeLists.txt b/ggml/CMakeLists.txt index e33d97482..c2edd03fd 100644 --- a/ggml/CMakeLists.txt +++ b/ggml/CMakeLists.txt @@ -196,7 +196,11 @@ option(GGML_BUILD_EXAMPLES "ggml: build examples" ${GGML_STANDALONE}) set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED true) -set(CMAKE_CXX_STANDARD 17) +if (GGML_SYCL) + set(CMAKE_CXX_STANDARD 17) +else() + set(CMAKE_CXX_STANDARD 14) +endif() set(CMAKE_CXX_STANDARD_REQUIRED true) set(THREADS_PREFER_PTHREAD_FLAG ON) diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu index c180adc84..0ee15f982 100644 --- a/ggml/src/ggml-cuda/ggml-cuda.cu +++ b/ggml/src/ggml-cuda/ggml-cuda.cu @@ -2693,6 +2693,8 @@ bool ggml_backend_cuda_register_host_buffer(void * buffer, size_t size) { } return true; #else + (void)buffer; + (void)size; return false; #endif }