Skip to content

Commit

Permalink
fix: fix wrong gpumem calculation (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Gehrsitz <[email protected]>
  • Loading branch information
mryel00 authored Sep 12, 2023
1 parent c9bc304 commit e9f36c9
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 [[ "$(get_avail_mem)" -gt 1048576 ]]; then
mem_split=256
fi
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then
Expand Down

0 comments on commit e9f36c9

Please sign in to comment.