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:
parent
c9bc30414e
commit
3e847d102e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user