rocmPackages.hiprt: init at 2.5.a21e075.3
This commit is contained in:
parent
2427d9cea4
commit
5adc3ad6fe
@ -142,6 +142,8 @@ let
|
||||
|
||||
hipfft = self.callPackage ./hipfft { };
|
||||
|
||||
hiprt = self.callPackage ./hiprt { };
|
||||
|
||||
tensile = pyPackages.callPackage ./tensile {
|
||||
inherit (self)
|
||||
rocmUpdateScript
|
||||
@ -323,6 +325,7 @@ let
|
||||
rocprim
|
||||
rocalution
|
||||
hipfft
|
||||
hiprt
|
||||
rocm-core
|
||||
hipcub
|
||||
hipblas
|
||||
@ -355,6 +358,7 @@ let
|
||||
hipblaslt
|
||||
rocfft
|
||||
hipfft
|
||||
hiprt
|
||||
rccl
|
||||
rocsparse
|
||||
hipsparse
|
||||
|
59
pkgs/development/rocm-modules/6/hiprt/default.nix
Normal file
59
pkgs/development/rocm-modules/6/hiprt/default.nix
Normal file
@ -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;
|
||||
};
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user