mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00:00
Update command.
This commit is contained in:
4
.github/workflows/tesla-k80-ci.yml
vendored
4
.github/workflows/tesla-k80-ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user