#!/bin/bash ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # You may run in trouble on localized Linux installations # because of ',' parsed as decimal separator instead of '.' char export LC_ALL=C # Embree and OpenImageDenoise dynamic libraries are assumed to be located in the 'lib' # subdirectory. export LD_PRELOAD="$ROOT/lib/libembree3.so.3:$ROOT/lib/libOpenImageDenoise.so.0:$ROOT/lib/libtbb.so.2:$ROOT/lib/libtbbmalloc.so.2" cd "$ROOT" ./luxmark.bin "$@"