mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
string
This commit is contained in:
parent
8570c1c0ef
commit
e2c3f6b3e2
6 changed files with 85 additions and 84 deletions
|
@ -60,9 +60,9 @@ func AMDGetGPUInfo() []RocmGPUInfo {
|
|||
|
||||
// Determine if the user has already pre-selected which GPUs to look at, then ignore the others
|
||||
var visibleDevices []string
|
||||
hipVD := envconfig.HipVisibleDevices // zero based index only
|
||||
rocrVD := envconfig.RocrVisibleDevices // zero based index or UUID, but consumer cards seem to not support UUID
|
||||
gpuDO := envconfig.GpuDeviceOrdinal // zero based index
|
||||
hipVD := envconfig.HipVisibleDevices() // zero based index only
|
||||
rocrVD := envconfig.RocrVisibleDevices() // zero based index or UUID, but consumer cards seem to not support UUID
|
||||
gpuDO := envconfig.GpuDeviceOrdinal() // zero based index
|
||||
switch {
|
||||
// TODO is this priorty order right?
|
||||
case hipVD != "":
|
||||
|
@ -75,7 +75,7 @@ func AMDGetGPUInfo() []RocmGPUInfo {
|
|||
visibleDevices = strings.Split(gpuDO, ",")
|
||||
}
|
||||
|
||||
gfxOverride := envconfig.HsaOverrideGfxVersion
|
||||
gfxOverride := envconfig.HsaOverrideGfxVersion()
|
||||
var supported []string
|
||||
libDir := ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue