From 3e847d102e2efa6ac696b2270f5eebed667d9162 Mon Sep 17 00:00:00 2001 From: Stephan Wendel <43513802+KwadFan@users.noreply.github.com> Date: Tue, 12 Sep 2023 20:49:04 +0200 Subject: [PATCH] Merge develop branch (#178) * 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> --- tools/libs/set_gpumem.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/libs/set_gpumem.sh b/tools/libs/set_gpumem.sh index e732db1a..ab183e0f 100755 --- a/tools/libs/set_gpumem.sh +++ b/tools/libs/set_gpumem.sh @@ -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