Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
eb68dacd
Commit
eb68dacd
authored
May 14, 2020
by
Georgiy Ignatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new driver check code to path-fbc.sh
parent
9f7e57c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
patch-fbc.sh
patch-fbc.sh
+9
-2
No files found.
patch-fbc.sh
View file @
eb68dacd
...
...
@@ -111,8 +111,15 @@ patch_common () {
exit
1
fi
if
!
driver_version
=
$(
"
$NVIDIA_SMI
"
--query-gpu
=
driver_version
--format
=
csv,noheader,nounits |
head
-n
1
)
;
then
echo
'Something went wrong. Check nvidia driver'
cmd
=
"
$NVIDIA_SMI
--query-gpu=driver_version --format=csv,noheader,nounits"
driver_versions_list
=
$(
$cmd
)
ret_code
=
$?
driver_version
=
$(
echo
"
$driver_versions_list
"
|
head
-n
1
)
if
[[
$ret_code
-ne
0
]]
;
then
echo
"Can not detect nvidia driver version."
echo
"CMD:
\"
$cmd
\"
"
echo
"Result:
\"
$driver_versions_list
\"
"
echo
"nvidia-smi retcode:
$ret_code
"
exit
1
fi
...
...
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