Add native K/M/RR inference engines, HIP kernels, replay and validation harnesses, and Windows DLSS setup and runtime support. Include GPU profiling tools, build and packaging scripts, platform integration patches, and implementation documentation.
19 lines
682 B
Bash
19 lines
682 B
Bash
#!/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"
|