Skip to content

Commit

Permalink
Merge develop branch (#178)
Browse files Browse the repository at this point in the history
* fix: fix wrong gpumem calculation (#176)

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: fix wrong syntax in gpumem (#177)

Fix syntax error made in #176
Fixes #175

---------

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
Co-authored-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
  • Loading branch information
KwadFan and mryel00 authored Sep 12, 2023
1 parent c9bc304 commit 3e847d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/libs/set_gpumem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ set_gpu_mem() {
## Determine Ramsize and export MAKEFLAG
if [[ "$(get_avail_mem)" -le 524288 ]]; then
mem_split=128
fi
if [[ "$(get_avail_mem)" -le 1048576 ]]; then
elif [[ "$(get_avail_mem)" -le 1048576 ]]; then
mem_split=160
fi
if [[ "$(get_avail_mem)" -gt 1048576 ]]; then
else
mem_split=256
fi
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then
Expand Down

0 comments on commit 3e847d1

Please sign in to comment.