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>
This commit is contained in:
Stephan Wendel 2023-09-12 20:49:04 +02:00 committed by GitHub
parent c9bc30414e
commit 3e847d102e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,11 +29,9 @@ set_gpu_mem() {
## Determine Ramsize and export MAKEFLAG ## Determine Ramsize and export MAKEFLAG
if [[ "$(get_avail_mem)" -le 524288 ]]; then if [[ "$(get_avail_mem)" -le 524288 ]]; then
mem_split=128 mem_split=128
fi elif [[ "$(get_avail_mem)" -le 1048576 ]]; then
if [[ "$(get_avail_mem)" -le 1048576 ]]; then
mem_split=160 mem_split=160
fi else
if [[ "$(get_avail_mem)" -gt 1048576 ]]; then
mem_split=256 mem_split=256
fi fi
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then