d4r: official NVIDIA DLSS on AMD GPUs under Linux and Proton
This commit is contained in:
commit
118173ecd7
128 files changed
+31333
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
CXX="${CXX:-g++}"
|
||||
ROCM_ROOT="${ROCM_ROOT:-/opt/rocm}"
|
||||
if [[ ! -f "$ROCM_ROOT/include/hip/hip_runtime_api.h" || ! -f "$ROCM_ROOT/lib/libamdhip64.so" ]]; then
|
||||
printf 'Set ROCM_ROOT to a ROCm installation containing HIP headers and libamdhip64.so\n' >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
mkdir -p "$ROOT/build"
|
||||
"$CXX" -std=c++20 -O2 -Wall -Wextra -D__HIP_PLATFORM_AMD__=1 \
|
||||
-I"$ROCM_ROOT/include" \
|
||||
"$ROOT/tools/replay_dlss_histogram.cpp" -L"$ROCM_ROOT/lib" -lamdhip64 -ldl \
|
||||
-Wl,-rpath,"$ROCM_ROOT/lib" \
|
||||
-o "$ROOT/build/replay_dlss_histogram"
|
||||
printf 'Built %s\n' "$ROOT/build/replay_dlss_histogram"
|
||||
Reference in new issue
Block a user