Compare commits

...

2 Commits

Author SHA1 Message Date
Mika Pi
6c67affb73
Merge 8e69669007 into ebdee9478c 2024-12-22 02:58:16 -07:00
Mika Pi
8e69669007
Fix compilation on Pop!_OS 22.04 LTS CUDA
Downgrade the C++ version from 17 to 14, and also update the code to remove compilation warnings.
2024-12-15 00:43:30 -08:00
2 changed files with 7 additions and 1 deletions

View File

@ -196,7 +196,11 @@ option(GGML_BUILD_EXAMPLES "ggml: build examples" ${GGML_STANDALONE})
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED true)
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)

View File

@ -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
}