mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-09 23:37:06 +00:00
Remove hardcoded compiler paths from CMakePresets.json for portability
- Remove CMAKE_C_COMPILER and CMAKE_CXX_COMPILER from CUDA 11 presets - Allows CMake to auto-detect system GCC instead of hardcoding /usr/local/bin/gcc - Improves portability across different systems (host, Docker containers, etc.) - Users can still override compiler via CC/CXX environment variables if needed
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
"name": "CUDA 11",
|
||||
"inherits": ["CUDA"],
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_COMPILER": "/usr/local/bin/gcc",
|
||||
"CMAKE_CXX_COMPILER": "/usr/local/bin/g++",
|
||||
"CMAKE_CUDA_ARCHITECTURES": "37-virtual;50-virtual;60-virtual;61-virtual;70-virtual;75-virtual;80-virtual;86-virtual",
|
||||
"CMAKE_CUDA_FLAGS": "-Wno-deprecated-gpu-targets -t 2"
|
||||
}
|
||||
@@ -32,8 +30,6 @@
|
||||
"name": "CUDA 11 K80",
|
||||
"inherits": ["CUDA"],
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_COMPILER": "/usr/local/bin/gcc",
|
||||
"CMAKE_CXX_COMPILER": "/usr/local/bin/g++",
|
||||
"CMAKE_CUDA_ARCHITECTURES": "37",
|
||||
"CMAKE_CUDA_FLAGS": "-Wno-deprecated-gpu-targets -t 2"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user