Skip to content

Commit

Permalink
Show GPUs that were detected to ease debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gertjaap committed Feb 26, 2020
1 parent 0667ca0 commit 7b64711
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func (m *Backend) CheckGPUCompatibility() error {
if g.Type != util.GPUTypeOther {
compat++
}
if gpustring != "" {
gpustring += " / "
}
gpustring += g.OSName
}

Expand All @@ -84,7 +87,7 @@ func (m *Backend) CheckGPUCompatibility() error {
})

if compat == 0 {
return fmt.Errorf("No compatible GPUs detected")
return fmt.Errorf("No compatible GPUs detected\n\nGPUs Found:\n%s", gpustring)
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Checks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="failureReason" v-if="checkStatus === 'Failed'">
{{ $t("checks.checks_failed") }}:
<br />
{{failureReason}}
<pre>{{failureReason}}</pre>
</div>
<p v-if="!prerequisiteInstall && checkStatus === 'Failed'">
<a class="button" @click="check">{{ $t('generic.retry') }}</a>
Expand Down

0 comments on commit 7b64711

Please sign in to comment.