Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ba8c0358
"csrc/quantization/quantizer.hip" did not exist on "ab5534fc4c0f8ca21ada321f9730d723aa31288b"
Unverified
Commit
ba8c0358
authored
Nov 04, 2025
by
Daniel Hiltgen
Committed by
GitHub
Nov 04, 2025
Browse files
log: instrument CPU discovery timing (#12960)
parent
27f1fde4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
discover/gpu.go
discover/gpu.go
+8
-0
No files found.
discover/gpu.go
View file @
ba8c0358
...
@@ -7,7 +7,9 @@ import (
...
@@ -7,7 +7,9 @@ import (
"runtime"
"runtime"
"strconv"
"strconv"
"strings"
"strings"
"time"
"github.com/ollama/ollama/logutil"
"github.com/ollama/ollama/ml"
"github.com/ollama/ollama/ml"
)
)
...
@@ -17,6 +19,12 @@ var CudaTegra string = os.Getenv("JETSON_JETPACK")
...
@@ -17,6 +19,12 @@ var CudaTegra string = os.Getenv("JETSON_JETPACK")
// GetSystemInfo returns the last cached state of the GPUs on the system
// GetSystemInfo returns the last cached state of the GPUs on the system
func
GetSystemInfo
()
ml
.
SystemInfo
{
func
GetSystemInfo
()
ml
.
SystemInfo
{
logutil
.
Trace
(
"performing CPU discovery"
)
startDiscovery
:=
time
.
Now
()
defer
func
()
{
logutil
.
Trace
(
"CPU discovery completed"
,
"duration"
,
time
.
Since
(
startDiscovery
))
}()
memInfo
,
err
:=
GetCPUMem
()
memInfo
,
err
:=
GetCPUMem
()
if
err
!=
nil
{
if
err
!=
nil
{
slog
.
Warn
(
"error looking up system memory"
,
"error"
,
err
)
slog
.
Warn
(
"error looking up system memory"
,
"error"
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment