Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/development/rocm-modules/6/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ let

hipfft = self.callPackage ./hipfft { };

hiprt = self.callPackage ./hiprt { };

tensile = pyPackages.callPackage ./tensile {
inherit (self)
rocmUpdateScript
Expand Down Expand Up @@ -323,6 +325,7 @@ let
rocprim
rocalution
hipfft
hiprt
rocm-core
hipcub
hipblas
Expand Down Expand Up @@ -355,6 +358,7 @@ let
hipblaslt
rocfft
hipfft
hiprt
rccl
rocsparse
hipsparse
Expand Down
59 changes: 59 additions & 0 deletions pkgs/development/rocm-modules/6/hiprt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
clr,
gcc,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "hiprt";
version = "2.5.a21e075.3";

src = fetchFromGitHub {
owner = "GPUOpen-LibrariesAndSDKs";
repo = "HIPRT";
tag = finalAttrs.version;
sha256 = "sha256-3yGhwIsFHlFMCEzuYnXuXNzs99m7f2LTkYaTGs0GEcI=";
};

postPatch = ''
g++ contrib/easy-encryption/cl.cpp -o contrib/easy-encryption/bin/linux/ee64 #replacing prebuilt binary
'';

nativeBuildInputs = [
gcc # required for replacing easy-encryption binary
cmake
];

buildInputs = [
clr
];

cmakeFlags = [
"-D CMAKE_BUILD_TYPE=Release"
"-D BAKE_KERNEL=OFF"
"-D BAKE_COMPILED_KERNEL=OFF"
"-D BITCODE=ON"
"-D PRECOMPILE=ON"
"-D NO_UNITTEST=ON"
"-D FORCE_DISABLE_CUDA=ON"
];

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
];
platforms = lib.platforms.linux;
};
})