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
c5f08495
Commit
c5f08495
authored
Jan 02, 2021
by
Snawoot
Committed by
GitHub
Jan 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #356 from Snawoot/fix_353
Fix #353
parents
31ec2a73
bb7fd030
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
patch-fbc.sh
patch-fbc.sh
+4
-5
patch.sh
patch.sh
+4
-5
No files found.
patch-fbc.sh
View file @
c5f08495
...
...
@@ -173,16 +173,15 @@ patch_common () {
echo
"Using manually entered nvidia driver version:
$driver_version
"
else
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
driver_versions_list
=
$(
$cmd
)
||
(
ret_code
=
$?
echo
"Can not detect nvidia driver version."
echo
"CMD:
\"
$cmd
\"
"
echo
"Result:
\"
$driver_versions_list
\"
"
echo
"nvidia-smi retcode:
$ret_code
"
exit
1
fi
)
driver_version
=
$(
echo
"
$driver_versions_list
"
|
head
-n
1
)
echo
"Detected nvidia driver version:
$driver_version
"
fi
...
...
patch.sh
View file @
c5f08495
...
...
@@ -246,16 +246,15 @@ patch_common () {
echo
"Using manually entered nvidia driver version:
$driver_version
"
else
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
driver_versions_list
=
$(
$cmd
)
||
(
ret_code
=
$?
echo
"Can not detect nvidia driver version."
echo
"CMD:
\"
$cmd
\"
"
echo
"Result:
\"
$driver_versions_list
\"
"
echo
"nvidia-smi retcode:
$ret_code
"
exit
1
fi
)
driver_version
=
$(
echo
"
$driver_versions_list
"
|
head
-n
1
)
echo
"Detected nvidia driver version:
$driver_version
"
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