Files
Luna Nova c01d90f756 rocmPackages.hiprt: 2.5.a21e075.3 -> 3.0.3.a1525e7
PR to drop encryption support was accepted upstream so we can simplify the build slightly.
Changes from 2.5:

- RDNA 4 support (compressed BVH8, triangle packets, intersectable instances, OBB)
- new generic BVH2 import API
- per-context logger
- removed kernel encryption
- various bug fixes for RDNA 2
- ROCm 7 support
2026-01-16 10:44:23 -08:00

62 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
clr,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hiprt";
version = "3.0.3.a1525e7";
src = fetchFromGitHub {
owner = "GPUOpen-LibrariesAndSDKs";
repo = "HIPRT";
tag = finalAttrs.version;
hash = "sha256-7r7KO+WuXOeQQhYLYpJRrD4ZqVsBOqaD2NGD15CWnoo=";
};
postPatch = ''
substituteInPlace contrib/Orochi/contrib/hipew/src/hipew.cpp --replace-fail '"/opt/rocm/hip/lib/' '"${clr}/lib'
substituteInPlace hiprt/hiprt_libpath.h --replace-fail '"/opt/rocm/hip/lib/' '"${clr}/lib/'
'';
nativeBuildInputs = [
cmake
python3
];
buildInputs = [
clr
];
cmakeFlags = [
(lib.cmakeBool "BAKE_KERNEL" false)
(lib.cmakeBool "BAKE_COMPILED_KERNEL" false)
(lib.cmakeBool "BITCODE" true)
(lib.cmakeBool "PRECOMPILE" true)
# needs accelerator
(lib.cmakeBool "NO_UNITTEST" true)
(lib.cmakeBool "FORCE_DISABLE_CUDA" true)
];
postInstall = ''
mv $out/bin $out/lib
ln -sr $out/lib/libhiprt*64.so $out/lib/libhiprt64.so
install -v -Dm644 ../scripts/bitcodes/hiprt*_amd_lib_linux.bc $out/lib/
'';
meta = {
homepage = "https://gpuopen.com/hiprt";
description = "Ray tracing library for HIP";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
mksafavi
];
teams = [ lib.teams.rocm ];
platforms = lib.platforms.linux;
};
})