diff --git a/.github/workflows/tesla-k80-ci.yml b/.github/workflows/tesla-k80-ci.yml index 07400dc1..00318099 100644 --- a/.github/workflows/tesla-k80-ci.yml +++ b/.github/workflows/tesla-k80-ci.yml @@ -29,13 +29,13 @@ jobs: - name: Configure CMake run: | - CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake -B build + cmake -B build env: CMAKE_BUILD_TYPE: Release - name: Build C++/CUDA components run: | - CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build --config Release + cmake --build build --config Release timeout-minutes: 30 - name: Build Go binary diff --git a/docs/manual-build.md b/docs/manual-build.md index 44fb81b5..ba1af1f1 100644 --- a/docs/manual-build.md +++ b/docs/manual-build.md @@ -37,8 +37,8 @@ git clone https://github.com/dogkeeper886/ollama37 cd ollama37 # If compiling from source (requires GCC 10): -CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake -B build -CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j$(nproc) +cmake -B build +cmake --build build -j$(nproc) go build -o ollama . # If using pre-built binary (GCC 10 not required): @@ -522,13 +522,13 @@ go version 3. **CMake Configuration:** Set compiler variables and configure the build system: ```bash - CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake -B build + cmake -B build ``` 4. **CMake Build:** Compile the C++ components (parallel build): ```bash - CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ cmake --build build -j$(nproc) + cmake --build build -j$(nproc) ``` > **Note:** `-j$(nproc)` enables parallel compilation using all available CPU cores. You can specify a number like `-j4` to limit the number of parallel jobs.