update hiprt

This commit is contained in:
2025-06-06 11:40:51 +04:00
parent 07708cde99
commit e02cfedc07

View File

@@ -27,34 +27,27 @@ stdenv.mkDerivation (finalAttrs: {
cmake cmake
clr clr
]; ];
buildInputs = [
# TODO: do we need anything here?
];
cmakeFlags = [ cmakeFlags = [
#TODO: mostly copied from the Arch package, verify these:
"-D CMAKE_BUILD_TYPE=Release" "-D CMAKE_BUILD_TYPE=Release"
"-D HIP_PATH=${clr}" # "-D HIP_PATH=${clr}"
"-D BAKE_KERNEL=OFF" "-D BAKE_KERNEL=OFF"
"-D BAKE_COMPILED_KERNEL=OFF" "-D BAKE_COMPILED_KERNEL=OFF"
"-D BITCODE=ON" "-D BITCODE=ON"
"-D PRECOMPILE=ON" "-D PRECOMPILE=ON"
"-D NO_UNITTEST=ON" "-D NO_UNITTEST=ON"
"-D FORCE_DISABLE_CUDA=ON" "-D FORCE_DISABLE_CUDA=ON"
# Manually define CMAKE_INSTALL_<DIR>
# See: https://github.com/NixOS/nixpkgs/pull/197838
"-D CMAKE_INSTALL_BINDIR=bin"
"-D CMAKE_INSTALL_LIBDIR=lib"
"-D CMAKE_INSTALL_INCLUDEDIR=include"
]; ];
postInstall = '' postInstall = ''
mkdir -p $out/lib mkdir -p $out/lib
ln -s "$(find $out/bin -type f -name 'libhiprt*.so' -print -quit)" $out/bin/libhiprt64.so ln -sr $out/lib/libhiprt*64.so $out/lib/libhiprt64.so
ln -s $out/bin/libhiprt64.so $out/lib/libhiprt64.so install -v -Dm644 ../scripts/bitcodes/hiprt*_amd_lib_linux.bc $out/lib/
''; '';
meta = { meta = {
homepage = "https://github.com/GPUOpen-LibrariesAndSDKs/HIPRT"; homepage = "https://gpuopen.com/hiprt";
description = ""; description = "Ray tracing library for HIP";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ maintainers = with lib.maintainers; [
mksafavi mksafavi